Functions | |
uint8_t | BSP_EEPROM_DeInit (void) |
DeInitializes the EEPROM. More... | |
uint32_t | BSP_EEPROM_Init (void) |
Initializes peripherals used by the I2C EEPROM driver. More... | |
uint32_t | BSP_EEPROM_ReadBuffer (uint8_t *pBuffer, uint16_t ReadAddr, uint16_t *NumByteToRead) |
Reads a block of data from the EEPROM. More... | |
void | BSP_EEPROM_TIMEOUT_UserCallback (void) |
Basic management of the timeout situation. More... | |
uint32_t | BSP_EEPROM_WaitEepromStandbyState (void) |
Wait for EEPROM Standby state. More... | |
uint32_t | BSP_EEPROM_WriteBuffer (uint8_t *pBuffer, uint16_t WriteAddr, uint16_t NumByteToWrite) |
Writes buffer of data to the I2C EEPROM. More... | |
uint32_t | BSP_EEPROM_WritePage (uint8_t *pBuffer, uint16_t WriteAddr, uint8_t *NumByteToWrite) |
Writes more than one byte to the EEPROM with a single WRITE cycle. More... | |
void | EEPROM_IO_Init (void) |
Initializes peripherals used by the I2C EEPROM driver. More... | |
HAL_StatusTypeDef | EEPROM_IO_IsDeviceReady (uint16_t DevAddress, uint32_t Trials) |
Checks if target device is ready for communication. More... | |
HAL_StatusTypeDef | EEPROM_IO_ReadData (uint16_t DevAddress, uint16_t MemAddress, uint8_t *pBuffer, uint32_t BufferSize) |
Read data from I2C EEPROM driver in using DMA channel. More... | |
HAL_StatusTypeDef | EEPROM_IO_WriteData (uint16_t DevAddress, uint16_t MemAddress, uint8_t *pBuffer, uint32_t BufferSize) |
Write data to I2C EEPROM driver in using DMA channel. More... | |
uint8_t BSP_EEPROM_DeInit | ( | void | ) |
DeInitializes the EEPROM.
EEPROM | state |
Definition at line 180 of file stm32f769i_discovery_eeprom.c.
uint32_t BSP_EEPROM_Init | ( | void | ) |
Initializes peripherals used by the I2C EEPROM driver.
EEPROM_OK | (0) if operation is correctly performed, else return value different from EEPROM_OK (0) |
Definition at line 157 of file stm32f769i_discovery_eeprom.c.
uint32_t BSP_EEPROM_ReadBuffer | ( | uint8_t * | pBuffer, |
uint16_t | ReadAddr, | ||
uint16_t * | NumByteToRead | ||
) |
Reads a block of data from the EEPROM.
pBuffer | pointer to the buffer that receives the data read from the EEPROM. |
ReadAddr | EEPROM's internal address to start reading from. |
NumByteToRead | pointer to the variable holding number of bytes to be read from the EEPROM. |
EEPROM_OK | (0) if operation is correctly performed, else return value different from EEPROM_OK (0) or the timeout user callback. |
Definition at line 201 of file stm32f769i_discovery_eeprom.c.
void BSP_EEPROM_TIMEOUT_UserCallback | ( | void | ) |
Basic management of the timeout situation.
None |
Definition at line 456 of file stm32f769i_discovery_eeprom.c.
uint32_t BSP_EEPROM_WaitEepromStandbyState | ( | void | ) |
Wait for EEPROM Standby state.
EEPROM_OK | (0) if operation is correctly performed, else return value different from EEPROM_OK (0) or the timeout user callback. |
Definition at line 440 of file stm32f769i_discovery_eeprom.c.
uint32_t BSP_EEPROM_WriteBuffer | ( | uint8_t * | pBuffer, |
uint16_t | WriteAddr, | ||
uint16_t | NumByteToWrite | ||
) |
Writes buffer of data to the I2C EEPROM.
pBuffer | pointer to the buffer containing the data to be written to the EEPROM. |
WriteAddr | EEPROM's internal address to write to. |
NumByteToWrite | number of bytes to write to the EEPROM. |
EEPROM_OK | (0) if operation is correctly performed, else return value different from EEPROM_OK (0) or the timeout user callback. |
Definition at line 283 of file stm32f769i_discovery_eeprom.c.
uint32_t BSP_EEPROM_WritePage | ( | uint8_t * | pBuffer, |
uint16_t | WriteAddr, | ||
uint8_t * | NumByteToWrite | ||
) |
Writes more than one byte to the EEPROM with a single WRITE cycle.
pBuffer | pointer to the buffer containing the data to be written to the EEPROM. |
WriteAddr | EEPROM's internal address to write to. |
NumByteToWrite | pointer to the variable holding number of bytes to be written into the EEPROM. |
EEPROM_OK | (0) if operation is correctly performed, else return value different from EEPROM_OK (0) or the timeout user callback. |
Definition at line 248 of file stm32f769i_discovery_eeprom.c.
void EEPROM_IO_Init | ( | void | ) |
Initializes peripherals used by the I2C EEPROM driver.
Definition at line 793 of file stm32469i_discovery.c.
HAL_StatusTypeDef EEPROM_IO_IsDeviceReady | ( | uint16_t | DevAddress, |
uint32_t | Trials | ||
) |
Checks if target device is ready for communication.
DevAddress | Target device address |
Trials | Number of trials |
HAL | status |
Definition at line 831 of file stm32469i_discovery.c.
HAL_StatusTypeDef EEPROM_IO_ReadData | ( | uint16_t | DevAddress, |
uint16_t | MemAddress, | ||
uint8_t * | pBuffer, | ||
uint32_t | BufferSize | ||
) |
Read data from I2C EEPROM driver in using DMA channel.
DevAddress | Target device address |
MemAddress | Internal memory address |
pBuffer | Pointer to data buffer |
BufferSize | Amount of data to be read |
HAL | status |
Definition at line 819 of file stm32469i_discovery.c.
HAL_StatusTypeDef EEPROM_IO_WriteData | ( | uint16_t | DevAddress, |
uint16_t | MemAddress, | ||
uint8_t * | pBuffer, | ||
uint32_t | BufferSize | ||
) |
Write data to I2C EEPROM driver in using DMA channel.
DevAddress | Target device address |
MemAddress | Internal memory address |
pBuffer | Pointer to data buffer |
BufferSize | Amount of data to be sent |
HAL | status |
Definition at line 806 of file stm32469i_discovery.c.