|
STM32072B_EVAL BSP User Manual
|
Functions | |
| void | EEPROM_IO_Init (void) |
| Initializes peripherals used by the I2C EEPROM driver. | |
| HAL_StatusTypeDef | EEPROM_IO_WriteData (uint16_t DevAddress, uint16_t MemAddress, uint8_t *pBuffer, uint32_t BufferSize) |
| Write data to I2C EEPROM driver. | |
| HAL_StatusTypeDef | EEPROM_IO_ReadData (uint16_t DevAddress, uint16_t MemAddress, uint8_t *pBuffer, uint32_t BufferSize) |
| Read data from I2C EEPROM driver. | |
| HAL_StatusTypeDef | EEPROM_IO_IsDeviceReady (uint16_t DevAddress, uint32_t Trials) |
| Checks if target device is ready for communication. | |
Function Documentation
| void EEPROM_IO_Init | ( | void | ) |
Initializes peripherals used by the I2C EEPROM driver.
- Return values:
-
None
Definition at line 1207 of file stm32072b_eval.c.
References I2C1_Init().
Referenced by EEPROM_I2C_Init().
| HAL_StatusTypeDef EEPROM_IO_IsDeviceReady | ( | uint16_t | DevAddress, |
| uint32_t | Trials | ||
| ) |
Checks if target device is ready for communication.
- Note:
- This function is used with Memory devices
- Parameters:
-
DevAddress Target device address Trials Number of trials
- Return values:
-
HAL status
Definition at line 1245 of file stm32072b_eval.c.
References I2C1_IsDeviceReady().
Referenced by EEPROM_I2C_Init(), and EEPROM_I2C_WaitEepromStandbyState().
| HAL_StatusTypeDef EEPROM_IO_ReadData | ( | uint16_t | DevAddress, |
| uint16_t | MemAddress, | ||
| uint8_t * | pBuffer, | ||
| uint32_t | BufferSize | ||
| ) |
Read data from I2C EEPROM driver.
- Parameters:
-
DevAddress Target device address MemAddress Internal memory address pBuffer Pointer to data buffer BufferSize Amount of data to be read
- Return values:
-
HAL status
Definition at line 1233 of file stm32072b_eval.c.
References I2C1_ReadBuffer().
Referenced by EEPROM_I2C_ReadBuffer().
| HAL_StatusTypeDef EEPROM_IO_WriteData | ( | uint16_t | DevAddress, |
| uint16_t | MemAddress, | ||
| uint8_t * | pBuffer, | ||
| uint32_t | BufferSize | ||
| ) |
Write data to I2C EEPROM driver.
- Parameters:
-
DevAddress Target device address MemAddress Internal memory address pBuffer Pointer to data buffer BufferSize Amount of data to be sent
- Return values:
-
HAL status
Definition at line 1220 of file stm32072b_eval.c.
References I2C1_WriteBuffer().
Referenced by EEPROM_I2C_WritePage().
Generated on Wed Jul 5 2017 08:56:11 for STM32072B_EVAL BSP User Manual by
1.7.6.1