STM32769I_EVAL BSP User Manual
|
Functions | |
uint32_t | BSP_GetVersion (void) |
This method returns the STM32F769I EVAL BSP Driver revision. | |
void | BSP_LED_Init (Led_TypeDef Led) |
Configures LED on GPIO and/or on MFX. | |
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. | |
void | BSP_POTENTIOMETER_Init (void) |
Init Potentiometer. | |
uint32_t | BSP_POTENTIOMETER_GetLevel (void) |
Get Potentiometer level in 12 bits. | |
static void | I2Cx_MspInit (void) |
Initializes I2C MSP. | |
static void | I2Cx_Init (void) |
Initializes I2C HAL. | |
static void | I2Cx_Write (uint8_t Addr, uint8_t Reg, uint8_t Value) |
Writes a single data. | |
static uint8_t | I2Cx_Read (uint8_t Addr, uint8_t Reg) |
Reads a single data. | |
static HAL_StatusTypeDef | I2Cx_ReadMultiple (uint8_t Addr, uint16_t Reg, uint16_t MemAddress, uint8_t *Buffer, uint16_t Length) |
Reads multiple data. | |
static HAL_StatusTypeDef | I2Cx_WriteMultiple (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 (uint16_t DevAddress, uint32_t Trials) |
Checks if target device is ready for communication. | |
static void | I2Cx_Error (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, uint16_t Reg, uint16_t Value) |
Camera writes single data. | |
uint16_t | CAMERA_IO_Read (uint8_t Addr, uint16_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_Write (uint8_t Addr, uint8_t Reg, uint8_t Value) |
Writes single data with I2C communication channel from MCU to TouchScreen. | |
uint8_t | TS_IO_Read (uint8_t Addr, uint8_t Reg) |
Reads single data with I2C communication channel from TouchScreen. | |
uint16_t | TS_IO_ReadMultiple (uint8_t Addr, uint8_t Reg, uint8_t *Buffer, uint16_t Length) |
Reads multiple data with I2C communication channel from TouchScreen. | |
void | TS_IO_WriteMultiple (uint8_t Addr, uint8_t Reg, uint8_t *Buffer, uint16_t Length) |
Writes multiple data with I2C communication channel from MCU to TouchScreen. | |
void | TS_IO_Delay (uint32_t Delay) |
Delay function used in TouchScreen low level driver. | |
void | OTM8009A_IO_Delay (uint32_t Delay) |
OTM8009A delay. |
Function Documentation
void AUDIO_IO_DeInit | ( | void | ) |
Deinitializes Audio low level.
- Return values:
-
None
Definition at line 1046 of file stm32f769i_eval.c.
void AUDIO_IO_Delay | ( | uint32_t | Delay | ) |
AUDIO Codec delay.
- Parameters:
-
Delay,: Delay in ms
- Return values:
-
None
Definition at line 1094 of file stm32f769i_eval.c.
void AUDIO_IO_Init | ( | void | ) |
Initializes Audio low level.
- Return values:
-
None
Definition at line 1037 of file stm32f769i_eval.c.
References I2Cx_Init().
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 1074 of file stm32f769i_eval.c.
References I2Cx_ReadMultiple().
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 1057 of file stm32f769i_eval.c.
References I2Cx_WriteMultiple().
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 473 of file stm32f769i_eval.c.
References COM_USART, and EVAL_COMx_CLK_DISABLE.
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 433 of file stm32f769i_eval.c.
References COM_RX_AF, COM_RX_PIN, COM_RX_PORT, COM_TX_AF, COM_TX_PIN, COM_TX_PORT, COM_USART, EVAL_COMx_CLK_ENABLE, EVAL_COMx_RX_GPIO_CLK_ENABLE, and EVAL_COMx_TX_GPIO_CLK_ENABLE.
uint32_t BSP_GetVersion | ( | void | ) |
This method returns the STM32F769I EVAL BSP Driver revision.
- Return values:
-
version,: 0xXYZR (8bits for each decimal, R for RC)
Definition at line 226 of file stm32f769i_eval.c.
References __STM32F769I_EVAL_BSP_VERSION.
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
- LED2
- LED3
- LED4
- Note:
- Led DeInit does not disable the GPIO clock nor disable the Mfx
- Return values:
-
None
Definition at line 272 of file stm32f769i_eval.c.
void BSP_LED_Init | ( | Led_TypeDef | Led | ) |
Configures LED on GPIO and/or on MFX.
- Parameters:
-
Led,: LED to be configured. This parameter can be one of the following values: - LED1
- LED2
- LED3
- LED4
- Return values:
-
None
Definition at line 241 of file stm32f769i_eval.c.
References GPIO_PIN, GPIO_PORT, and LEDx_GPIO_CLK_ENABLE.
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
- LED2
- LED3
- LED4
- Return values:
-
None
Definition at line 305 of file stm32f769i_eval.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
- LED2
- LED3
- LED4
- Return values:
-
None
Definition at line 290 of file stm32f769i_eval.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
- LED2
- LED3
- LED4
- Return values:
-
None
Definition at line 320 of file stm32f769i_eval.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 STM32F769I-EVAL evaluation board, the three buttons (Wakeup, Tamper and key buttons) are mapped on the same push button named "Wakeup/Tamper" on the board serigraphy.
- PB DeInit does not disable the GPIO clock
- Return values:
-
None
Definition at line 396 of file stm32f769i_eval.c.
References BUTTON_IRQn, BUTTON_PIN, and BUTTON_PORT.
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 STM32F769I-EVAL evaluation board, the three buttons (Wakeup, Tamper and key buttons) are mapped on the same push button named "Wakeup/Tamper" on the board serigraphy.
- Return values:
-
The Button GPIO pin value
Definition at line 418 of file stm32f769i_eval.c.
References BUTTON_PIN, and BUTTON_PORT.
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 STM32F769I-EVAL evaluation board, the three buttons (Wakeup, Tamper and key buttons) are mapped on the same push button named "Wakeup/Tamper" on the board serigraphy.
- Return values:
-
None
Definition at line 342 of file stm32f769i_eval.c.
References BUTTON_IRQn, BUTTON_MODE_EXTI, BUTTON_MODE_GPIO, BUTTON_PIN, BUTTON_PORT, BUTTON_WAKEUP, and BUTTONx_GPIO_CLK_ENABLE.
uint32_t BSP_POTENTIOMETER_GetLevel | ( | void | ) |
Get Potentiometer level in 12 bits.
- Return values:
-
Potentiometer level(0..0xFFF) / 0xFFFFFFFF : Error
Definition at line 542 of file stm32f769i_eval.c.
References ADCx_POLL_TIMEOUT, and hEvalADC.
void BSP_POTENTIOMETER_Init | ( | void | ) |
Init Potentiometer.
- Return values:
-
None
Definition at line 493 of file stm32f769i_eval.c.
References ADCx, ADCx_CHANNEL, ADCx_CHANNEL_GPIO_CLK_ENABLE, ADCx_CHANNEL_GPIO_PORT, ADCx_CHANNEL_PIN, ADCx_CLK_ENABLE, and hEvalADC.
void CAMERA_Delay | ( | uint32_t | Delay | ) |
Camera delay.
- Parameters:
-
Delay,: Delay in ms
- Return values:
-
None
Definition at line 1148 of file stm32f769i_eval.c.
void CAMERA_IO_Init | ( | void | ) |
Initializes Camera low level.
- Return values:
-
None
Definition at line 1105 of file stm32f769i_eval.c.
References I2Cx_Init().
uint16_t CAMERA_IO_Read | ( | uint8_t | Addr, |
uint16_t | Reg | ||
) |
Camera reads single data.
- Parameters:
-
Addr,: I2C address Reg,: Register address
- Return values:
-
Read data
Definition at line 1132 of file stm32f769i_eval.c.
References I2Cx_ReadMultiple().
void CAMERA_IO_Write | ( | uint8_t | Addr, |
uint16_t | Reg, | ||
uint16_t | Value | ||
) |
Camera writes single data.
- Parameters:
-
Addr,: I2C address Reg,: Register address Value,: Data to be written
- Return values:
-
None
Definition at line 1117 of file stm32f769i_eval.c.
References I2Cx_WriteMultiple().
void EEPROM_IO_Init | ( | void | ) |
Initializes peripherals used by the I2C EEPROM driver.
- Return values:
-
None
Definition at line 1159 of file stm32f769i_eval.c.
References I2Cx_Init().
Referenced by BSP_EEPROM_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 1197 of file stm32f769i_eval.c.
References I2Cx_IsDeviceReady().
Referenced by BSP_EEPROM_Init(), and BSP_EEPROM_WaitEepromStandbyState().
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 1185 of file stm32f769i_eval.c.
References I2Cx_ReadMultiple().
Referenced by BSP_EEPROM_ReadBuffer().
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 1172 of file stm32f769i_eval.c.
References I2Cx_WriteMultiple().
Referenced by BSP_EEPROM_WritePage().
static void I2Cx_Error | ( | uint8_t | Addr | ) | [static] |
Manages error callback by re-initializing I2C.
- Parameters:
-
Addr,: I2C Address
- Return values:
-
None
Definition at line 826 of file stm32f769i_eval.c.
References hEvalI2c, and I2Cx_Init().
Referenced by I2Cx_Read(), I2Cx_ReadMultiple(), I2Cx_Write(), and I2Cx_WriteMultiple().
static void I2Cx_Init | ( | void | ) | [static] |
Initializes I2C HAL.
- Return values:
-
None
Definition at line 699 of file stm32f769i_eval.c.
References EVAL_I2Cx, hEvalI2c, and I2Cx_MspInit().
Referenced by AUDIO_IO_Init(), CAMERA_IO_Init(), EEPROM_IO_Init(), I2Cx_Error(), and TS_IO_Init().
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 816 of file stm32f769i_eval.c.
References hEvalI2c.
Referenced by EEPROM_IO_IsDeviceReady().
static void I2Cx_MspInit | ( | void | ) | [static] |
Initializes I2C MSP.
- Return values:
-
None
Definition at line 656 of file stm32f769i_eval.c.
References EVAL_I2Cx_CLK_ENABLE, EVAL_I2Cx_ER_IRQn, EVAL_I2Cx_EV_IRQn, EVAL_I2Cx_FORCE_RESET, EVAL_I2Cx_RELEASE_RESET, EVAL_I2Cx_SCL_PIN, EVAL_I2Cx_SCL_SDA_AF, EVAL_I2Cx_SCL_SDA_GPIO_CLK_ENABLE, EVAL_I2Cx_SCL_SDA_GPIO_PORT, and EVAL_I2Cx_SDA_PIN.
Referenced by I2Cx_Init().
static uint8_t I2Cx_Read | ( | uint8_t | Addr, |
uint8_t | Reg | ||
) | [static] |
Reads a single data.
- Parameters:
-
Addr,: I2C address Reg,: Register address
- Return values:
-
Read data
Definition at line 745 of file stm32f769i_eval.c.
References hEvalI2c, and I2Cx_Error().
Referenced by TS_IO_Read().
static HAL_StatusTypeDef I2Cx_ReadMultiple | ( | uint8_t | Addr, |
uint16_t | Reg, | ||
uint16_t | MemAddress, | ||
uint8_t * | Buffer, | ||
uint16_t | Length | ||
) | [static] |
Reads multiple data.
- Parameters:
-
Addr,: I2C address Reg,: Reg address MemAddress,: internal memory address Buffer,: Pointer to data buffer Length,: Length of the data
- Return values:
-
Number of read data
Definition at line 770 of file stm32f769i_eval.c.
References hEvalI2c, and I2Cx_Error().
Referenced by AUDIO_IO_Read(), CAMERA_IO_Read(), EEPROM_IO_ReadData(), and TS_IO_ReadMultiple().
static void I2Cx_Write | ( | uint8_t | Addr, |
uint8_t | Reg, | ||
uint8_t | Value | ||
) | [static] |
Writes a single data.
- Parameters:
-
Addr,: I2C address Reg,: Register address Value,: Data to be written
- Return values:
-
None
Definition at line 725 of file stm32f769i_eval.c.
References hEvalI2c, and I2Cx_Error().
Referenced by TS_IO_Write().
static HAL_StatusTypeDef I2Cx_WriteMultiple | ( | 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:
-
Addr,: Device address on BUS Bus. Reg,: The target register address to write MemAddress,: internal memory address Buffer,: The target register value to be written Length,: buffer size to be written
- Return values:
-
HAL status
Definition at line 794 of file stm32f769i_eval.c.
References hEvalI2c, and I2Cx_Error().
Referenced by AUDIO_IO_Write(), CAMERA_IO_Write(), EEPROM_IO_WriteData(), and TS_IO_WriteMultiple().
void OTM8009A_IO_Delay | ( | uint32_t | Delay | ) |
void TS_IO_Delay | ( | uint32_t | Delay | ) |
Delay function used in TouchScreen low level driver.
- Parameters:
-
Delay,: Delay in ms
- Return values:
-
None
Definition at line 1270 of file stm32f769i_eval.c.
uint8_t TS_IO_Read | ( | uint8_t | Addr, |
uint8_t | Reg | ||
) |
Reads single data with I2C communication channel from TouchScreen.
- Parameters:
-
Addr,: I2C address Reg,: Register address
- Return values:
-
Read data
Definition at line 1232 of file stm32f769i_eval.c.
References I2Cx_Read().
uint16_t TS_IO_ReadMultiple | ( | uint8_t | Addr, |
uint8_t | Reg, | ||
uint8_t * | Buffer, | ||
uint16_t | Length | ||
) |
Reads multiple data with I2C communication channel from TouchScreen.
- Parameters:
-
Addr,: I2C address Reg,: Register address Buffer,: Pointer to data buffer Length,: Length of the data
- Return values:
-
Number of read data
Definition at line 1246 of file stm32f769i_eval.c.
References I2Cx_ReadMultiple().
void TS_IO_Write | ( | uint8_t | Addr, |
uint8_t | Reg, | ||
uint8_t | Value | ||
) |
Writes single data with I2C communication channel from MCU to TouchScreen.
- Parameters:
-
Addr,: I2C address Reg,: Register address Value,: Data to be written
Definition at line 1220 of file stm32f769i_eval.c.
References I2Cx_Write().
void TS_IO_WriteMultiple | ( | uint8_t | Addr, |
uint8_t | Reg, | ||
uint8_t * | Buffer, | ||
uint16_t | Length | ||
) |
Writes multiple data with I2C communication channel from MCU to TouchScreen.
- Parameters:
-
Addr,: I2C address Reg,: Register address Buffer,: Pointer to data buffer Length,: Length of the data
- Return values:
-
None
Definition at line 1260 of file stm32f769i_eval.c.
References I2Cx_WriteMultiple().
Generated on Fri Dec 30 2016 20:55:35 for STM32769I_EVAL BSP User Manual by 1.7.6.1