summaryrefslogtreecommitdiffstats
path: root/fpm.h
diff options
context:
space:
mode:
authorSadeep Madurange <sadeep@asciimx.com>2025-05-03 07:21:28 +0800
committerSadeep Madurange <sadeep@asciimx.com>2025-05-03 07:21:28 +0800
commit0ff109f1fd0bcd39b1ce4e950dba3f1c7523a861 (patch)
treec14ebfb7f4eda6648c9e54c9cc36f616cded0756 /fpm.h
downloadavr-fpm-drivers-0ff109f1fd0bcd39b1ce4e950dba3f1c7523a861.tar.gz
Initial commit.
Diffstat (limited to 'fpm.h')
-rw-r--r--fpm.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/fpm.h b/fpm.h
new file mode 100644
index 0000000..0ea98df
--- /dev/null
+++ b/fpm.h
@@ -0,0 +1,20 @@
+#ifndef FPM_H
+#define FPM_H
+
+#include <stdint.h>
+
+struct fpm_config {
+ uint16_t status;
+ uint16_t sysid;
+ uint16_t cap;
+ uint16_t sec_level;
+ uint8_t addr[4];
+ uint16_t pkt_size;
+ uint16_t baud;
+};
+
+uint8_t fpm_init(void);
+
+uint8_t fpm_get_config(struct fpm_config *cfg);
+
+#endif /* FPM_H */