BSP_EEPROM_WritePage() is only used within STM32F429I-Discovery.
 
Symbols
loading...
Files
loading...

BSP_EEPROM_WritePage() function

Writes more than one byte to the EEPROM with a single WRITE cycle.

Syntax

uint32_t BSP_EEPROM_WritePage(uint8_t *pBuffer,     uint16_t WriteAddr,     uint8_t *NumByteToWrite);
Implemented in stm32f429i_discovery_eeprom.c:230

Arguments

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.

Return value

EEPROM_OK (0) if operation is correctly performed, else return value different from EEPROM_OK (0) or the timeout user callback.

Notes

The number of bytes (combined to write start address) must not cross the EEPROM page boundary. This function can only write into the boundaries of an EEPROM page. This function doesn't check on boundaries condition (in this driver the function BSP_EEPROM_WriteBuffer() which calls BSP_EEPROM_WritePage() is responsible of checking on Page boundaries). The variable pointed by NumByteToWrite is reset to 0 when all the data are written to the EEPROM. Application should monitor this variable in order know when the transfer is complete. This function just configure the communication and enable the DMA channel to transfer data. Meanwhile, the user application may perform other tasks in parallel.

References

LocationReferrerText
stm32f429i_discovery_eeprom.c:230
uint32_t BSP_EEPROM_WritePage(uint8_t *pBuffer, uint16_t WriteAddr, uint8_t *NumByteToWrite)
stm32f429i_discovery_eeprom.h:86
uint32_t BSP_EEPROM_WritePage(uint8_t *pBuffer, uint16_t WriteAddr, uint8_t *NumByteToWrite);
stm32f429i_discovery_eeprom.c:295BSP_EEPROM_WriteBuffer()
status = BSP_EEPROM_WritePage(pBuffer, WriteAddr, (uint8_t *)(&dataindex));
stm32f429i_discovery_eeprom.c:308BSP_EEPROM_WriteBuffer()
status = BSP_EEPROM_WritePage(pBuffer, WriteAddr, (uint8_t *)(&dataindex));
stm32f429i_discovery_eeprom.c:322BSP_EEPROM_WriteBuffer()
status = BSP_EEPROM_WritePage(pBuffer, WriteAddr, (uint8_t *)(&dataindex));
stm32f429i_discovery_eeprom.c:343BSP_EEPROM_WriteBuffer()
status = BSP_EEPROM_WritePage(pBuffer, WriteAddr, (uint8_t *)(&dataindex));
stm32f429i_discovery_eeprom.c:352BSP_EEPROM_WriteBuffer()
status = BSP_EEPROM_WritePage((uint8_t *)(pBuffer + count), (WriteAddr + count), (uint8_t *)(&dataindex));
stm32f429i_discovery_eeprom.c:362BSP_EEPROM_WriteBuffer()
status = BSP_EEPROM_WritePage(pBuffer, WriteAddr, (uint8_t *)(&dataindex));
stm32f429i_discovery_eeprom.c:380BSP_EEPROM_WriteBuffer()
status = BSP_EEPROM_WritePage(pBuffer, WriteAddr, (uint8_t *)(&dataindex));
stm32f429i_discovery_eeprom.c:393BSP_EEPROM_WriteBuffer()
status = BSP_EEPROM_WritePage(pBuffer, WriteAddr, (uint8_t *)(&dataindex));
stm32f429i_discovery_eeprom.c:405BSP_EEPROM_WriteBuffer()
status = BSP_EEPROM_WritePage(pBuffer, WriteAddr, (uint8_t *)(&dataindex));

Call Tree

Functions calling BSP_EEPROM_WritePage()
Functions called by BSP_EEPROM_WritePage()
all items filtered out
BSP_EEPROM_WritePage()
Data read by BSP_EEPROM_WritePage()
Data written by BSP_EEPROM_WritePage()
BSP_EEPROM_WritePage()
BSP_EEPROM_WritePage()::status
all items filtered out
Type of BSP_EEPROM_WritePage()
BSP_EEPROM_WritePage()
uint32_t
all items filtered out