|
I2C_Drivers (ARM) 1.1
SMFSW collection of HAL I2C Drivers for ARM
|
FM24C FRAM Driver (bank switching at I2C address level protocol) More...


Data Structures | |
| struct | FM24C_t |
| FM24C user interface struct. More... | |
Macros | |
| #define | I2C_FM24C_NB 1U |
| Number of FM24C peripherals. | |
| #define | FM24C_BASE_ADDR 0x50U |
| FM24C Base address. | |
| #define | FM24C_BANK_SIZE 0x100U |
| FM24C bank size (in bytes) | |
| #define | FM24C04B_SIZE 0x200U |
| FM24C04 size (in bytes) | |
| #define | FM24C16B_SIZE 0x800U |
| FM24C16 size (in bytes) | |
| #define | FM24C_SIZE FM24C16B_SIZE |
| FM24C size. | |
Functions | |
| FctERR | FM24C_Init (const uint8_t idx, I2C_HandleTypeDef *const hi2c, const uint16_t devAddress) |
| Initialization for FM24C peripheral. | |
| FctERR | FM24C_Init_Single (void) |
| Initialization for FM24C peripheral. | |
| FctERR | FM24C_Write (FM24C_t *const pCpnt, const uint8_t *const data, const uint16_t addr, const uint16_t nb) |
| I2C Write function for FM24C. | |
| FctERR | FM24C_Read (FM24C_t *const pCpnt, uint8_t *const data, const uint16_t addr, const uint16_t nb) |
| I2C Read function for FM24C. | |
Variables | |
| FM24C_t | FM24C [I2C_FM24C_NB] |
| FM24C User structure. | |
FM24C FRAM Driver (bank switching at I2C address level protocol)
FM24C16B: 16-Kbit (2K * 8) Serial I2C F-RAM FM24C04B: 4-Kbit (512 * 8) Serial I2C F-RAM
| #define FM24C04B_SIZE 0x200U |
FM24C04 size (in bytes)
| #define FM24C16B_SIZE 0x800U |
FM24C16 size (in bytes)
| #define FM24C_BANK_SIZE 0x100U |
FM24C bank size (in bytes)
| #define FM24C_BASE_ADDR 0x50U |
FM24C Base address.
| #define FM24C_SIZE FM24C16B_SIZE |
FM24C size.
| #define I2C_FM24C_NB 1U |
Number of FM24C peripherals.
| FctERR FM24C_Init | ( | const uint8_t | idx, |
| I2C_HandleTypeDef *const | hi2c, | ||
| const uint16_t | devAddress ) |
Initialization for FM24C peripheral.
| [in] | idx | - FM24C index |
| [in] | hi2c | - pointer to FM24C I2C instance |
| [in] | devAddress | - FM24C device address |


| FctERR FM24C_Init_Single | ( | void | ) |
Initialization for FM24C peripheral.

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

|
extern |
FM24C User structure.