STM32091C_EVAL BSP User Manual
|
Functions | |
void | LCD_IO_Init (void) |
Configures the LCD_SPI interface. | |
void | LCD_IO_WriteMultipleData (uint8_t *pData, uint32_t Size) |
Write register value. | |
void | LCD_IO_WriteReg (uint8_t Reg) |
Writes address on LCD register. | |
uint16_t | LCD_IO_ReadData (uint16_t Reg) |
Read data from LCD data register. | |
void | LCD_Delay (uint32_t Delay) |
Wait for loop in ms. | |
void | SD_IO_Init (void) |
Initializes the SD Card and put it into StandBy State (Ready for data transfer). | |
void | SD_IO_WriteReadData (const uint8_t *DataIn, uint8_t *DataOut, uint16_t DataLength) |
Write a byte on the SD. | |
uint8_t | SD_IO_WriteByte (uint8_t Data) |
Writes a byte on the SD. | |
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. | |
void | TSENSOR_IO_Init (void) |
Initializes peripherals used by the I2C Temperature Sensor driver. | |
void | TSENSOR_IO_Write (uint16_t DevAddress, uint8_t *pBuffer, uint8_t WriteAddr, uint16_t Length) |
Writes one byte to the TSENSOR. | |
void | TSENSOR_IO_Read (uint16_t DevAddress, uint8_t *pBuffer, uint8_t ReadAddr, uint16_t Length) |
Reads one byte from the TSENSOR. | |
uint16_t | TSENSOR_IO_IsDeviceReady (uint16_t DevAddress, uint32_t Trials) |
Checks if Temperature Sensor is ready for communication. | |
void | HDMI_CEC_IO_Init (void) |
Initializes CEC low level. | |
HAL_StatusTypeDef | HDMI_CEC_IO_WriteData (uint8_t *pBuffer, uint16_t BufferSize) |
Write data to I2C HDMI CEC driver. | |
HAL_StatusTypeDef | HDMI_CEC_IO_ReadData (uint16_t DevAddress, uint8_t *pBuffer, uint16_t BufferSize) |
Read data to I2C HDMI CEC driver. |
Function Documentation
void EEPROM_IO_Init | ( | void | ) |
Initializes peripherals used by the I2C EEPROM driver.
- Return values:
-
None
Definition at line 1191 of file stm32091c_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 1229 of file stm32091c_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 1217 of file stm32091c_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 1204 of file stm32091c_eval.c.
References I2C1_WriteBuffer().
Referenced by EEPROM_I2C_WritePage().
void HDMI_CEC_IO_Init | ( | void | ) |
Initializes CEC low level.
- Return values:
-
None
Definition at line 1286 of file stm32091c_eval.c.
References HDMI_CEC_HPD_SINK_CLK_ENABLE, HDMI_CEC_HPD_SINK_GPIO_PORT, HDMI_CEC_HPD_SINK_PIN, HDMI_CEC_HPD_SOURCE_CLK_ENABLE, HDMI_CEC_HPD_SOURCE_GPIO_PORT, HDMI_CEC_HPD_SOURCE_PIN, HDMI_CEC_IRQn, HDMI_CEC_LINE_AF, HDMI_CEC_LINE_CLK_ENABLE, HDMI_CEC_LINE_GPIO_PORT, HDMI_CEC_LINE_PIN, I2C1_Init(), and I2C2_Init().
HAL_StatusTypeDef HDMI_CEC_IO_ReadData | ( | uint16_t | DevAddress, |
uint8_t * | pBuffer, | ||
uint16_t | BufferSize | ||
) |
Read data to I2C HDMI CEC driver.
- Parameters:
-
DevAddress Target device address pBuffer Pointer to data buffer BufferSize Amount of data to be sent
- Return values:
-
HAL status
Definition at line 1351 of file stm32091c_eval.c.
References I2C2_ReceiveData().
HAL_StatusTypeDef HDMI_CEC_IO_WriteData | ( | uint8_t * | pBuffer, |
uint16_t | BufferSize | ||
) |
Write data to I2C HDMI CEC driver.
- Parameters:
-
pBuffer Pointer to data buffer BufferSize Amount of data to be sent
- Return values:
-
HAL status
Definition at line 1339 of file stm32091c_eval.c.
References I2C1_TransmitData().
void LCD_Delay | ( | uint32_t | Delay | ) |
Wait for loop in ms.
- Parameters:
-
Delay in ms.
- Return values:
-
None
Definition at line 1077 of file stm32091c_eval.c.
void LCD_IO_Init | ( | void | ) |
Configures the LCD_SPI interface.
- Return values:
-
None
Definition at line 946 of file stm32091c_eval.c.
References LCD_CS_HIGH, LCD_CS_LOW, LCD_NCS_GPIO_CLK_ENABLE, LCD_NCS_GPIO_PORT, LCD_NCS_PIN, and SPIx_Init().
uint16_t LCD_IO_ReadData | ( | uint16_t | Reg | ) |
Read data from LCD data register.
- Parameters:
-
Reg Regsiter to be read
- Return values:
-
readvalue
Definition at line 1046 of file stm32091c_eval.c.
References LCD_CS_HIGH, LCD_CS_LOW, LCD_IO_WriteReg(), LCD_READ_REG, SPIx_Read(), SPIx_Write(), and START_BYTE.
void LCD_IO_WriteMultipleData | ( | uint8_t * | pData, |
uint32_t | Size | ||
) |
Write register value.
- Parameters:
-
pData Pointer on the register value Size Size of byte to transmit to the register
- Return values:
-
None
Definition at line 973 of file stm32091c_eval.c.
References heval_Spi, LCD_CS_HIGH, LCD_CS_LOW, LCD_WRITE_REG, SPIx_FlushFifo(), SPIx_Write(), and START_BYTE.
void LCD_IO_WriteReg | ( | uint8_t | Reg | ) |
Writes address on LCD register.
- Parameters:
-
Reg Register to be written
- Return values:
-
None
Definition at line 1025 of file stm32091c_eval.c.
References LCD_CS_HIGH, LCD_CS_LOW, SET_INDEX, SPIx_Write(), and START_BYTE.
Referenced by LCD_IO_ReadData().
void SD_IO_Init | ( | void | ) |
Initializes the SD Card and put it into StandBy State (Ready for data transfer).
- Return values:
-
None
Definition at line 1089 of file stm32091c_eval.c.
References LCD_CS_HIGH, LCD_NCS_GPIO_PORT, LCD_NCS_PIN, SD_CS_GPIO_CLK_ENABLE, SD_CS_GPIO_PORT, SD_CS_HIGH, SD_CS_PIN, SD_DETECT_EXTI_IRQn, SD_DETECT_GPIO_CLK_ENABLE, SD_DETECT_GPIO_PORT, SD_DETECT_PIN, SD_DUMMY_BYTE, SD_IO_WriteByte(), and SPIx_Init().
Referenced by BSP_SD_Init().
uint8_t SD_IO_WriteByte | ( | uint8_t | Data | ) |
Writes a byte on the SD.
- Parameters:
-
Data byte to send.
- Return values:
-
None
Definition at line 1172 of file stm32091c_eval.c.
References SPIx_WriteReadData().
Referenced by BSP_SD_Erase(), BSP_SD_GetStatus(), BSP_SD_ReadBlocks(), BSP_SD_WriteBlocks(), SD_GetCIDRegister(), SD_GetCSDRegister(), SD_GetDataResponse(), SD_GoIdleState(), SD_IO_Init(), SD_ReadData(), SD_SendCmd(), and SD_WaitData().
void SD_IO_WriteReadData | ( | const uint8_t * | DataIn, |
uint8_t * | DataOut, | ||
uint16_t | DataLength | ||
) |
Write a byte on the SD.
- Parameters:
-
DataIn byte to send. DataOut read byte. DataLength data length.
- Return values:
-
None
Definition at line 1159 of file stm32091c_eval.c.
References SPIx_WriteReadData().
Referenced by BSP_SD_ReadBlocks(), BSP_SD_WriteBlocks(), and SD_SendCmd().
void TSENSOR_IO_Init | ( | void | ) |
Initializes peripherals used by the I2C Temperature Sensor driver.
- Return values:
-
None
Definition at line 1239 of file stm32091c_eval.c.
References I2C1_Init().
uint16_t TSENSOR_IO_IsDeviceReady | ( | uint16_t | DevAddress, |
uint32_t | Trials | ||
) |
Checks if Temperature Sensor is ready for communication.
- Parameters:
-
DevAddress Target device address Trials Number of trials
- Return values:
-
HAL status
Definition at line 1276 of file stm32091c_eval.c.
References I2C1_IsDeviceReady().
void TSENSOR_IO_Read | ( | uint16_t | DevAddress, |
uint8_t * | pBuffer, | ||
uint8_t | ReadAddr, | ||
uint16_t | Length | ||
) |
Reads one byte from the TSENSOR.
- Parameters:
-
DevAddress Target device address pBuffer pointer to the buffer that receives the data read from the TSENSOR. ReadAddr TSENSOR's internal address to read from. Length Number of data to read
- Return values:
-
None
Definition at line 1265 of file stm32091c_eval.c.
References I2C1_ReadBuffer().
void TSENSOR_IO_Write | ( | uint16_t | DevAddress, |
uint8_t * | pBuffer, | ||
uint8_t | WriteAddr, | ||
uint16_t | Length | ||
) |
Writes one byte to the TSENSOR.
- Parameters:
-
DevAddress Target device address pBuffer Pointer to data buffer WriteAddr TSENSOR's internal address to write to. Length Number of data to write
- Return values:
-
None
Definition at line 1252 of file stm32091c_eval.c.
References I2C1_WriteBuffer().
Generated on Wed Jul 5 2017 09:21:50 for STM32091C_EVAL BSP User Manual by
