eeprom3 2.0.0.0
|
Functions | |
void | eeprom3_cfg_setup (eeprom3_cfg_t *cfg) |
Config Object Initialization function. | |
err_t | eeprom3_init (eeprom3_t *ctx, eeprom3_cfg_t *cfg) |
Initialization function. | |
void | eeprom3_write_byte (eeprom3_t *ctx, uint16_t reg_address, uint8_t data_in) |
Generic write function. | |
void | eeprom3_write_page (eeprom3_t *ctx, uint16_t reg_address, uint8_t *data_in, uint8_t count) |
Generic write page function. | |
void | eeprom3_read (eeprom3_t *ctx, uint16_t reg_address, uint8_t *data_out, uint16_t count) |
Generic read function. | |
void eeprom3_cfg_setup | ( | eeprom3_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
This function initializes click configuration structure to init state.
err_t eeprom3_init | ( | eeprom3_t * | ctx, |
eeprom3_cfg_t * | cfg ) |
Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
This function initializes all necessary pins and peripherals used for this click.
void eeprom3_read | ( | eeprom3_t * | ctx, |
uint16_t | reg_address, | ||
uint8_t * | data_out, | ||
uint16_t | count ) |
Generic read function.
ctx | Click object. |
reg | Register address. |
data_out | Output data. |
count | Number of the bytes to be read. |
This function reads data from the desired register.
void eeprom3_write_byte | ( | eeprom3_t * | ctx, |
uint16_t | reg_address, | ||
uint8_t | data_in ) |
Generic write function.
ctx | Click object. |
reg_address | Register address. |
data_in | Data to be written. |
This function writes data to the desired register.
void eeprom3_write_page | ( | eeprom3_t * | ctx, |
uint16_t | reg_address, | ||
uint8_t * | data_in, | ||
uint8_t | count ) |
Generic write page function.
ctx | Click object. |
reg_address | Register address. |
data_in | Data to be written. |
count | Number of bytes to be written. |
This function writes given number of data to the desired register.