I2C_Drivers (ARM) 1.1
SMFSW collection of HAL I2C Drivers for ARM
Loading...
Searching...
No Matches
MB85RC256V.c File Reference

MB85RC256V FRAM Driver. More...

#include "MB85RC256V.h"
Include dependency graph for MB85RC256V.c:

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] = { 0 }
 MB85RC256V User structure.
 

Detailed Description

MB85RC256V FRAM Driver.

Author
SMFSW

MB85RC256V: 256-Kbit (32K * 8) I2C Memory FRAM

Note
Legacy component: consider switching to I2CMEM component for new designs
Compatibility (tested):
  • MB85RC256V
  • FM24CL64B

Function Documentation

◆ MB85RC256V_Init()

FctERR MB85RC256V_Init ( const uint8_t idx,
I2C_HandleTypeDef *const hi2c,
const uint16_t devAddress )

Initialization for MB85RC256V peripheral.

Parameters
[in]idx- MB85RC256V index
[in]hi2c- pointer to MB85RC256V I2C instance
[in]devAddress- MB85RC256V device address
Returns
FctERR - error code
Here is the call graph for this function:
Here is the caller graph for this function:

◆ MB85RC256V_Init_Single()

FctERR MB85RC256V_Init_Single ( void )

Initialization for MB85RC256V peripheral.

Warning
In case multiple devices (defined by I2C_MB85RC256V_NB > 1), you shall use MB85RC256V_Init instead
Returns
FctERR - error code
Here is the call graph for this function:

◆ MB85RC256V_Read()

FctERR MB85RC256V_Read ( MB85RC256V_t *const pCpnt,
uint8_t * data,
const uint16_t addr,
const uint16_t nb )

I2C Read function for MB85RC256V.

Parameters
[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
Returns
FctERR - error code
Here is the call graph for this function:

◆ MB85RC256V_Read_ID()

FctERR MB85RC256V_Read_ID ( MB85RC256V_t *const pCpnt,
uint8_t * data )

I2C Read ID function for MB85RC256V (reads 3 bytes)

Parameters
[in]pCpnt- Pointer to MB85RC256V component
[in,out]data- pointer to read to
Returns
FctERR - error code
Here is the call graph for this function:
Here is the caller graph for this function:

◆ MB85RC256V_Write()

FctERR MB85RC256V_Write ( MB85RC256V_t *const pCpnt,
const uint8_t * data,
const uint16_t addr,
const uint16_t nb )

I2C Write function for MB85RC256V.

Parameters
[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
Returns
FctERR - error code
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ MB85RC256V

MB85RC256V_t MB85RC256V[I2C_MB85RC256V_NB] = { 0 }

MB85RC256V User structure.