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: mbed-os-example-ble-Thermometer DISCO_L475VG_IOT01-Telegram-BOT DISCO_L475VG_IOT01-sche_cheveux DISCO_L475VG_IOT01-QSPI_FLASH_FILE_SYSTEM ... more
LOW LEVEL
[STM32L475E_IOT01]
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:
-
Delay Delay 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:
-
GpoIrqEnable 0x0 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??) Trials Number of trials (currently not present in M24sr)
- Return values:
-
Status Success 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??) pBuffer Pointer on the buffer to retrieve M24SR response Length Length of the data
- Return values:
-
Status Success 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_PinState state 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:
-
PinState put 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??) pBuffer pointer to the buffer to send to the M24SR Length Length of the data
- Return values:
-
Status Success 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:
-
Delay Delay 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:
-
DevAddress Target device address Trials Number of trials
- Return values:
-
HAL status
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:
-
Addr I2C address Reg Reg address
- Return values:
-
Data to 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:
-
Addr I2C address Reg Register address Buffer Pointer to data buffer Length Length of the data
- Return values:
-
HAL status
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:
-
Addr I2C address Reg Reg address Value Data 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:
-
Addr I2C address Reg Register address Buffer Pointer to data buffer Length Length of the data
- Return values:
-
None
Definition at line 603 of file stm32l475e_iot01.c.
Generated on Tue Jul 12 2022 13:55:42 by
1.7.2