|
I2C_Drivers (ARM) 1.1
SMFSW collection of HAL I2C Drivers for ARM
|
FRAM / EEPROM Driver. More...


Data Structures | |
| struct | I2CMEM_t |
| I2CMEM user interface struct. More... | |
Macros | |
| #define | I2C_I2CMEM_NB 1U |
| Number of I2CMEM peripherals. | |
| #define | I2CMEM_BASE_ADDR 0x50U |
| I2CMEM Base address. | |
| #define | I2CMEM_BANK_SIZE 0x100U |
| I2CMEM bank size (in bytes) for <=16Kb devices. | |
Functions | |
| FctERR | I2CMEM_Init (const uint8_t idx, I2C_HandleTypeDef *const hi2c, const uint16_t devAddress, const size_t size, const size_t buf_size) |
| Initialization for I2CMEM peripheral. | |
| FctERR | I2CMEM_Init_Single (const size_t size, const size_t buf_size) |
| Initialization for I2CMEM peripheral. | |
| FctERR | I2CMEM_Write (I2CMEM_t *const pCpnt, const uint8_t *const data, const uint16_t addr, const uint16_t nb) |
| I2C Write function for I2CMEM. | |
| FctERR | I2CMEM_Read (I2CMEM_t *const pCpnt, uint8_t *const data, const uint16_t addr, const uint16_t nb) |
| I2C Read function for I2CMEM. | |
Variables | |
| I2CMEM_t | I2CMEM [I2C_I2CMEM_NB] |
| I2CMEM User structure. | |
FRAM / EEPROM Driver.
| #define I2C_I2CMEM_NB 1U |
Number of I2CMEM peripherals.
| #define I2CMEM_BANK_SIZE 0x100U |
I2CMEM bank size (in bytes) for <=16Kb devices.
| #define I2CMEM_BASE_ADDR 0x50U |
I2CMEM Base address.
| FctERR I2CMEM_Init | ( | const uint8_t | idx, |
| I2C_HandleTypeDef *const | hi2c, | ||
| const uint16_t | devAddress, | ||
| const size_t | size, | ||
| const size_t | buf_size ) |
Initialization for I2CMEM peripheral.
| [in] | idx | - I2CMEM index |
| [in] | hi2c | - pointer to I2CMEM I2C instance |
| [in] | devAddress | - I2CMEM device address |
| [in] | size | - I2CMEM device size |
| [in] | buf_size | - I2CMEM device write buffer size (typically I2CMEM_WBUF_NONE for FRAM component) |


| FctERR I2CMEM_Init_Single | ( | const size_t | size, |
| const size_t | buf_size ) |
Initialization for I2CMEM peripheral.
| [in] | size | - I2CMEM device size |
| [in] | buf_size | - I2CMEM device write buffer size (typically I2CMEM_WBUF_NONE for FRAM component) |

| FctERR I2CMEM_Read | ( | I2CMEM_t *const | pCpnt, |
| uint8_t *const | data, | ||
| const uint16_t | addr, | ||
| const uint16_t | nb ) |
I2C Read function for I2CMEM.
| [in] | pCpnt | - Pointer to I2CMEM component |
| [in,out] | data | - pointer to read/write to/from |
| [in] | addr | - Address to read from |
| [in] | nb | - Number of bytes to read |
| FctERR I2CMEM_Write | ( | I2CMEM_t *const | pCpnt, |
| const uint8_t *const | data, | ||
| const uint16_t | addr, | ||
| const uint16_t | nb ) |
I2C Write function for I2CMEM.
| [in] | pCpnt | - Pointer to I2CMEM component |
| [in,out] | data | - pointer to read/write to/from |
| [in] | addr | - Address to read from |
| [in] | nb | - Number of bytes to read |

|
extern |
I2CMEM User structure.