STM32746G-Discovery board drivers V1.0.0
Dependents: F746_SD_GraphicEqualizer_ren0620
Fork of BSP_DISCO_F746NG by
STM32746G_DISCOVERY_LOW_LEVELSTM32746G_DISCOVERY_LOW_LEVEL Exported Functions
[STM32746G_DISCOVERY_LOW_LEVEL]
Functions | |
uint32_t | BSP_GetVersion (void) |
This method returns the STM32746G DISCOVERY BSP Driver revision. | |
void | BSP_LED_Init (Led_TypeDef Led) |
Configures LED on GPIO. | |
void | BSP_LED_DeInit (Led_TypeDef Led) |
DeInit LEDs. | |
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. | |
void | BSP_PB_DeInit (Button_TypeDef Button) |
Push Button DeInit. | |
uint32_t | BSP_PB_GetState (Button_TypeDef Button) |
Returns the selected button state. | |
void | BSP_COM_Init (COM_TypeDef COM, UART_HandleTypeDef *huart) |
Configures COM port. | |
void | BSP_COM_DeInit (COM_TypeDef COM, UART_HandleTypeDef *huart) |
DeInit COM port. | |
static void | I2Cx_MspInit (I2C_HandleTypeDef *i2c_handler) |
Initializes I2C MSP. | |
static void | I2Cx_Init (I2C_HandleTypeDef *i2c_handler) |
Initializes I2C HAL. | |
static HAL_StatusTypeDef | I2Cx_ReadMultiple (I2C_HandleTypeDef *i2c_handler, uint8_t Addr, uint16_t Reg, uint16_t MemAddress, uint8_t *Buffer, uint16_t Length) |
Reads multiple data. | |
static HAL_StatusTypeDef | I2Cx_WriteMultiple (I2C_HandleTypeDef *i2c_handler, uint8_t Addr, uint16_t Reg, uint16_t MemAddress, uint8_t *Buffer, uint16_t Length) |
Writes a value in a register of the device through BUS in using DMA mode. | |
static HAL_StatusTypeDef | I2Cx_IsDeviceReady (I2C_HandleTypeDef *i2c_handler, uint16_t DevAddress, uint32_t Trials) |
Checks if target device is ready for communication. | |
static void | I2Cx_Error (I2C_HandleTypeDef *i2c_handler, uint8_t Addr) |
Manages error callback by re-initializing I2C. | |
void | AUDIO_IO_Init (void) |
Initializes Audio low level. | |
void | AUDIO_IO_DeInit (void) |
Deinitializes Audio low level. | |
void | AUDIO_IO_Write (uint8_t Addr, uint16_t Reg, uint16_t Value) |
Writes a single data. | |
uint16_t | AUDIO_IO_Read (uint8_t Addr, uint16_t Reg) |
Reads a single data. | |
void | AUDIO_IO_Delay (uint32_t Delay) |
AUDIO Codec delay. | |
void | CAMERA_IO_Init (void) |
Initializes Camera low level. | |
void | CAMERA_IO_Write (uint8_t Addr, uint8_t Reg, uint8_t Value) |
Camera writes single data. | |
uint8_t | CAMERA_IO_Read (uint8_t Addr, uint8_t Reg) |
Camera reads single data. | |
void | CAMERA_Delay (uint32_t Delay) |
Camera delay. | |
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 in using DMA channel. | |
HAL_StatusTypeDef | EEPROM_IO_ReadData (uint16_t DevAddress, uint16_t MemAddress, uint8_t *pBuffer, uint32_t BufferSize) |
Read 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. | |
void | TS_IO_Init (void) |
Initializes Touchscreen low level. | |
void | TS_IO_Write (uint8_t Addr, uint8_t Reg, uint8_t Value) |
Writes a single data. | |
uint8_t | TS_IO_Read (uint8_t Addr, uint8_t Reg) |
Reads a single data. | |
void | TS_IO_Delay (uint32_t Delay) |
TS delay. |
Function Documentation
void AUDIO_IO_DeInit | ( | void | ) |
Deinitializes Audio low level.
- Return values:
-
None
Definition at line 686 of file stm32746g_discovery.c.
void AUDIO_IO_Delay | ( | uint32_t | Delay ) |
AUDIO Codec delay.
- Parameters:
-
Delay,: Delay in ms
- Return values:
-
None
Definition at line 734 of file stm32746g_discovery.c.
void AUDIO_IO_Init | ( | void | ) |
Initializes Audio low level.
- Return values:
-
None
Definition at line 677 of file stm32746g_discovery.c.
uint16_t AUDIO_IO_Read | ( | uint8_t | Addr, |
uint16_t | Reg | ||
) |
Reads a single data.
- Parameters:
-
Addr,: I2C address Reg,: Reg address
- Return values:
-
Data to be read
Definition at line 714 of file stm32746g_discovery.c.
void AUDIO_IO_Write | ( | uint8_t | Addr, |
uint16_t | Reg, | ||
uint16_t | Value | ||
) |
Writes a single data.
- Parameters:
-
Addr,: I2C address Reg,: Reg address Value,: Data to be written
- Return values:
-
None
Definition at line 697 of file stm32746g_discovery.c.
void BSP_COM_DeInit | ( | COM_TypeDef | COM, |
UART_HandleTypeDef * | huart | ||
) |
DeInit COM port.
- Parameters:
-
COM,: COM port to be configured. This parameter can be one of the following values: - COM1
- COM2
huart,: Pointer to a UART_HandleTypeDef structure that contains the configuration information for the specified USART peripheral.
- Return values:
-
None
Definition at line 438 of file stm32746g_discovery.c.
void BSP_COM_Init | ( | COM_TypeDef | COM, |
UART_HandleTypeDef * | huart | ||
) |
Configures COM port.
- Parameters:
-
COM,: COM port to be configured. This parameter can be one of the following values: - COM1
- COM2
huart,: Pointer to a UART_HandleTypeDef structure that contains the configuration information for the specified USART peripheral.
- Return values:
-
None
Definition at line 398 of file stm32746g_discovery.c.
uint32_t BSP_GetVersion | ( | void | ) |
This method returns the STM32746G DISCOVERY BSP Driver revision.
- Return values:
-
version,: 0xXYZR (8bits for each decimal, R for RC)
Definition at line 176 of file stm32746g_discovery.c.
void BSP_LED_DeInit | ( | Led_TypeDef | Led ) |
DeInit LEDs.
- Parameters:
-
Led,: LED to be configured. This parameter can be one of the following values: - LED1
- Note:
- Led DeInit does not disable the GPIO clock
- Return values:
-
None
Definition at line 220 of file stm32746g_discovery.c.
void BSP_LED_Init | ( | Led_TypeDef | Led ) |
Configures LED on GPIO.
- Parameters:
-
Led,: LED to be configured. This parameter can be one of the following values: - LED1
- Return values:
-
None
Definition at line 188 of file stm32746g_discovery.c.
void BSP_LED_Off | ( | Led_TypeDef | Led ) |
Turns selected LED Off.
- Parameters:
-
Led,: LED to be set off This parameter can be one of the following values: - LED1
- Return values:
-
None
Definition at line 261 of file stm32746g_discovery.c.
void BSP_LED_On | ( | Led_TypeDef | Led ) |
Turns selected LED On.
- Parameters:
-
Led,: LED to be set on This parameter can be one of the following values: - LED1
- Return values:
-
None
Definition at line 243 of file stm32746g_discovery.c.
void BSP_LED_Toggle | ( | Led_TypeDef | Led ) |
Toggles the selected LED.
- Parameters:
-
Led,: LED to be toggled This parameter can be one of the following values: - LED1
- Return values:
-
None
Definition at line 279 of file stm32746g_discovery.c.
void BSP_PB_DeInit | ( | Button_TypeDef | Button ) |
Push Button DeInit.
- Parameters:
-
Button,: Button to be configured This parameter can be one of the following values: - BUTTON_WAKEUP: Wakeup Push Button
- BUTTON_TAMPER: Tamper Push Button
- BUTTON_KEY: Key Push Button
- Note:
- On STM32746G-Discovery board, the three buttons (Wakeup, Tamper and key buttons) are mapped on the same push button named "User" on the board serigraphy.
- PB DeInit does not disable the GPIO clock
- Return values:
-
None
Definition at line 361 of file stm32746g_discovery.c.
uint32_t BSP_PB_GetState | ( | Button_TypeDef | Button ) |
Returns the selected button state.
- Parameters:
-
Button,: Button to be checked This parameter can be one of the following values: - BUTTON_WAKEUP: Wakeup Push Button
- BUTTON_TAMPER: Tamper Push Button
- BUTTON_KEY: Key Push Button
- Note:
- On STM32746G-Discovery board, the three buttons (Wakeup, Tamper and key buttons) are mapped on the same push button named "User" on the board serigraphy.
- Return values:
-
The Button GPIO pin value
Definition at line 383 of file stm32746g_discovery.c.
void BSP_PB_Init | ( | Button_TypeDef | Button, |
ButtonMode_TypeDef | ButtonMode | ||
) |
Configures button GPIO and EXTI Line.
- Parameters:
-
Button,: Button to be configured This parameter can be one of the following values: - BUTTON_WAKEUP: Wakeup Push Button
- BUTTON_TAMPER: Tamper Push Button
- BUTTON_KEY: Key Push Button
ButtonMode,: Button mode This parameter can be one of the following values: - BUTTON_MODE_GPIO: Button will be used as simple IO
- BUTTON_MODE_EXTI: Button will be connected to EXTI line with interrupt generation capability
- Note:
- On STM32746G-Discovery board, the three buttons (Wakeup, Tamper and key buttons) are mapped on the same push button named "User" on the board serigraphy.
- Return values:
-
None
Definition at line 307 of file stm32746g_discovery.c.
void CAMERA_Delay | ( | uint32_t | Delay ) |
Camera delay.
- Parameters:
-
Delay,: Delay in ms
- Return values:
-
None
Definition at line 783 of file stm32746g_discovery.c.
void CAMERA_IO_Init | ( | void | ) |
Initializes Camera low level.
- Return values:
-
None
Definition at line 746 of file stm32746g_discovery.c.
uint8_t CAMERA_IO_Read | ( | uint8_t | Addr, |
uint8_t | Reg | ||
) |
Camera reads single data.
- Parameters:
-
Addr,: I2C address Reg,: Register address
- Return values:
-
Read data
Definition at line 769 of file stm32746g_discovery.c.
void CAMERA_IO_Write | ( | uint8_t | Addr, |
uint8_t | Reg, | ||
uint8_t | Value | ||
) |
Camera writes single data.
- Parameters:
-
Addr,: I2C address Reg,: Register address Value,: Data to be written
- Return values:
-
None
Definition at line 758 of file stm32746g_discovery.c.
void EEPROM_IO_Init | ( | void | ) |
Initializes peripherals used by the I2C EEPROM driver.
- Return values:
-
None
Definition at line 795 of file stm32746g_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 833 of file stm32746g_discovery.c.
HAL_StatusTypeDef EEPROM_IO_ReadData | ( | uint16_t | DevAddress, |
uint16_t | MemAddress, | ||
uint8_t * | pBuffer, | ||
uint32_t | BufferSize | ||
) |
Read 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 821 of file stm32746g_discovery.c.
HAL_StatusTypeDef EEPROM_IO_WriteData | ( | uint16_t | DevAddress, |
uint16_t | MemAddress, | ||
uint8_t * | pBuffer, | ||
uint32_t | BufferSize | ||
) |
Write 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 808 of file stm32746g_discovery.c.
static void I2Cx_Error | ( | I2C_HandleTypeDef * | i2c_handler, |
uint8_t | Addr | ||
) | [static] |
Manages error callback by re-initializing I2C.
- Parameters:
-
i2c_handler : I2C handler Addr,: I2C Address
- Return values:
-
None
Definition at line 658 of file stm32746g_discovery.c.
static void I2Cx_Init | ( | I2C_HandleTypeDef * | i2c_handler ) | [static] |
Initializes I2C HAL.
- Parameters:
-
i2c_handler : I2C handler
- Return values:
-
None
Definition at line 551 of file stm32746g_discovery.c.
static HAL_StatusTypeDef I2Cx_IsDeviceReady | ( | I2C_HandleTypeDef * | i2c_handler, |
uint16_t | DevAddress, | ||
uint32_t | Trials | ||
) | [static] |
Checks if target device is ready for communication.
- Note:
- This function is used with Memory devices
- Parameters:
-
i2c_handler : I2C handler DevAddress,: Target device address Trials,: Number of trials
- Return values:
-
HAL status
Definition at line 647 of file stm32746g_discovery.c.
static void I2Cx_MspInit | ( | I2C_HandleTypeDef * | i2c_handler ) | [static] |
Initializes I2C MSP.
- Parameters:
-
i2c_handler : I2C handler
- Return values:
-
None
Definition at line 464 of file stm32746g_discovery.c.
static HAL_StatusTypeDef I2Cx_ReadMultiple | ( | I2C_HandleTypeDef * | i2c_handler, |
uint8_t | Addr, | ||
uint16_t | Reg, | ||
uint16_t | MemAddress, | ||
uint8_t * | Buffer, | ||
uint16_t | Length | ||
) | [static] |
Reads multiple data.
- Parameters:
-
i2c_handler : I2C handler Addr,: I2C address Reg,: Reg address MemAddress,: Memory address Buffer,: Pointer to data buffer Length,: Length of the data
- Return values:
-
Number of read data
Definition at line 589 of file stm32746g_discovery.c.
static HAL_StatusTypeDef I2Cx_WriteMultiple | ( | I2C_HandleTypeDef * | i2c_handler, |
uint8_t | Addr, | ||
uint16_t | Reg, | ||
uint16_t | MemAddress, | ||
uint8_t * | Buffer, | ||
uint16_t | Length | ||
) | [static] |
Writes a value in a register of the device through BUS in using DMA mode.
- Parameters:
-
i2c_handler : I2C handler Addr,: Device address on BUS Bus. Reg,: The target register address to write MemAddress,: Memory address Buffer,: The target register value to be written Length,: buffer size to be written
- Return values:
-
HAL status
Definition at line 619 of file stm32746g_discovery.c.
void TS_IO_Delay | ( | uint32_t | Delay ) |
TS delay.
- Parameters:
-
Delay,: Delay in ms
- Return values:
-
None
Definition at line 881 of file stm32746g_discovery.c.
void TS_IO_Init | ( | void | ) |
Initializes Touchscreen low level.
- Return values:
-
None
Definition at line 844 of file stm32746g_discovery.c.
uint8_t TS_IO_Read | ( | uint8_t | Addr, |
uint8_t | Reg | ||
) |
Reads a single data.
- Parameters:
-
Addr,: I2C address Reg,: Reg address
- Return values:
-
Data to be read
Definition at line 867 of file stm32746g_discovery.c.
void TS_IO_Write | ( | uint8_t | Addr, |
uint8_t | Reg, | ||
uint8_t | Value | ||
) |
Writes a single data.
- Parameters:
-
Addr,: I2C address Reg,: Reg address Value,: Data to be written
- Return values:
-
None
Definition at line 856 of file stm32746g_discovery.c.
Generated on Tue Jul 12 2022 18:43:05 by 1.7.2