Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: DISCO_L496AG-LCD-prova_1 DISCO_L496AG-LCD-prova_2 DISCO_L496AG-LCD-demo DISCO_L496AG-SRAM-demo
This file provides a set of firmware functions to manage Leds, push-button and joystick of STM32L496G-Discovery board (MB1261) More...
Go to the source code of this file.
Functions | |
| static void | I2C2_MspInit (I2C_HandleTypeDef *hi2c) |
| Discovery I2C2 MSP Initialization. | |
| static void | I2C2_MspDeInit (I2C_HandleTypeDef *hi2c) |
| Discovery I2C2 MSP DeInitialization. | |
| static void | I2C2_WriteData (uint16_t Addr, uint16_t Reg, uint16_t RegSize, uint8_t Value) |
| Write a value in a register of the device through BUS. | |
| static HAL_StatusTypeDef | I2C2_WriteBuffer (uint16_t Addr, uint16_t Reg, uint16_t RegSize, uint8_t *pBuffer, uint16_t Length) |
| Write a value in a register of the device through BUS. | |
| static uint8_t | I2C2_ReadData (uint16_t Addr, uint16_t Reg, uint16_t RegSize) |
| Read a register of the device through BUS. | |
| static HAL_StatusTypeDef | I2C2_ReadBuffer (uint16_t Addr, uint16_t Reg, uint16_t RegSize, uint8_t *pBuffer, uint16_t Length) |
| Reads multiple data on the BUS. | |
| static void | I2C2_Error (void) |
| Discovery I2C2 error treatment function. | |
| static void | FMC_BANK1_WriteData (uint16_t Data) |
| Writes register value. | |
| static void | FMC_BANK1_WriteReg (uint8_t Reg) |
| Writes register address. | |
| static uint16_t | FMC_BANK1_ReadData (void) |
| Reads register value. | |
| static void | FMC_BANK1_Init (void) |
| Initializes LCD IO. | |
| void | LCD_IO_Init (void) |
| Initializes LCD low level. | |
| void | LCD_IO_WriteData (uint16_t RegValue) |
| Writes data on LCD data register. | |
| void | LCD_IO_WriteReg (uint8_t Reg) |
| Writes register on LCD register. | |
| void | LCD_IO_WriteMultipleData (uint16_t *pData, uint32_t Size) |
| Writes several data on LCD data register. | |
| uint16_t | LCD_IO_ReadData (void) |
| Reads data from LCD data register. | |
| void | LCD_IO_Delay (uint32_t Delay) |
| LCD delay. | |
| 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, uint8_t Reg, uint8_t Value) |
| Writes a single data. | |
| uint8_t | AUDIO_IO_Read (uint8_t Addr, uint8_t Reg) |
| Reads a single data. | |
| void | AUDIO_IO_Delay (uint32_t Delay) |
| AUDIO Codec delay. | |
| 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. | |
| 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 | CAMERA_IO_Init (void) |
| Initializes Camera low level. | |
| void | CAMERA_Delay (uint32_t Delay) |
| Camera delay. | |
| 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 | MFX_IO_Init (void) |
| Initializes MFX low level. | |
| void | MFX_IO_DeInit (void) |
| Deinitializes MFX low level. | |
| void | MFX_IO_ITConfig (void) |
| Configures MFX low level interrupt. | |
| void | MFX_IO_EnableWakeupPin (void) |
| Configures MFX wke up pin. | |
| void | MFX_IO_Wakeup (void) |
| Wakeup MFX. | |
| void | MFX_IO_Delay (uint32_t Delay) |
| MFX delay. | |
| void | MFX_IO_Write (uint16_t Addr, uint8_t Reg, uint8_t Value) |
| MFX writes single data. | |
| uint8_t | MFX_IO_Read (uint16_t Addr, uint8_t Reg) |
| MFX reads single data. | |
| void | MFX_IO_WriteMultiple (uint16_t Addr, uint8_t Reg, uint8_t *Buffer, uint16_t Length) |
| MFX writes multiple data. | |
| uint16_t | MFX_IO_ReadMultiple (uint16_t Addr, uint8_t Reg, uint8_t *Buffer, uint16_t Length) |
| MFX reads multiple data. | |
| 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 void | I2Cx_Error (I2C_HandleTypeDef *i2c_handler, uint8_t Addr) |
| Manages error callback by re-initializing I2C. | |
| uint32_t | BSP_GetVersion (void) |
| This method returns the STM32L496 DISCOVERY BSP Driver revision. | |
| void | BSP_LED_Init (Led_TypeDef Led) |
| Configures LED GPIOs. | |
| void | BSP_LED_DeInit (Led_TypeDef Led) |
| Unconfigures LED GPIOs. | |
| 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. | |
| uint8_t | BSP_JOY_Init (JOYMode_TypeDef Joy_Mode) |
| Configures all buttons of the joystick in GPIO or EXTI modes. | |
| void | BSP_JOY_DeInit (void) |
| Unconfigures all GPIOs used as buttons of the joystick. | |
| JOYState_TypeDef | BSP_JOY_GetState (void) |
| Returns the current joystick status. | |
| 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 | I2C2_Init (void) |
| Discovery I2C2 Bus initialization. | |
| void | I2C2_DeInit (void) |
| Discovery I2C2 Bus Deinitialization. | |
| void | FMC_BANK1_MspInit (void) |
| Initializes FMC_BANK1_LCD_IO MSP. | |
| void | FMC_BANK1_MspDeInit (void) |
| DeInitializes FMC_BANK1_LCD_IO MSP. | |
Variables | |
| const uint16_t | LED_PIN [LEDn] |
| LED variables. | |
| GPIO_TypeDef * | JOY_PORT [JOYn] |
| JOYSTICK variables. | |
| USART_TypeDef * | COM_USART [COMn] = {DISCOVERY_COM1} |
| COM port variables. | |
| uint32_t | I2c1Timeout = DISCOVERY_I2C2_TIMEOUT_MAX |
| BUS variables. | |
Detailed Description
This file provides a set of firmware functions to manage Leds, push-button and joystick of STM32L496G-Discovery board (MB1261)
- Attention:
© Copyright (c) 2017 STMicroelectronics. All rights reserved.
This software component is licensed by ST under BSD 3-Clause license, the "License"; You may not use this file except in compliance with the License. You may obtain a copy of the License at: opensource.org/licenses/BSD-3-Clause
Definition in file stm32l496g_discovery.c.
Generated on Tue Jul 12 2022 15:07:45 by
1.7.2