_BSP_User_Manual
|
Functions | |
uint32_t | BSP_EEPROM_Init (void) |
Initializes peripherals used by the EEPROM device selected. | |
void | BSP_EEPROM_SelectDevice (uint8_t DeviceID) |
Select the EEPROM device to communicate. | |
uint32_t | BSP_EEPROM_ReadBuffer (uint8_t *pBuffer, uint16_t ReadAddr, uint32_t *NumByteToRead) |
Reads a block of data from the EEPROM device selected. | |
uint32_t | BSP_EEPROM_WriteBuffer (uint8_t *pBuffer, uint16_t WriteAddr, uint32_t NumByteToWrite) |
Writes buffer of data to the EEPROM device selected. | |
__weak void | BSP_EEPROM_TIMEOUT_UserCallback (void) |
Basic management of the timeout situation. | |
void | EEPROM_I2C_IO_Init (void) |
Initializes peripherals used by the I2C EEPROM driver. | |
HAL_StatusTypeDef | EEPROM_I2C_IO_WriteData (uint16_t DevAddress, uint16_t MemAddress, uint8_t *pBuffer, uint32_t BufferSize) |
Write data to I2C EEPROM driver. | |
HAL_StatusTypeDef | EEPROM_I2C_IO_ReadData (uint16_t DevAddress, uint16_t MemAddress, uint8_t *pBuffer, uint32_t BufferSize) |
Read data from I2C EEPROM driver. | |
HAL_StatusTypeDef | EEPROM_I2C_IO_IsDeviceReady (uint16_t DevAddress, uint32_t Trials) |
Checks if target device is ready for communication. |
Function Documentation
uint32_t BSP_EEPROM_Init | ( | void | ) |
Initializes peripherals used by the EEPROM device selected.
Definition at line 155 of file stm3210c_eval_eeprom.c.
References EEPROM_FAIL, and EEPROM_DrvTypeDef::Init.
uint32_t BSP_EEPROM_ReadBuffer | ( | uint8_t * | pBuffer, |
uint16_t | ReadAddr, | ||
uint32_t * | NumByteToRead | ||
) |
Reads a block of data from the EEPROM device selected.
- Note:
- The variable pointed by NumByteToRead is reset to 0 when all the data are read from the EEPROM. Application should monitor this variable in order know when the transfer is complete.
Definition at line 206 of file stm3210c_eval_eeprom.c.
References EEPROM_FAIL, and EEPROM_DrvTypeDef::ReadBuffer.
void BSP_EEPROM_SelectDevice | ( | uint8_t | DeviceID | ) |
Select the EEPROM device to communicate.
Definition at line 177 of file stm3210c_eval_eeprom.c.
References BSP_EEPROM_M24C08, BSP_EEPROM_M24C64_32, and EEPROM_I2C_Drv.
void BSP_EEPROM_TIMEOUT_UserCallback | ( | void | ) |
Basic management of the timeout situation.
Definition at line 380 of file stm3210c_eval_eeprom.c.
Referenced by EEPROM_I2C_WaitEepromStandbyState().
uint32_t BSP_EEPROM_WriteBuffer | ( | uint8_t * | pBuffer, |
uint16_t | WriteAddr, | ||
uint32_t | NumByteToWrite | ||
) |
Writes buffer of data to the EEPROM device selected.
< If NumByteToWrite < EEPROM_PAGESIZE
< If NumByteToWrite < EEPROM_PAGESIZE
< If the number of data to be written is more than the remaining space in the current page:
< Write the data contained in same page
< Write the remaining data in the following page
Definition at line 227 of file stm3210c_eval_eeprom.c.
References EEPROM_FAIL, EEPROM_OK, EEPROMPageSize, and EEPROM_DrvTypeDef::WritePage.
void EEPROM_I2C_IO_Init | ( | void | ) |
Initializes peripherals used by the I2C EEPROM driver.
Definition at line 1271 of file stm3210c_eval.c.
References I2Cx_Init().
Referenced by EEPROM_I2C_Init().
HAL_StatusTypeDef EEPROM_I2C_IO_IsDeviceReady | ( | uint16_t | DevAddress, |
uint32_t | Trials | ||
) |
Checks if target device is ready for communication.
- Note:
- This function is used with Memory devices
Definition at line 1309 of file stm3210c_eval.c.
References I2Cx_IsDeviceReady().
Referenced by EEPROM_I2C_Init(), and EEPROM_I2C_WaitEepromStandbyState().
HAL_StatusTypeDef EEPROM_I2C_IO_ReadData | ( | uint16_t | DevAddress, |
uint16_t | MemAddress, | ||
uint8_t * | pBuffer, | ||
uint32_t | BufferSize | ||
) |
Read data from I2C EEPROM driver.
Definition at line 1297 of file stm3210c_eval.c.
References I2Cx_ReadBuffer().
Referenced by EEPROM_I2C_ReadBuffer().
HAL_StatusTypeDef EEPROM_I2C_IO_WriteData | ( | uint16_t | DevAddress, |
uint16_t | MemAddress, | ||
uint8_t * | pBuffer, | ||
uint32_t | BufferSize | ||
) |
Write data to I2C EEPROM driver.
Definition at line 1284 of file stm3210c_eval.c.
References I2Cx_WriteBuffer().
Referenced by EEPROM_I2C_WritePage().
Generated on Thu Dec 11 2014 15:38:29 for _BSP_User_Manual by 1.7.5.1