B-L475E-IOT01 BSP User Manual
|
STM32L475E-IOT01 board support package. More...
#include "stm32l475e_iot01.h"
Go to the source code of this file.
Defines | |
#define | __STM32L475E_IOT01_BSP_VERSION_MAIN (0x01) |
STM32L475E IOT01 BSP Driver version number V1.0.0. | |
#define | __STM32L475E_IOT01_BSP_VERSION_SUB1 (0x00) |
#define | __STM32L475E_IOT01_BSP_VERSION_SUB2 (0x00) |
#define | __STM32L475E_IOT01_BSP_VERSION_RC (0x00) |
#define | __STM32L475E_IOT01_BSP_VERSION |
Functions | |
static void | I2Cx_MspInit (I2C_HandleTypeDef *i2c_handler) |
Initializes I2C MSP. | |
static void | I2Cx_MspDeInit (I2C_HandleTypeDef *i2c_handler) |
DeInitializes I2C MSP. | |
static void | I2Cx_Init (I2C_HandleTypeDef *i2c_handler) |
Initializes I2C HAL. | |
static void | I2Cx_DeInit (I2C_HandleTypeDef *i2c_handler) |
DeInitializes 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 | SENSOR_IO_Init (void) |
Initializes Sensors low level. | |
void | SENSOR_IO_DeInit (void) |
DeInitializes Sensors low level. | |
void | SENSOR_IO_Write (uint8_t Addr, uint8_t Reg, uint8_t Value) |
Writes a single data. | |
uint8_t | SENSOR_IO_Read (uint8_t Addr, uint8_t Reg) |
Reads a single data. | |
uint16_t | SENSOR_IO_ReadMultiple (uint8_t Addr, uint8_t Reg, uint8_t *Buffer, uint16_t Length) |
Reads multiple data with I2C communication channel from TouchScreen. | |
void | SENSOR_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. | |
HAL_StatusTypeDef | SENSOR_IO_IsDeviceReady (uint16_t DevAddress, uint32_t Trials) |
Checks if target device is ready for communication. | |
void | SENSOR_IO_Delay (uint32_t Delay) |
Delay function used in TouchScreen low level driver. | |
uint32_t | BSP_GetVersion (void) |
This method returns the STM32L475E IOT01 BSP Driver revision. | |
void | BSP_LED_Init (Led_TypeDef Led) |
Configures LEDs. | |
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. | |
Variables | |
const uint32_t | GPIO_PIN [LEDn] = {LED2_PIN} |
GPIO_TypeDef * | GPIO_PORT [LEDn] = {LED2_GPIO_PORT} |
GPIO_TypeDef * | BUTTON_PORT [BUTTONn] = {USER_BUTTON_GPIO_PORT} |
const uint16_t | BUTTON_PIN [BUTTONn] = {USER_BUTTON_PIN} |
const uint16_t | BUTTON_IRQn [BUTTONn] = {USER_BUTTON_EXTI_IRQn} |
USART_TypeDef * | COM_USART [COMn] = {DISCOVERY_COM1} |
GPIO_TypeDef * | COM_TX_PORT [COMn] = {DISCOVERY_COM1_TX_GPIO_PORT} |
GPIO_TypeDef * | COM_RX_PORT [COMn] = {DISCOVERY_COM1_RX_GPIO_PORT} |
const uint16_t | COM_TX_PIN [COMn] = {DISCOVERY_COM1_TX_PIN} |
const uint16_t | COM_RX_PIN [COMn] = {DISCOVERY_COM1_RX_PIN} |
const uint16_t | COM_TX_AF [COMn] = {DISCOVERY_COM1_TX_AF} |
const uint16_t | COM_RX_AF [COMn] = {DISCOVERY_COM1_RX_AF} |
I2C_HandleTypeDef | hI2cHandler |
UART_HandleTypeDef | hDiscoUart |
Detailed Description
STM32L475E-IOT01 board support package.
- Attention:
© Copyright (c) 2017 STMicroelectronics International N.V. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted, provided that the following conditions are met:
1. Redistribution of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of STMicroelectronics nor the names of other contributors to this software may be used to endorse or promote products derived from this software without specific written permission. 4. This software, including modifications and/or derivative works of this software, must execute solely and exclusively on microcontroller or microprocessor devices manufactured by or for STMicroelectronics. 5. Redistribution and use of this software other than as permitted under this license is void and will automatically terminate your rights under this license.
THIS SOFTWARE IS PROVIDED BY STMICROELECTRONICS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS, IMPLIED OR STATUTORY WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT OF THIRD PARTY INTELLECTUAL PROPERTY RIGHTS ARE DISCLAIMED TO THE FULLEST EXTENT PERMITTED BY LAW. IN NO EVENT SHALL STMICROELECTRONICS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Definition in file stm32l475e_iot01.c.
Generated on Thu Mar 16 2017 10:38:32 for B-L475E-IOT01 BSP User Manual by
