|
I2C_Drivers (ARM) 1.1
SMFSW collection of HAL I2C Drivers for ARM
|
MB85RC256V FRAM Driver. More...
#include "sarmfsw.h"#include "I2C_component.h"#include "I2C_peripheral.h"#include "MB85RC256V_proc.h"#include "MB85RC256V_ex.h"

Data Structures | |
| struct | MB85RC256V_t |
| MB85RC256V user interface struct. More... | |
Macros | |
| #define | I2C_MB85RC256V_NB 1U |
| Number of MB85RC256V peripherals. | |
| #define | MB85RC256V_BASE_ADDR 0x50U |
| MB85RC256V Base address. | |
| #define | MB85RC256V_SIZE 0x8000U |
| MB85RC256V size (in bytes) | |
Functions | |
| FctERR | MB85RC256V_Init (const uint8_t idx, I2C_HandleTypeDef *const hi2c, const uint16_t devAddress) |
| Initialization for MB85RC256V peripheral. | |
| FctERR | MB85RC256V_Init_Single (void) |
| Initialization for MB85RC256V peripheral. | |
| FctERR | MB85RC256V_Write (MB85RC256V_t *const pCpnt, const uint8_t *data, const uint16_t addr, const uint16_t nb) |
| I2C Write function for MB85RC256V. | |
| FctERR | MB85RC256V_Read (MB85RC256V_t *const pCpnt, uint8_t *data, const uint16_t addr, const uint16_t nb) |
| I2C Read function for MB85RC256V. | |
| FctERR | MB85RC256V_Read_ID (MB85RC256V_t *const pCpnt, uint8_t *data) |
| I2C Read ID function for MB85RC256V (reads 3 bytes) | |
Variables | |
| MB85RC256V_t | MB85RC256V [I2C_MB85RC256V_NB] |
| MB85RC256V User structure. | |
MB85RC256V FRAM Driver.
MB85RC256V: 256-Kbit (32K * 8) I2C Memory FRAM
| #define I2C_MB85RC256V_NB 1U |
Number of MB85RC256V peripherals.
| #define MB85RC256V_BASE_ADDR 0x50U |
MB85RC256V Base address.
| #define MB85RC256V_SIZE 0x8000U |
MB85RC256V size (in bytes)
| FctERR MB85RC256V_Init | ( | const uint8_t | idx, |
| I2C_HandleTypeDef *const | hi2c, | ||
| const uint16_t | devAddress ) |
Initialization for MB85RC256V peripheral.
| [in] | idx | - MB85RC256V index |
| [in] | hi2c | - pointer to MB85RC256V I2C instance |
| [in] | devAddress | - MB85RC256V device address |


| FctERR MB85RC256V_Init_Single | ( | void | ) |
Initialization for MB85RC256V peripheral.

| FctERR MB85RC256V_Read | ( | MB85RC256V_t *const | pCpnt, |
| uint8_t * | data, | ||
| const uint16_t | addr, | ||
| const uint16_t | nb ) |
I2C Read function for MB85RC256V.
| [in] | pCpnt | - Pointer to MB85RC256V component |
| [in,out] | data | - pointer to read to |
| [in] | addr | - Address to read from |
| [in] | nb | - Number of bytes to read |

| FctERR MB85RC256V_Read_ID | ( | MB85RC256V_t *const | pCpnt, |
| uint8_t * | data ) |
I2C Read ID function for MB85RC256V (reads 3 bytes)
| [in] | pCpnt | - Pointer to MB85RC256V component |
| [in,out] | data | - pointer to read to |


| FctERR MB85RC256V_Write | ( | MB85RC256V_t *const | pCpnt, |
| const uint8_t * | data, | ||
| const uint16_t | addr, | ||
| const uint16_t | nb ) |
I2C Write function for MB85RC256V.
| [in] | pCpnt | - Pointer to MB85RC256V component |
| [in] | data | - pointer to write from |
| [in] | addr | - Address to write to |
| [in] | nb | - Number of bytes to write |


|
extern |
MB85RC256V User structure.