EEPROM driver

Low-level EEPROM interface.

uint8_t eeprom_read_byte(uint32_t pos)

Read a byte at the given position in eeprom.

Parameters

pos:position to read

Return values

  • the byte read
msp430_types.h::size_t eeprom_read(uint32_t pos, uint8_t * data, msp430_types.h::size_t len)

Read len bytes from the given position.

This function must be implemented by each CPU that provides an internal EEPROM.

Parameters

pos:start position in eeprom
data:output byte array to write to
len:the number of bytes to read

Return values

  • the number of bytes read
void eeprom_write_byte(uint32_t pos, uint8_t data)

Write a byte at the given position.

Parameters

pos:position to write
data:byte address to write to

msp430_types.h::size_t eeprom_write(uint32_t pos, const uint8_t * data, msp430_types.h::size_t len)

Write len bytes at the given position.

This function must be implemented by each CPU that provides an internal EEPROM.

Parameters

pos:start position in eeprom
data:input byte array to read into
len:the number of bytes to read

Return values

  • the number of bytes written