eeprom 2.0.0.0
|
Functions | |
void | eeprom_cfg_setup (eeprom_cfg_t *cfg) |
Config Structure Setup function. | |
eeprom_retval_t | eeprom_init (eeprom_t *context, eeprom_cfg_t *cfg) |
Click Initialization function. | |
void | eeprom_write_byte (eeprom_t *context, uint8_t reg_addr, uint8_t data_in) |
Byte Write function. | |
void | eeprom_write_page (eeprom_t *context, uint8_t reg_addr, uint8_t *data_in) |
Page Write function. | |
uint8_t | eeprom_read_byte (eeprom_t *context, uint8_t reg_addr) |
Byte Read function. | |
eeprom_retval_t | eeprom_read_sequential (eeprom_t *context, uint8_t reg_addr, uint16_t n_bytes, uint8_t *data_out) |
Sequential Read function. | |
void | eeprom_write_enable (eeprom_t *context) |
Write Enable function. | |
void | eeprom_write_protect (eeprom_t *context) |
Write Protect function. | |
void eeprom_cfg_setup | ( | eeprom_cfg_t * | cfg | ) |
Config Structure Setup function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
eeprom_retval_t eeprom_init | ( | eeprom_t * | context, |
eeprom_cfg_t * | cfg ) |
Click Initialization function.
context | Click object. |
cfg | Click configuration structure. |
@description This function initializes peripherals and pins used by EEPROM click.
uint8_t eeprom_read_byte | ( | eeprom_t * | context, |
uint8_t | reg_addr ) |
Byte Read function.
context | Click object. |
reg_addr | Register address. |
@description This function reads one byte data from the desired register.
eeprom_retval_t eeprom_read_sequential | ( | eeprom_t * | context, |
uint8_t | reg_addr, | ||
uint16_t | n_bytes, | ||
uint8_t * | data_out ) |
Sequential Read function.
context | Click object. |
reg_addr | Register address. |
n_bytes | Number of bytes to be read. |
data_out | Memory where data be stored. |
@description This function reads the desired number of bytes starting from the selected register.
void eeprom_write_byte | ( | eeprom_t * | context, |
uint8_t | reg_addr, | ||
uint8_t | data_in ) |
Byte Write function.
context | Click object. |
reg_addr | Register address. |
data_in | Data to be written. |
@description This function writes one byte data to the desired register.
void eeprom_write_enable | ( | eeprom_t * | context | ) |
Write Enable function.
context | Click object. |
@description This function allows data writing to the EEPROM.
void eeprom_write_page | ( | eeprom_t * | context, |
uint8_t | reg_addr, | ||
uint8_t * | data_in ) |
Page Write function.
context | Click object. |
reg_addr | Register address. |
data_in | Data to be written. |
@description This function writes 16 bytes data starting from the selected register.
void eeprom_write_protect | ( | eeprom_t * | context | ) |
Write Protect function.
context | Click object. |
@description This function blocks data writing operation to the EEPROM.