summaryrefslogtreecommitdiff
path: root/firmware/eeprom.h
blob: 2ac7d4a7bf064b7fbf804d42060a2d38afc28ebc (plain)
1
2
3
4
5
6
7
8
9
10
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);