eeprom11 2.1.0.0
|
API for configuring and manipulating EEPROM 11 Click driver. More...
Topics | |
EEPROM 11 Registers List | |
List of registers of EEPROM 11 Click driver. | |
EEPROM 11 Registers Settings | |
Settings for registers of EEPROM 11 Click driver. | |
EEPROM 11 MikroBUS Map | |
MikroBUS pin mapping of EEPROM 11 Click driver. | |
Functions | |
void | eeprom11_cfg_setup (eeprom11_cfg_t *cfg) |
EEPROM 11 configuration object setup function. | |
err_t | eeprom11_init (eeprom11_t *ctx, eeprom11_cfg_t *cfg) |
EEPROM 11 initialization function. | |
err_t | eeprom11_default_cfg (eeprom11_t *ctx) |
EEPROM 11 default configuration function. | |
err_t | eeprom11_generic_write (eeprom11_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
EEPROM 11 I2C writing function. | |
err_t | eeprom11_generic_read (eeprom11_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
EEPROM 11 I2C reading function. | |
err_t | eeprom11_page_write (eeprom11_t *ctx, uint8_t address, uint8_t *data_in) |
EEPROM 11 page write function. | |
err_t | eeprom11_clear_page (eeprom11_t *ctx, uint8_t address) |
EEPROM 11 page clear function. | |
err_t | eeprom11_set_wp (eeprom11_t *ctx, uint8_t block_addr) |
EEPROM 11 set write protection function. | |
err_t | eeprom11_clear_wp (eeprom11_t *ctx) |
EEPROM 11 clear write protection function. | |
err_t | eeprom11_set_page_addr (eeprom11_t *ctx, uint8_t page_addr) |
EEPROM 11 set page address function. | |
API for configuring and manipulating EEPROM 11 Click driver.
Any initialization code needed for MCU to function properly. Do not remove this line or clock might not be set correctly.
void eeprom11_cfg_setup | ( | eeprom11_cfg_t * | cfg | ) |
EEPROM 11 configuration object setup function.
This function initializes click configuration structure to initial values.
[out] | cfg | : Click configuration structure. See eeprom11_cfg_t object definition for detailed explanation. |
err_t eeprom11_clear_page | ( | eeprom11_t * | ctx, |
uint8_t | address ) |
EEPROM 11 page clear function.
This function is used clear page ( 16 bits ) starting from the selected address.
[in] | ctx | : Click context object. See eeprom11_t object definition for detailed explanation. |
[in] | address | : Start address. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation. err_t eeprom11_clear_wp | ( | eeprom11_t * | ctx | ) |
EEPROM 11 clear write protection function.
This function is used clear write protection of selected bock.
[in] | ctx | : Click context object. See eeprom11_t object definition for detailed explanation. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation. err_t eeprom11_default_cfg | ( | eeprom11_t * | ctx | ) |
EEPROM 11 default configuration function.
This function executes a default configuration of EEPROM 11 click board.
[in] | ctx | : Click context object. See eeprom11_t object definition for detailed explanation. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation. err_t eeprom11_generic_read | ( | eeprom11_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | data_out, | ||
uint8_t | len ) |
EEPROM 11 I2C reading function.
This function reads a desired number of data bytes starting from the selected register by using I2C serial interface.
[in] | ctx | : Click context object. See eeprom11_t object definition for detailed explanation. |
[in] | reg | : Start register address. |
[out] | data_out | : Output read data. |
[in] | len | : Number of bytes to be read. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation. err_t eeprom11_generic_write | ( | eeprom11_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | data_in, | ||
uint8_t | len ) |
EEPROM 11 I2C writing function.
This function writes a desired number of data bytes starting from the selected register by using I2C serial interface.
[in] | ctx | : Click context object. See eeprom11_t object definition for detailed explanation. |
[in] | reg | : Start register address. |
[in] | data_in | : Data to be written. |
[in] | len | : Number of bytes to be written. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation. err_t eeprom11_init | ( | eeprom11_t * | ctx, |
eeprom11_cfg_t * | cfg ) |
EEPROM 11 initialization function.
This function initializes all necessary pins and peripherals used for this click board.
[out] | ctx | : Click context object. See eeprom11_t object definition for detailed explanation. |
[in] | cfg | : Click configuration structure. See eeprom11_cfg_t object definition for detailed explanation. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation. err_t eeprom11_page_write | ( | eeprom11_t * | ctx, |
uint8_t | address, | ||
uint8_t * | data_in ) |
EEPROM 11 page write function.
This function is used write page ( 16 bits ) into the selected address.
[in] | ctx | : Click context object. See eeprom11_t object definition for detailed explanation. |
[in] | address | : Start address. |
[in] | data_in | : Data to be written. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation. err_t eeprom11_set_page_addr | ( | eeprom11_t * | ctx, |
uint8_t | page_addr ) |
EEPROM 11 set page address function.
This function is used to select page address.
[in] | ctx | : Click context object. See eeprom11_t object definition for detailed explanation. |
[in] | page_addr | : Selected page address. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation. err_t eeprom11_set_wp | ( | eeprom11_t * | ctx, |
uint8_t | block_addr ) |
EEPROM 11 set write protection function.
This function is used set write protection of selected bock.
[in] | ctx | : Click context object. See eeprom11_t object definition for detailed explanation. |
[in] | block_addr | : Selected block address. |
0
- Success, -1
- Error. See #err_t definition for detailed explanation.