eeprom2 2.0.0.0
|
Functions | |
void | eeprom2_cfg_setup (eeprom2_cfg_t *cfg) |
Config Object Initialization function. | |
err_t | eeprom2_init (eeprom2_t *ctx, eeprom2_cfg_t *cfg) |
Initialization function. | |
void | eeprom2_write (eeprom2_t *ctx, uint32_t memory_address, uint8_t value) |
Generic write function. | |
void | eeprom2_write_bytes (eeprom2_t *ctx, uint32_t memory_address, uint8_t *value, uint8_t count) |
Function to write bytes. | |
uint8_t | eeprom2_read (eeprom2_t *ctx, uint32_t memory_address) |
Generic read function. | |
void | eeprom2_read_bytes (eeprom2_t *ctx, uint32_t memory_address, uint8_t *value, uint8_t count) |
Function to read bytes. | |
void | eeprom2_memory_enable (eeprom2_t *ctx) |
Enable EEPROM memory. | |
void | eeprom2_memory_disable (eeprom2_t *ctx) |
Disable EEPROM memory. | |
void eeprom2_cfg_setup | ( | eeprom2_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
This function initializes click configuration structure to init state.
err_t eeprom2_init | ( | eeprom2_t * | ctx, |
eeprom2_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 eeprom2_memory_disable | ( | eeprom2_t * | ctx | ) |
Disable EEPROM memory.
ctx | Click object. |
This function disables EEPROM memory.
void eeprom2_memory_enable | ( | eeprom2_t * | ctx | ) |
Enable EEPROM memory.
ctx | Click object. |
This function enables EEPROM memory.
uint8_t eeprom2_read | ( | eeprom2_t * | ctx, |
uint32_t | memory_address ) |
Generic read function.
ctx | Click object. |
memory_address | Memory address. |
This function reads a single byte from the given memory address.
void eeprom2_read_bytes | ( | eeprom2_t * | ctx, |
uint32_t | memory_address, | ||
uint8_t * | value, | ||
uint8_t | count ) |
Function to read bytes.
ctx | Click object. |
memory_address | Memory address. |
value | Values read from the given memory address. |
count | Count of data read from memory. |
This function reads bytes from the given memory address.
void eeprom2_write | ( | eeprom2_t * | ctx, |
uint32_t | memory_address, | ||
uint8_t | value ) |
Generic write function.
ctx | Click object. |
memory_address | Memory address. |
value | Value to be written to memory address. |
This function writes a single byte of data to the given memory address.
void eeprom2_write_bytes | ( | eeprom2_t * | ctx, |
uint32_t | memory_address, | ||
uint8_t * | value, | ||
uint8_t | count ) |
Function to write bytes.
ctx | Click object. |
memory_address | Memory address. |
value | Values to be written to memory address. |
count | Count of data (in bytes, max 256) to be written. |
This function writes bytes of data to the given memory address.