summaryrefslogtreecommitdiffstats
path: root/r503.h
diff options
context:
space:
mode:
authorSadeep Madurange <sadeep@asciimx.com>2025-05-07 15:58:55 +0800
committerSadeep Madurange <sadeep@asciimx.com>2025-05-07 15:58:55 +0800
commitcb47f6fe368a0b3e22291396ef09d770e7364e71 (patch)
treedd591a97298e57ba158406c6cf729dc10afcf2b9 /r503.h
parent6217519d22c4398706bd316f74103909c1d268ec (diff)
downloadavr-fpm-drivers-cb47f6fe368a0b3e22291396ef09d770e7364e71.tar.gz
wip: enroll.
Diffstat (limited to 'r503.h')
-rw-r--r--r503.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/r503.h b/r503.h
index e12b8f2..5582552 100644
--- a/r503.h
+++ b/r503.h
@@ -3,6 +3,16 @@
#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;
+};
+
typedef enum {
RED = 0x01,
BLUE = 0x02,
@@ -11,6 +21,8 @@ typedef enum {
uint8_t fpm_init(void);
+uint8_t fpm_get_cfg(struct fpm_cfg *cfg);
+
void fpm_led_on(COLOR color);
void fpm_led_off(void);
@@ -19,4 +31,6 @@ uint8_t fpm_clear_db(void);
uint16_t fpm_get_count(void);
+uint8_t fpm_enroll(void);
+
#endif /* FPM_R50_H */