B-L475E-IOT01 BSP User Manual: LOW LEVEL

B-L475E-IOT01 BSP Driver

B-L475E-IOT01 BSP User Manual

Modules

 LOW LEVEL Private Def
 LOW LEVEL Variables
 LOW LEVEL Private Function Prototypes
 LOW LEVEL Private Functions
 LOW LEVEL Exported Types
 LOW LEVEL Exported Constants
 LOW LEVEL Exported Functions

Functions

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.

Function Documentation

void SENSOR_IO_DeInit ( void  )

DeInitializes Sensors low level.

Return values:
None

Definition at line 565 of file stm32l475e_iot01.c.

References hI2cHandler, and I2Cx_DeInit().

void SENSOR_IO_Delay ( uint32_t  Delay)

Delay function used in TouchScreen low level driver.

Parameters:
Delay,:Delay in ms
Return values:
None

Definition at line 642 of file stm32l475e_iot01.c.

void SENSOR_IO_Init ( void  )

Initializes Sensors low level.

Return values:
None

Definition at line 556 of file stm32l475e_iot01.c.

References hI2cHandler, and I2Cx_Init().

Referenced by BSP_TSENSOR_Init().

HAL_StatusTypeDef SENSOR_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:
HALstatus

Definition at line 632 of file stm32l475e_iot01.c.

References hI2cHandler, and I2Cx_IsDeviceReady().

uint8_t SENSOR_IO_Read ( uint8_t  Addr,
uint8_t  Reg 
)

Reads a single data.

Parameters:
Addr,:I2C address
Reg,:Reg address
Return values:
Datato be read

Definition at line 588 of file stm32l475e_iot01.c.

References hI2cHandler, and I2Cx_ReadMultiple().

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.

Parameters:
Addr,:I2C address
Reg,:Register address
Buffer,:Pointer to data buffer
Length,:Length of the data
Return values:
HALstatus

Definition at line 606 of file stm32l475e_iot01.c.

References hI2cHandler, and I2Cx_ReadMultiple().

void SENSOR_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 577 of file stm32l475e_iot01.c.

References hI2cHandler, and I2Cx_WriteMultiple().

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.

Parameters:
Addr,:I2C address
Reg,:Register address
Buffer,:Pointer to data buffer
Length,:Length of the data
Return values:
None

Definition at line 620 of file stm32l475e_iot01.c.

References hI2cHandler, and I2Cx_WriteMultiple().

Generated on Thu Mar 16 2017 10:38:33 for B-L475E-IOT01 BSP User Manual by   doxygen 1.7.6.1