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

FRAM / EEPROM Driver extensions. More...

#include "I2CMEM.h"
Include dependency graph for I2CMEM_ex.c:

Functions

FctERR I2CMEM_Mass_Erase (I2CMEM_t *const pCpnt)
 Mass erase of I2CMEM.
 
void I2CMEM_WP_GPIO_Init (I2CMEM_t *const pCpnt, GPIO_TypeDef *const GPIOx, const uint16_t GPIO_Pin, const GPIO_PinState GPIO_Active)
 Write Protect GPIO pin init for I2CMEM.
 
void I2CMEM_WP_GPIO_Set (I2CMEM_t *const pCpnt, const bool state)
 Write Protect GPIO pin setter for I2CMEM.
 

Detailed Description

FRAM / EEPROM Driver extensions.

Author
SMFSW
Note
Fully compatible between EEPROM / FRAM type components
When EEPROM compatibility is not needed, buf_size at init can be set to I2CMEM_WBUF_NONE for more efficiency

Function Documentation

◆ I2CMEM_Mass_Erase()

FctERR I2CMEM_Mass_Erase ( I2CMEM_t *const pCpnt)

Mass erase of I2CMEM.

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

◆ I2CMEM_WP_GPIO_Init()

void I2CMEM_WP_GPIO_Init ( I2CMEM_t *const pCpnt,
GPIO_TypeDef *const GPIOx,
const uint16_t GPIO_Pin,
const GPIO_PinState GPIO_Active )

Write Protect GPIO pin init for I2CMEM.

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

◆ I2CMEM_WP_GPIO_Set()

void I2CMEM_WP_GPIO_Set ( I2CMEM_t *const pCpnt,
const bool state )

Write Protect GPIO pin setter for I2CMEM.

Weak Functions
I2CMEM Write Protect GPIO pin setter may be user implemented if needed
Parameters
[in]pCpnt- Pointer to I2CMEM component
[in]state- state to write on WP pin (0: inactive, 1: active)
Here is the call graph for this function: