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


Macros | |
| #define | I2CMEM_Read_Type(cpnt, name, type, addr) |
| Macro to create function to read value(s) from I2CMEM. | |
| #define | I2CMEM_Write_Type(cpnt, name, type, addr) |
| Macro to create function to write value(s) to I2CMEM. | |
| #define | I2CMEM_1K 0x0080U |
| 1Kb size | |
| #define | I2CMEM_2K 0x0100U |
| 2Kb size | |
| #define | I2CMEM_4K 0x0200U |
| 4Kb size | |
| #define | I2CMEM_8K 0x0400U |
| 8Kb size | |
| #define | I2CMEM_16K 0x0800U |
| 16Kb size | |
| #define | I2CMEM_32K 0x1000U |
| 32Kb size | |
| #define | I2CMEM_64K 0x2000U |
| 64Kb size | |
| #define | I2CMEM_128K 0x4000U |
| 128Kb size | |
| #define | I2CMEM_256K 0x8000U |
| 256Kb size | |
| #define | I2CMEM_WBUF_NONE 0 |
| No buffer. | |
| #define | I2CMEM_WBUF_8 8U |
| 8B buffer | |
| #define | I2CMEM_WBUF_16 16U |
| 16B buffer | |
| #define | I2CMEM_WBUF_32 32U |
| 32B buffer | |
| #define | I2CMEM_WBUF_64 64U |
| 64B buffer | |
| #define | _24xx32_Init(idx, hi2c, devAddress) |
| EEPROM 24xx32 Init alias. | |
| #define | _24xx32_Init_Single() |
| EEPROM 24xx32 Single Init alias. | |
| #define | _24xx64_Init(idx, hi2c, devAddress) |
| EEPROM 24xx64 Init alias. | |
| #define | _24xx64_Init_Single() |
| EEPROM 24xx64 Single Init alias. | |
| #define | _24xx128_Init(idx, hi2c, devAddress) |
| EEPROM 24xx128 Init alias. | |
| #define | _24xx128_Init_Single() |
| EEPROM 24xx128 Single Init alias. | |
| #define | _FM24C04_Init(idx, hi2c, devAddress) |
| FRAM FM24C04 Init alias. | |
| #define | _FM24C04_Init_Single() |
| FRAM FM24C04 Single Init alias. | |
| #define | _FM24C16_Init(idx, hi2c, devAddress) |
| FRAM FM24C16 Init alias. | |
| #define | _FM24C16_Init_Single() |
| FRAM FM24C16 Single Init alias. | |
| #define | _FM24C64_Init(idx, hi2c, devAddress) |
| FRAM FM24C64 Init alias. | |
| #define | _FM24C64_Init_Single() |
| FRAM FM24C64 Single Init alias. | |
| #define | _M24C16_Init(idx, hi2c, devAddress) |
| EEPROM M24C16 Init alias. | |
| #define | _M24C16_Init_Single() |
| EEPROM M24C16 Single Init alias. | |
| #define | _MB85RC256_Init(idx, hi2c, devAddress) |
| FRAM MB85RC256 Init alias. | |
| #define | _MB85C256_Init_Single() |
| FRAM MB85RC256 Single Init alias. | |
Functions | |
| FctERR | I2CMEM_Mass_Erase (I2CMEM_t *const pCpnt) |
| Mass erase of I2CMEM. | |
| void | I2CMEM_WP_GPIO_Init (I2CMEM_t *const pCpnt, GPIO_TypeDef *const GPIOx, const uint16_t GPIO_Pin, const GPIO_PinState GPIO_Active) |
| Write Protect GPIO pin init for I2CMEM. | |
| void | I2CMEM_WP_GPIO_Set (I2CMEM_t *const pCpnt, const bool state) |
| Write Protect GPIO pin setter for I2CMEM. | |
FRAM / EEPROM Driver extensions.
| #define _24xx128_Init | ( | idx, | |
| hi2c, | |||
| devAddress ) |
EEPROM 24xx128 Init alias.
| #define _24xx128_Init_Single | ( | ) |
EEPROM 24xx128 Single Init alias.
| #define _24xx32_Init | ( | idx, | |
| hi2c, | |||
| devAddress ) |
EEPROM 24xx32 Init alias.
| #define _24xx32_Init_Single | ( | ) |
EEPROM 24xx32 Single Init alias.
| #define _24xx64_Init | ( | idx, | |
| hi2c, | |||
| devAddress ) |
EEPROM 24xx64 Init alias.
| #define _24xx64_Init_Single | ( | ) |
EEPROM 24xx64 Single Init alias.
| #define _FM24C04_Init | ( | idx, | |
| hi2c, | |||
| devAddress ) |
FRAM FM24C04 Init alias.
| #define _FM24C04_Init_Single | ( | ) |
FRAM FM24C04 Single Init alias.
| #define _FM24C16_Init | ( | idx, | |
| hi2c, | |||
| devAddress ) |
FRAM FM24C16 Init alias.
| #define _FM24C16_Init_Single | ( | ) |
FRAM FM24C16 Single Init alias.
| #define _FM24C64_Init | ( | idx, | |
| hi2c, | |||
| devAddress ) |
FRAM FM24C64 Init alias.
| #define _FM24C64_Init_Single | ( | ) |
FRAM FM24C64 Single Init alias.
| #define _M24C16_Init | ( | idx, | |
| hi2c, | |||
| devAddress ) |
EEPROM M24C16 Init alias.
| #define _M24C16_Init_Single | ( | ) |
EEPROM M24C16 Single Init alias.
| #define _MB85C256_Init_Single | ( | ) |
FRAM MB85RC256 Single Init alias.
| #define _MB85RC256_Init | ( | idx, | |
| hi2c, | |||
| devAddress ) |
FRAM MB85RC256 Init alias.
| #define I2CMEM_128K 0x4000U |
128Kb size
| #define I2CMEM_16K 0x0800U |
16Kb size
| #define I2CMEM_1K 0x0080U |
1Kb size
| #define I2CMEM_256K 0x8000U |
256Kb size
| #define I2CMEM_2K 0x0100U |
2Kb size
| #define I2CMEM_32K 0x1000U |
32Kb size
| #define I2CMEM_4K 0x0200U |
4Kb size
| #define I2CMEM_64K 0x2000U |
64Kb size
| #define I2CMEM_8K 0x0400U |
8Kb size
| #define I2CMEM_Read_Type | ( | cpnt, | |
| name, | |||
| type, | |||
| addr ) |
Macro to create function to read value(s) from I2CMEM.
| #define I2CMEM_WBUF_16 16U |
16B buffer
| #define I2CMEM_WBUF_32 32U |
32B buffer
| #define I2CMEM_WBUF_64 64U |
64B buffer
| #define I2CMEM_WBUF_8 8U |
8B buffer
| #define I2CMEM_WBUF_NONE 0 |
No buffer.
| #define I2CMEM_Write_Type | ( | cpnt, | |
| name, | |||
| type, | |||
| addr ) |
Macro to create function to write value(s) to I2CMEM.
| FctERR I2CMEM_Mass_Erase | ( | I2CMEM_t *const | pCpnt | ) |
Mass erase of I2CMEM.
| [in] | pCpnt | - Pointer to I2CMEM component |

| void I2CMEM_WP_GPIO_Init | ( | I2CMEM_t *const | pCpnt, |
| GPIO_TypeDef *const | GPIOx, | ||
| const uint16_t | GPIO_Pin, | ||
| const GPIO_PinState | GPIO_Active ) |
Write Protect GPIO pin init for I2CMEM.
| [in] | pCpnt | - Pointer to I2CMEM component |
| [in] | GPIOx | - WP port |
| [in] | GPIO_Pin | - WP pin |
| [in] | GPIO_Active | WP pin active state |

| void I2CMEM_WP_GPIO_Set | ( | I2CMEM_t *const | pCpnt, |
| const bool | state ) |
Write Protect GPIO pin setter for I2CMEM.
| [in] | pCpnt | - Pointer to I2CMEM component |
| [in] | state | - state to write on WP pin (0: inactive, 1: active) |
