summaryrefslogtreecommitdiffstats
path: root/fpm.h
diff options
context:
space:
mode:
Diffstat (limited to 'fpm.h')
-rw-r--r--fpm.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/fpm.h b/fpm.h
new file mode 100644
index 0000000..f165958
--- /dev/null
+++ b/fpm.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_getcfg(struct fpm_cfg *cfg);
+
+uint8_t fpm_setpwd(uint32_t pwd);
+
+uint16_t fpm_getcount(void);
+
+uint8_t fpm_enroll(void);
+
+uint8_t fpm_match(void);
+
+uint8_t fpm_delete_all(void);
+
+#endif /* FPM_H */