STM32F429ZI Discovery board drivers
Dependents: 2a 2b 2c 2d1 ... more
STM32F429I DISCOVERY LOW LEVEL Private Functions
[STM32F429I DISCOVERY LOW LEVEL]
Functions | |
uint32_t | BSP_GetVersion (void) |
This method returns the STM32F429I DISCO BSP Driver revision. | |
void | BSP_LED_Init (Led_TypeDef Led) |
Configures LED GPIO. | |
void | BSP_LED_On (Led_TypeDef Led) |
Turns selected LED On. | |
void | BSP_LED_Off (Led_TypeDef Led) |
Turns selected LED Off. | |
void | BSP_LED_Toggle (Led_TypeDef Led) |
Toggles the selected LED. | |
void | BSP_PB_Init (Button_TypeDef Button, ButtonMode_TypeDef ButtonMode) |
Configures Button GPIO and EXTI Line. | |
uint32_t | BSP_PB_GetState (Button_TypeDef Button) |
Returns the selected Button state. | |
static void | I2Cx_MspInit (I2C_HandleTypeDef *hi2c) |
I2Cx MSP Initialization. | |
static void | I2Cx_WriteData (uint8_t Addr, uint8_t Reg, uint8_t Value) |
Writes a value in a register of the device through BUS. | |
static void | I2Cx_WriteBuffer (uint8_t Addr, uint8_t Reg, uint8_t *pBuffer, uint16_t Length) |
Writes a value in a register of the device through BUS. | |
static uint8_t | I2Cx_ReadData (uint8_t Addr, uint8_t Reg) |
Reads a register of the device through BUS. | |
static uint8_t | I2Cx_ReadBuffer (uint8_t Addr, uint8_t Reg, uint8_t *pBuffer, uint16_t Length) |
Reads multiple data on the BUS. | |
static HAL_StatusTypeDef | I2Cx_WriteBufferDMA (uint8_t Addr, uint16_t Reg, uint8_t *pBuffer, uint16_t Length) |
Writes a value in a register of the device through BUS in using DMA mode. | |
static HAL_StatusTypeDef | I2Cx_ReadBufferDMA (uint8_t Addr, uint16_t Reg, uint8_t *pBuffer, uint16_t Length) |
Reads multiple data on the BUS in using DMA mode. | |
static HAL_StatusTypeDef | I2Cx_IsDeviceReady (uint16_t DevAddress, uint32_t Trials) |
Checks if target device is ready for communication. | |
static uint32_t | SPIx_Read (uint8_t ReadSize) |
Reads 4 bytes from device. | |
static void | SPIx_Write (uint16_t Value) |
Writes a byte to device. | |
static uint8_t | SPIx_WriteRead (uint8_t Byte) |
Sends a Byte through the SPI interface and return the Byte received from the SPI bus. | |
static void | SPIx_MspInit (SPI_HandleTypeDef *hspi) |
SPI MSP Init. | |
uint32_t | LCD_IO_ReadData (uint16_t RegValue, uint8_t ReadSize) |
Reads register value. | |
void | LCD_Delay (uint32_t Delay) |
Wait for loop in ms. | |
void | IOE_Write (uint8_t Addr, uint8_t Reg, uint8_t Value) |
IOE Writes single data operation. | |
uint8_t | IOE_Read (uint8_t Addr, uint8_t Reg) |
IOE Reads single data. | |
void | IOE_WriteMultiple (uint8_t Addr, uint8_t Reg, uint8_t *pBuffer, uint16_t Length) |
IOE Writes multiple data. | |
uint16_t | IOE_ReadMultiple (uint8_t Addr, uint8_t Reg, uint8_t *pBuffer, uint16_t Length) |
IOE Reads multiple data. | |
void | IOE_Delay (uint32_t Delay) |
IOE Delay. | |
void | GYRO_IO_Write (uint8_t *pBuffer, uint8_t WriteAddr, uint16_t NumByteToWrite) |
Writes one byte to the Gyroscope. | |
void | GYRO_IO_Read (uint8_t *pBuffer, uint8_t ReadAddr, uint16_t NumByteToRead) |
Reads a block of data from the Gyroscope. | |
HAL_StatusTypeDef | EEPROM_IO_WriteData (uint16_t DevAddress, uint16_t MemAddress, uint8_t *pBuffer, uint32_t BufferSize) |
Writes data to I2C EEPROM driver in using DMA channel. | |
HAL_StatusTypeDef | EEPROM_IO_ReadData (uint16_t DevAddress, uint16_t MemAddress, uint8_t *pBuffer, uint32_t BufferSize) |
Reads data from I2C EEPROM driver in using DMA channel. | |
HAL_StatusTypeDef | EEPROM_IO_IsDeviceReady (uint16_t DevAddress, uint32_t Trials) |
Checks if target device is ready for communication. | |
static void | EEPROM_I2C_DMA_TX_IRQHandler (void) |
This function handles sEE DMA TX interrupt request. | |
static void | EEPROM_I2C_DMA_RX_IRQHandler (void) |
This function handles sEE DMA RX interrupt request. |
Function Documentation
uint32_t BSP_GetVersion | ( | void | ) |
This method returns the STM32F429I DISCO BSP Driver revision.
- Return values:
-
version,: 0xXYZR (8bits for each decimal, R for RC)
Definition at line 184 of file stm32f429i_discovery.c.
void BSP_LED_Init | ( | Led_TypeDef | Led ) |
Configures LED GPIO.
- Parameters:
-
Led,: Specifies the Led to be configured. This parameter can be one of following parameters: - LED3
- LED4
Definition at line 196 of file stm32f429i_discovery.c.
void BSP_LED_Off | ( | Led_TypeDef | Led ) |
Turns selected LED Off.
- Parameters:
-
Led,: Specifies the Led to be set off. This parameter can be one of following parameters: - LED3
- LED4
Definition at line 233 of file stm32f429i_discovery.c.
void BSP_LED_On | ( | Led_TypeDef | Led ) |
Turns selected LED On.
- Parameters:
-
Led,: Specifies the Led to be set on. This parameter can be one of following parameters: - LED3
- LED4
Definition at line 221 of file stm32f429i_discovery.c.
void BSP_LED_Toggle | ( | Led_TypeDef | Led ) |
Toggles the selected LED.
- Parameters:
-
Led,: Specifies the Led to be toggled. This parameter can be one of following parameters: - LED3
- LED4
Definition at line 245 of file stm32f429i_discovery.c.
uint32_t BSP_PB_GetState | ( | Button_TypeDef | Button ) |
Returns the selected Button state.
- Parameters:
-
Button,: Specifies the Button to be checked. This parameter should be: BUTTON_KEY
- Return values:
-
The Button GPIO pin value.
Definition at line 297 of file stm32f429i_discovery.c.
void BSP_PB_Init | ( | Button_TypeDef | Button, |
ButtonMode_TypeDef | ButtonMode | ||
) |
Configures Button GPIO and EXTI Line.
- Parameters:
-
Button,: Specifies the Button to be configured. This parameter should be: BUTTON_KEY ButtonMode,: Specifies Button mode. This parameter can be one of following parameters: - BUTTON_MODE_GPIO: Button will be used as simple IO
- BUTTON_MODE_EXTI: Button will be connected to EXTI line with interrupt generation capability
Definition at line 260 of file stm32f429i_discovery.c.
static void EEPROM_I2C_DMA_RX_IRQHandler | ( | void | ) | [static] |
This function handles sEE DMA RX interrupt request.
- Parameters:
-
None
- Return values:
-
None
Definition at line 1147 of file stm32f429i_discovery.c.
static void EEPROM_I2C_DMA_TX_IRQHandler | ( | void | ) | [static] |
This function handles sEE DMA TX interrupt request.
- Parameters:
-
None
- Return values:
-
None
Definition at line 1137 of file stm32f429i_discovery.c.
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 1126 of file stm32f429i_discovery.c.
HAL_StatusTypeDef EEPROM_IO_ReadData | ( | uint16_t | DevAddress, |
uint16_t | MemAddress, | ||
uint8_t * | pBuffer, | ||
uint32_t | BufferSize | ||
) |
Reads data from I2C EEPROM driver in using DMA channel.
- 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 1114 of file stm32f429i_discovery.c.
HAL_StatusTypeDef EEPROM_IO_WriteData | ( | uint16_t | DevAddress, |
uint16_t | MemAddress, | ||
uint8_t * | pBuffer, | ||
uint32_t | BufferSize | ||
) |
Writes data to I2C EEPROM driver in using DMA channel.
- 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 1101 of file stm32f429i_discovery.c.
void GYRO_IO_Read | ( | uint8_t * | pBuffer, |
uint8_t | ReadAddr, | ||
uint16_t | NumByteToRead | ||
) |
Reads a block of data from the Gyroscope.
- Parameters:
-
pBuffer,: Pointer to the buffer that receives the data read from the Gyroscope. ReadAddr,: Gyroscope's internal address to read from. NumByteToRead,: Number of bytes to read from the Gyroscope.
Definition at line 1051 of file stm32f429i_discovery.c.
void GYRO_IO_Write | ( | uint8_t * | pBuffer, |
uint8_t | WriteAddr, | ||
uint16_t | NumByteToWrite | ||
) |
Writes one byte to the Gyroscope.
- Parameters:
-
pBuffer,: Pointer to the buffer containing the data to be written to the Gyroscope. WriteAddr,: Gyroscope's internal address to write to. NumByteToWrite,: Number of bytes to write.
Definition at line 1017 of file stm32f429i_discovery.c.
static HAL_StatusTypeDef I2Cx_IsDeviceReady | ( | uint16_t | DevAddress, |
uint32_t | Trials | ||
) | [static] |
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 632 of file stm32f429i_discovery.c.
static void I2Cx_MspInit | ( | I2C_HandleTypeDef * | hi2c ) | [static] |
I2Cx MSP Initialization.
- Parameters:
-
hi2c,: I2C handle
Definition at line 312 of file stm32f429i_discovery.c.
static uint8_t I2Cx_ReadBuffer | ( | uint8_t | Addr, |
uint8_t | Reg, | ||
uint8_t * | pBuffer, | ||
uint16_t | Length | ||
) | [static] |
Reads multiple data on the BUS.
- Parameters:
-
Addr,: I2C Address Reg,: Reg Address pBuffer,: pointer to read data buffer Length,: length of the data
- Return values:
-
0 if no problems to read multiple data
Definition at line 556 of file stm32f429i_discovery.c.
static HAL_StatusTypeDef I2Cx_ReadBufferDMA | ( | uint8_t | Addr, |
uint16_t | Reg, | ||
uint8_t * | pBuffer, | ||
uint16_t | Length | ||
) | [static] |
Reads multiple data on the BUS in using DMA mode.
- Parameters:
-
Addr,: I2C Address Reg,: Reg Address pBuffer,: pointer to read data buffer Length,: length of the data
- Return values:
-
HAL status
Definition at line 609 of file stm32f429i_discovery.c.
static uint8_t I2Cx_ReadData | ( | uint8_t | Addr, |
uint8_t | Reg | ||
) | [static] |
Reads a register of the device through BUS.
- Parameters:
-
Addr,: Device address on BUS Bus. Reg,: The target register address to write
- Return values:
-
Data read at register address
Definition at line 531 of file stm32f429i_discovery.c.
static void I2Cx_WriteBuffer | ( | uint8_t | Addr, |
uint8_t | Reg, | ||
uint8_t * | pBuffer, | ||
uint16_t | Length | ||
) | [static] |
Writes a value in a register of the device through BUS.
- Parameters:
-
Addr,: Device address on BUS Bus. Reg,: The target register address to write pBuffer,: The target register value to be written Length,: buffer size to be written
Definition at line 511 of file stm32f429i_discovery.c.
static HAL_StatusTypeDef I2Cx_WriteBufferDMA | ( | uint8_t | Addr, |
uint16_t | Reg, | ||
uint8_t * | pBuffer, | ||
uint16_t | Length | ||
) | [static] |
Writes a value in a register of the device through BUS in using DMA mode.
- Parameters:
-
Addr,: Device address on BUS Bus. Reg,: The target register address to write pBuffer,: The target register value to be written Length,: buffer size to be written
- Return values:
-
HAL status
Definition at line 585 of file stm32f429i_discovery.c.
static void I2Cx_WriteData | ( | uint8_t | Addr, |
uint8_t | Reg, | ||
uint8_t | Value | ||
) | [static] |
Writes a value in a register of the device through BUS.
- Parameters:
-
Addr,: Device address on BUS Bus. Reg,: The target register address to write Value,: The target register value to be written
Definition at line 490 of file stm32f429i_discovery.c.
void IOE_Delay | ( | uint32_t | Delay ) |
uint8_t IOE_Read | ( | uint8_t | Addr, |
uint8_t | Reg | ||
) |
IOE Reads single data.
- Parameters:
-
Addr,: I2C Address Reg,: Reg Address
- Return values:
-
The read data
Definition at line 939 of file stm32f429i_discovery.c.
uint16_t IOE_ReadMultiple | ( | uint8_t | Addr, |
uint8_t | Reg, | ||
uint8_t * | pBuffer, | ||
uint16_t | Length | ||
) |
IOE Reads multiple data.
- Parameters:
-
Addr,: I2C Address Reg,: Reg Address pBuffer,: pointer to data buffer Length,: length of the data
- Return values:
-
0 if no problems to read multiple data
Definition at line 964 of file stm32f429i_discovery.c.
void IOE_Write | ( | uint8_t | Addr, |
uint8_t | Reg, | ||
uint8_t | Value | ||
) |
IOE Writes single data operation.
- Parameters:
-
Addr,: I2C Address Reg,: Reg Address Value,: Data to be written
Definition at line 928 of file stm32f429i_discovery.c.
void IOE_WriteMultiple | ( | uint8_t | Addr, |
uint8_t | Reg, | ||
uint8_t * | pBuffer, | ||
uint16_t | Length | ||
) |
IOE Writes multiple data.
- Parameters:
-
Addr,: I2C Address Reg,: Reg Address pBuffer,: pointer to data buffer Length,: length of the data
Definition at line 951 of file stm32f429i_discovery.c.
void LCD_Delay | ( | uint32_t | Delay ) |
uint32_t LCD_IO_ReadData | ( | uint16_t | RegValue, |
uint8_t | ReadSize | ||
) |
Reads register value.
- Parameters:
-
RegValue Address of the register to read ReadSize Number of bytes to read
- Return values:
-
Content of the register value
Definition at line 867 of file stm32f429i_discovery.c.
static void SPIx_MspInit | ( | SPI_HandleTypeDef * | hspi ) | [static] |
static uint32_t SPIx_Read | ( | uint8_t | ReadSize ) | [static] |
Reads 4 bytes from device.
- Parameters:
-
ReadSize,: Number of bytes to read (max 4 bytes)
- Return values:
-
Value read on the SPI
Definition at line 693 of file stm32f429i_discovery.c.
static void SPIx_Write | ( | uint16_t | Value ) | [static] |
Writes a byte to device.
- Parameters:
-
Value,: value to be written
Definition at line 714 of file stm32f429i_discovery.c.
static uint8_t SPIx_WriteRead | ( | uint8_t | Byte ) | [static] |
Sends a Byte through the SPI interface and return the Byte received from the SPI bus.
- Parameters:
-
Byte,: Byte send.
- Return values:
-
The received byte value
Definition at line 734 of file stm32f429i_discovery.c.
Generated on Tue Jul 12 2022 16:29:24 by 1.7.2