|
I2C_Drivers (ARM) 1.1
SMFSW collection of HAL I2C Drivers for ARM
|
FM24C FRAM Driver (bank switching at I2C address level protocol) More...
#include "FM24C.h"
Macros | |
| #define | MAX_RETRIES 0xFFFFFFFFU |
| Maximum number retries. | |
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] = { 0 } |
| 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 MAX_RETRIES 0xFFFFFFFFU |
Maximum number retries.
| 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 |

| FM24C_t FM24C[I2C_FM24C_NB] = { 0 } |
FM24C User structure.