1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
#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_getcfg(struct fpm_config *cfg); uint8_t fpm_setpwd(); #endif /* FPM_H */