summaryrefslogtreecommitdiffstats
path: root/fpm10a.h
diff options
context:
space:
mode:
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 */