diff options
Diffstat (limited to 'firmware/eeprom.h')
-rw-r--r-- | firmware/eeprom.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/firmware/eeprom.h b/firmware/eeprom.h new file mode 100644 index 0000000..2ac7d4a --- /dev/null +++ b/firmware/eeprom.h @@ -0,0 +1,11 @@ +#include <inttypes.h> +#include <stdbool.h> + +#define MAX_ADDR 4095 + +void eeprom_parser(char *buf); + +void eeprom_read_bytes_usb(uint16_t addr, uint16_t length); +uint8_t eeprom_read_bytes(uint16_t addr, char * buf, uint16_t length); +void eeprom_write_bytes_usb(uint16_t addr, char * buf, uint16_t length); +uint8_t eeprom_write_bytes(uint16_t addr, char * buf, uint16_t length); |