STM32373C_EVAL BSP User Manual
|
Functions | |
static uint32_t | EEPROM_WritePage (uint8_t *pBuffer, uint16_t WriteAddr, uint32_t *NumByteToWrite) |
Writes more than one byte to the EEPROM with a single WRITE cycle. |
Function Documentation
static uint32_t EEPROM_WritePage | ( | uint8_t * | pBuffer, |
uint16_t | WriteAddr, | ||
uint32_t * | NumByteToWrite | ||
) | [static] |
Writes more than one byte to the EEPROM with a single WRITE cycle.
- Note:
- 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 EEPROM_WriteBuffer() which calls EEPROM_WritePage() is responsible of checking on Page boundaries).
- Parameters:
-
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.
- Note:
- 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.
- Return values:
-
EEPROM_OK (0) if operation is correctly performed, else return value different from EEPROM_OK (0) or the timeout user callback.
Definition at line 249 of file stm32373c_eval_eeprom.c.
References BSP_EEPROM_WaitEepromStandbyState(), EEPROM_FAIL, EEPROM_IO_WriteData(), EEPROM_OK, and EEPROMAddress.
Referenced by BSP_EEPROM_WriteBuffer().
Generated on Wed May 31 2017 11:20:45 for STM32373C_EVAL BSP User Manual by
