ST / BSP_B-L475E-IOT01

Dependents:   mbed-os-example-ble-Thermometer DISCO_L475VG_IOT01-Telegram-BOT DISCO_L475VG_IOT01-sche_cheveux DISCO_L475VG_IOT01-QSPI_FLASH_FILE_SYSTEM ... more

Embed: (wiki syntax)

« Back to documentation index

LOW LEVEL

Modules

 LOW LEVEL Private Def
 LOW LEVEL Variables
 LOW LEVEL Private Function Prototypes
 LOW LEVEL Private 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 Sensor low level driver.
void NFC_IO_Init (uint8_t GpoIrqEnable)
 Initializes Sensors low level.
void NFC_IO_DeInit (void)
 DeInitializes Sensors low level.
uint16_t NFC_IO_ReadMultiple (uint8_t Addr, uint8_t *pBuffer, uint16_t Length)
 This functions reads a response of the M24SR device.
uint16_t NFC_IO_WriteMultiple (uint8_t Addr, uint8_t *pBuffer, uint16_t Length)
 This functions sends the command buffer.
uint16_t NFC_IO_IsDeviceReady (uint8_t Addr, uint32_t Trials)
 Checks if target device is ready for communication.
void NFC_IO_ReadState (uint8_t *pPinState)
 This function read the state of the M24SR GPO.
void NFC_IO_RfDisable (uint8_t PinState)
 This function sets the state of the M24SR RF disable pin.
void NFC_IO_Delay (uint32_t Delay)
 Delay function used in M24SR low level driver.

Function Documentation

void NFC_IO_DeInit ( void   )

DeInitializes Sensors low level.

Return values:
None

Definition at line 679 of file stm32l475e_iot01.c.

void NFC_IO_Delay ( uint32_t  Delay )

Delay function used in M24SR low level driver.

Parameters:
DelayDelay in ms
Return values:
None

Definition at line 789 of file stm32l475e_iot01.c.

void NFC_IO_Init ( uint8_t  GpoIrqEnable )

Initializes Sensors low level.

Parameters:
GpoIrqEnable0x0 is disable, otherwise enabled
Return values:
None

Definition at line 637 of file stm32l475e_iot01.c.

uint16_t NFC_IO_IsDeviceReady ( uint8_t  Addr,
uint32_t  Trials 
)

Checks if target device is ready for communication.

Parameters:
Addr,:M24SR I2C address (do we really need to add??)
TrialsNumber of trials (currently not present in M24sr)
Return values:
StatusSuccess or Timeout

Definition at line 742 of file stm32l475e_iot01.c.

uint16_t NFC_IO_ReadMultiple ( uint8_t  Addr,
uint8_t *  pBuffer,
uint16_t  Length 
)

This functions reads a response of the M24SR device.

Parameters:
Addr,:M24SR I2C address (do we really need to add??)
pBufferPointer on the buffer to retrieve M24SR response
LengthLength of the data
Return values:
StatusSuccess or Timeout

Definition at line 691 of file stm32l475e_iot01.c.

void NFC_IO_ReadState ( uint8_t *  pPinState )

This function read the state of the M24SR GPO.

Return values:
GPIO_PinStatestate of the M24SR GPO

Definition at line 770 of file stm32l475e_iot01.c.

void NFC_IO_RfDisable ( uint8_t  PinState )

This function sets the state of the M24SR RF disable pin.

Parameters:
PinStateput RF disable pin of M24SR in PinState (1 or 0)

Definition at line 779 of file stm32l475e_iot01.c.

uint16_t NFC_IO_WriteMultiple ( uint8_t  Addr,
uint8_t *  pBuffer,
uint16_t  Length 
)

This functions sends the command buffer.

Parameters:
Addr,:M24SR I2C address (do we really need to add??)
pBufferpointer to the buffer to send to the M24SR
LengthLength of the data
Return values:
StatusSuccess or Timeout

Definition at line 717 of file stm32l475e_iot01.c.

void SENSOR_IO_DeInit ( void   )

DeInitializes Sensors low level.

Return values:
None

Definition at line 548 of file stm32l475e_iot01.c.

void SENSOR_IO_Delay ( uint32_t  Delay )

Delay function used in Sensor low level driver.

Parameters:
DelayDelay in ms
Return values:
None

Definition at line 625 of file stm32l475e_iot01.c.

void SENSOR_IO_Init ( void   )

Initializes Sensors low level.

Return values:
None

Definition at line 539 of file stm32l475e_iot01.c.

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:
DevAddressTarget device address
TrialsNumber of trials
Return values:
HALstatus

Definition at line 615 of file stm32l475e_iot01.c.

uint8_t SENSOR_IO_Read ( uint8_t  Addr,
uint8_t  Reg 
)

Reads a single data.

Parameters:
AddrI2C address
RegReg address
Return values:
Datato be read

Definition at line 571 of file stm32l475e_iot01.c.

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:
AddrI2C address
RegRegister address
BufferPointer to data buffer
LengthLength of the data
Return values:
HALstatus

Definition at line 589 of file stm32l475e_iot01.c.

void SENSOR_IO_Write ( uint8_t  Addr,
uint8_t  Reg,
uint8_t  Value 
)

Writes a single data.

Parameters:
AddrI2C address
RegReg address
ValueData to be written
Return values:
None

Definition at line 560 of file stm32l475e_iot01.c.

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:
AddrI2C address
RegRegister address
BufferPointer to data buffer
LengthLength of the data
Return values:
None

Definition at line 603 of file stm32l475e_iot01.c.