aggiuna la lettura laser
Dependencies: VL53L0X
Fork of BSP_B-L475E-IOT01 by
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 TouchScreen 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 set the state of the M24SR RF disable pin. | |
| void | NFC_IO_Delay (uint32_t Delay) |
| This function wait the time given in param (in milisecond) | |
Function Documentation
| void NFC_IO_DeInit | ( | void | ) |
DeInitializes Sensors low level.
- Return values:
-
None
Definition at line 705 of file stm32l475e_iot01.c.
| void NFC_IO_Delay | ( | uint32_t | Delay ) |
This function wait the time given in param (in milisecond)
- Parameters:
-
Delay,: Delay in ms
- Return values:
-
None
Definition at line 816 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 663 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 768 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 717 of file stm32l475e_iot01.c.
| void NFC_IO_ReadState | ( | uint8_t * | pPinState ) |
This function read the state of the M24SR GPO.
- Parameters:
-
none
- Return values:
-
GPIO_PinState : state of the M24SR GPO
Definition at line 797 of file stm32l475e_iot01.c.
| void NFC_IO_RfDisable | ( | uint8_t | PinState ) |
This function set the state of the M24SR RF disable pin.
- Parameters:
-
PinState,: put RF disable pin of M24SR in PinState (1 or 0)
Definition at line 806 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 743 of file stm32l475e_iot01.c.
| void SENSOR_IO_DeInit | ( | void | ) |
DeInitializes Sensors low level.
- Return values:
-
None
Definition at line 574 of file stm32l475e_iot01.c.
| 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 651 of file stm32l475e_iot01.c.
| void SENSOR_IO_Init | ( | void | ) |
Initializes Sensors low level.
- Return values:
-
None
Definition at line 565 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 641 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 597 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 615 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 586 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 629 of file stm32l475e_iot01.c.
Generated on Tue Jul 12 2022 15:06:32 by
1.7.2
