summaryrefslogtreecommitdiffstats
path: root/fpm10a.h
diff options
context:
space:
mode:
authorSadeep Madurange <sadeep@asciimx.com>2025-05-07 18:54:17 +0800
committerSadeep Madurange <sadeep@asciimx.com>2025-05-07 18:54:17 +0800
commit46f3486d266589aced490116512af1461dcc0815 (patch)
tree6ce6cc6a1e502dace83ed70b0b2cd99cee75b2d0 /fpm10a.h
parentbd59220717d6a7221d5b11757bc27dc48f17258b (diff)
downloadavr-fpm-drivers-46f3486d266589aced490116512af1461dcc0815.tar.gz
Renamed files and updated the README.
Diffstat (limited to 'fpm10a.h')
-rw-r--r--fpm10a.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/fpm10a.h b/fpm10a.h
new file mode 100644
index 0000000..0b9d303
--- /dev/null
+++ b/fpm10a.h
@@ -0,0 +1,30 @@
+#ifndef FPM_H
+#define FPM_H
+
+#include <stdint.h>
+
+struct fpm_cfg {
+ 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_cfg(struct fpm_cfg *cfg);
+
+uint8_t fpm_set_pwd(uint32_t pwd);
+
+uint16_t fpm_get_count(void);
+
+uint8_t fpm_enroll(void);
+
+uint8_t fpm_match(void);
+
+uint8_t fpm_clear_db(void);
+
+#endif /* FPM_H */