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

MB85RC256V FRAM Driver extensions. More...

#include "sarmfsw.h"
#include "MB85RC256V.h"
Include dependency graph for MB85RC256V_ex.h:
This graph shows which files directly or indirectly include this file:

Macros

#define MB85RC256V_Read_Type(cpnt, name, type, addr)
 Macro to create function to read value(s) from MB85RC256V.
 
#define MB85RC256V_Write_Type(cpnt, name, type, addr)
 Macro to create function to write value(s) to MB85RC256V.
 

Functions

FctERR MB85RC256V_Mass_Erase (MB85RC256V_t *const pCpnt)
 Mass erase of MB85RC256V.
 
void MB85RC256V_WP_GPIO_Init (MB85RC256V_t *const pCpnt, GPIO_TypeDef *const GPIOx, const uint16_t GPIO_Pin, const GPIO_PinState GPIO_Active)
 Write Protect GPIO pin init for MB85RC256V.
 
void MB85RC256V_WP_GPIO_Get (const MB85RC256V_t *const pCpnt, bool *const pState)
 Write Protect GPIO pin getter for MB85RC256V.
 

Detailed Description

MB85RC256V FRAM Driver extensions.

Author
SMFSW

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

Note
Compatibility (tested):
  • MB85RC256V
  • MB85RC256VL64B

Macro Definition Documentation

◆ MB85RC256V_Read_Type

#define MB85RC256V_Read_Type ( cpnt,
name,
type,
addr )
Value:
__INLINE FctERR NONNULL_INLINE__ MB85RC256V_Get_##name(type * rd) { \
return MB85RC256V_Read(cpnt, &rd, addr, sizeof(type)); }
FctERR MB85RC256V_Read(MB85RC256V_t *const pCpnt, uint8_t *data, const uint16_t addr, const uint16_t nb)
I2C Read function for MB85RC256V.
Definition MB85RC256V.c:72

Macro to create function to read value(s) from MB85RC256V.

◆ MB85RC256V_Write_Type

#define MB85RC256V_Write_Type ( cpnt,
name,
type,
addr )
Value:
__INLINE FctERR INLINE__ MB85RC256V_Set_##name(type wr) { \
return MB85RC256V_Write(cpnt, &wr, addr, sizeof(type)); }
FctERR MB85RC256V_Write(MB85RC256V_t *const pCpnt, const uint8_t *data, const uint16_t addr, const uint16_t nb)
I2C Write function for MB85RC256V.
Definition MB85RC256V.c:53

Macro to create function to write value(s) to MB85RC256V.

Function Documentation

◆ MB85RC256V_Mass_Erase()

FctERR MB85RC256V_Mass_Erase ( MB85RC256V_t *const pCpnt)

Mass erase of MB85RC256V.

Parameters
[in]pCpnt- Pointer to MB85RC256V component
Returns
FctERR - error code
Here is the call graph for this function:

◆ MB85RC256V_WP_GPIO_Get()

void MB85RC256V_WP_GPIO_Get ( const MB85RC256V_t *const pCpnt,
bool *const pState )

Write Protect GPIO pin getter for MB85RC256V.

Weak Functions
MB85RC256V Write Protect GPIO pin getter may be user implemented if needed
Parameters
[in]pCpnt- Pointer to MB85RC256V component
[in,out]pState- Pointer to WP pin state variable (0: inactive, 1: active)

◆ MB85RC256V_WP_GPIO_Init()

void MB85RC256V_WP_GPIO_Init ( MB85RC256V_t *const pCpnt,
GPIO_TypeDef *const GPIOx,
const uint16_t GPIO_Pin,
const GPIO_PinState GPIO_Active )

Write Protect GPIO pin init for MB85RC256V.

Weak Functions
MB85RC256V Write Protect GPIO pin init may be user implemented if needed
Parameters
[in]pCpnt- Pointer to MB85RC256V component
[in]GPIOx- WP port
[in]GPIO_Pin- WP pin
[in]GPIO_ActiveWP pin active state
Here is the call graph for this function: