test sending sensor results over lora radio. Accelerometer and temp/pressure.
Functions | |
DrvStatusTypeDef | BSP_PRESSURE_Init (PRESSURE_ID_t id, void **handle) |
Initialize a pressure sensor. | |
DrvStatusTypeDef | BSP_PRESSURE_DeInit (void **handle) |
Deinitialize a pressure sensor. | |
DrvStatusTypeDef | BSP_PRESSURE_Sensor_Enable (void *handle) |
Enable pressure sensor. | |
DrvStatusTypeDef | BSP_PRESSURE_Sensor_Disable (void *handle) |
Disable pressure sensor. | |
DrvStatusTypeDef | BSP_PRESSURE_IsInitialized (void *handle, uint8_t *status) |
Check if the pressure sensor is initialized. | |
DrvStatusTypeDef | BSP_PRESSURE_IsEnabled (void *handle, uint8_t *status) |
Check if the pressure sensor is enabled. | |
DrvStatusTypeDef | BSP_PRESSURE_IsCombo (void *handle, uint8_t *status) |
Check if the pressure sensor is combo. | |
DrvStatusTypeDef | BSP_PRESSURE_Get_Instance (void *handle, uint8_t *instance) |
Get the pressure sensor instance. | |
DrvStatusTypeDef | BSP_PRESSURE_Get_WhoAmI (void *handle, uint8_t *who_am_i) |
Get the WHO_AM_I ID of the pressure sensor. | |
DrvStatusTypeDef | BSP_PRESSURE_Check_WhoAmI (void *handle) |
Check the WHO_AM_I ID of the pressure sensor. | |
DrvStatusTypeDef | BSP_PRESSURE_Get_Press (void *handle, float *pressure) |
Get the pressure value. | |
DrvStatusTypeDef | BSP_PRESSURE_Get_ODR (void *handle, float *odr) |
Get the pressure sensor output data rate. | |
DrvStatusTypeDef | BSP_PRESSURE_Set_ODR (void *handle, SensorOdr_t odr) |
Set the pressure sensor output data rate. | |
DrvStatusTypeDef | BSP_PRESSURE_Set_ODR_Value (void *handle, float odr) |
Set the pressure sensor output data rate. | |
DrvStatusTypeDef | BSP_PRESSURE_Read_Reg (void *handle, uint8_t reg, uint8_t *data) |
Read the data from register. | |
DrvStatusTypeDef | BSP_PRESSURE_Write_Reg (void *handle, uint8_t reg, uint8_t data) |
Write the data to register. | |
DrvStatusTypeDef | BSP_PRESSURE_Get_DRDY_Status (void *handle, uint8_t *status) |
Get pressure data ready status. | |
DrvStatusTypeDef | BSP_PRESSURE_FIFO_Get_Fth_Status_Ext (void *handle, uint8_t *status) |
Get FIFO THR status (available only for LPS22HB sensor) | |
DrvStatusTypeDef | BSP_PRESSURE_FIFO_Get_Full_Status_Ext (void *handle, uint8_t *status) |
Get FIFO FULL status (available only for LPS22HB sensor) | |
DrvStatusTypeDef | BSP_PRESSURE_FIFO_Get_Ovr_Status_Ext (void *handle, uint8_t *status) |
Get FIFO OVR status (available only for LPS22HB sensor) | |
DrvStatusTypeDef | BSP_PRESSURE_FIFO_Get_Data_Ext (void *handle, float *pressure, float *temperature) |
Get FIFO data (available only for LPS22HB sensor) | |
DrvStatusTypeDef | BSP_PRESSURE_FIFO_Get_Num_Of_Samples_Ext (void *handle, uint8_t *nSamples) |
Get number of unread FIFO samples (available only for LPS22HB sensor) | |
DrvStatusTypeDef | BSP_PRESSURE_FIFO_Set_Mode_Ext (void *handle, uint8_t mode) |
Set FIFO mode (available only for LPS22HB sensor) | |
DrvStatusTypeDef | BSP_PRESSURE_FIFO_Set_Interrupt_Ext (void *handle, uint8_t interrupt) |
Set FIFO interrupt (available only for LPS22HB sensor) | |
DrvStatusTypeDef | BSP_PRESSURE_FIFO_Reset_Interrupt_Ext (void *handle, uint8_t interrupt) |
Set FIFO interrupt (available only for LPS22HB sensor) | |
DrvStatusTypeDef | BSP_PRESSURE_FIFO_Set_Watermark_Level_Ext (void *handle, uint8_t watermark) |
Set FIFO watermark (available only for LPS22HB sensor) | |
DrvStatusTypeDef | BSP_PRESSURE_FIFO_Stop_On_Fth_Ext (void *handle, uint8_t status) |
Set FIFO to stop on FTH (available only for LPS22HB sensor) | |
DrvStatusTypeDef | BSP_PRESSURE_FIFO_Usage_Ext (void *handle, uint8_t status) |
FIFO usage (available only for LPS22HB sensor) |
Function Documentation
DrvStatusTypeDef BSP_PRESSURE_Check_WhoAmI | ( | void * | handle ) |
Check the WHO_AM_I ID of the pressure sensor.
- Parameters:
-
handle the device handle
- Return values:
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 374 of file x_nucleo_iks01a2_pressure.c.
DrvStatusTypeDef BSP_PRESSURE_DeInit | ( | void ** | handle ) |
Deinitialize a pressure sensor.
- Parameters:
-
handle the device handle
- Return values:
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 127 of file x_nucleo_iks01a2_pressure.c.
DrvStatusTypeDef BSP_PRESSURE_FIFO_Get_Data_Ext | ( | void * | handle, |
float * | pressure, | ||
float * | temperature | ||
) |
Get FIFO data (available only for LPS22HB sensor)
- Parameters:
-
handle the device handle *pressure pointer to FIFO pressure data *temperature pointer to FIFO temperature data
- Return values:
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 807 of file x_nucleo_iks01a2_pressure.c.
DrvStatusTypeDef BSP_PRESSURE_FIFO_Get_Fth_Status_Ext | ( | void * | handle, |
uint8_t * | status | ||
) |
Get FIFO THR status (available only for LPS22HB sensor)
- Parameters:
-
handle the device handle *status FIFO THR status
- Return values:
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 660 of file x_nucleo_iks01a2_pressure.c.
DrvStatusTypeDef BSP_PRESSURE_FIFO_Get_Full_Status_Ext | ( | void * | handle, |
uint8_t * | status | ||
) |
Get FIFO FULL status (available only for LPS22HB sensor)
- Parameters:
-
handle the device handle *status FIFO FULL status
- Return values:
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 708 of file x_nucleo_iks01a2_pressure.c.
DrvStatusTypeDef BSP_PRESSURE_FIFO_Get_Num_Of_Samples_Ext | ( | void * | handle, |
uint8_t * | nSamples | ||
) |
Get number of unread FIFO samples (available only for LPS22HB sensor)
- Parameters:
-
handle the device handle *nSamples Number of unread FIFO samples
- Return values:
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 856 of file x_nucleo_iks01a2_pressure.c.
DrvStatusTypeDef BSP_PRESSURE_FIFO_Get_Ovr_Status_Ext | ( | void * | handle, |
uint8_t * | status | ||
) |
Get FIFO OVR status (available only for LPS22HB sensor)
- Parameters:
-
handle the device handle *status FIFO OVR status
- Return values:
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 757 of file x_nucleo_iks01a2_pressure.c.
DrvStatusTypeDef BSP_PRESSURE_FIFO_Reset_Interrupt_Ext | ( | void * | handle, |
uint8_t | interrupt | ||
) |
Set FIFO interrupt (available only for LPS22HB sensor)
- Parameters:
-
handle the device handle interrupt FIFO interrupt
- Return values:
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 993 of file x_nucleo_iks01a2_pressure.c.
DrvStatusTypeDef BSP_PRESSURE_FIFO_Set_Interrupt_Ext | ( | void * | handle, |
uint8_t | interrupt | ||
) |
Set FIFO interrupt (available only for LPS22HB sensor)
- Parameters:
-
handle the device handle interrupt FIFO interrupt
- Return values:
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 949 of file x_nucleo_iks01a2_pressure.c.
DrvStatusTypeDef BSP_PRESSURE_FIFO_Set_Mode_Ext | ( | void * | handle, |
uint8_t | mode | ||
) |
Set FIFO mode (available only for LPS22HB sensor)
- Parameters:
-
handle the device handle mode FIFO mode
- Return values:
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 905 of file x_nucleo_iks01a2_pressure.c.
DrvStatusTypeDef BSP_PRESSURE_FIFO_Set_Watermark_Level_Ext | ( | void * | handle, |
uint8_t | watermark | ||
) |
Set FIFO watermark (available only for LPS22HB sensor)
- Parameters:
-
handle the device handle watermark FIFO watermark
- Return values:
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 1037 of file x_nucleo_iks01a2_pressure.c.
DrvStatusTypeDef BSP_PRESSURE_FIFO_Stop_On_Fth_Ext | ( | void * | handle, |
uint8_t | status | ||
) |
Set FIFO to stop on FTH (available only for LPS22HB sensor)
- Parameters:
-
handle the device handle status enable or disable stopping on FTH interrupt
- Return values:
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 1081 of file x_nucleo_iks01a2_pressure.c.
DrvStatusTypeDef BSP_PRESSURE_FIFO_Usage_Ext | ( | void * | handle, |
uint8_t | status | ||
) |
FIFO usage (available only for LPS22HB sensor)
- Parameters:
-
handle the device handle status enable or disable FIFO
- Return values:
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 1125 of file x_nucleo_iks01a2_pressure.c.
DrvStatusTypeDef BSP_PRESSURE_Get_DRDY_Status | ( | void * | handle, |
uint8_t * | status | ||
) |
Get pressure data ready status.
- Parameters:
-
handle the device handle status the data ready status
- Return values:
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 626 of file x_nucleo_iks01a2_pressure.c.
DrvStatusTypeDef BSP_PRESSURE_Get_Instance | ( | void * | handle, |
uint8_t * | instance | ||
) |
Get the pressure sensor instance.
- Parameters:
-
handle the device handle instance the pointer to the device instance
- Return values:
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 311 of file x_nucleo_iks01a2_pressure.c.
DrvStatusTypeDef BSP_PRESSURE_Get_ODR | ( | void * | handle, |
float * | odr | ||
) |
Get the pressure sensor output data rate.
- Parameters:
-
handle the device handle odr pointer where the output data rate is written
- Return values:
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 445 of file x_nucleo_iks01a2_pressure.c.
DrvStatusTypeDef BSP_PRESSURE_Get_Press | ( | void * | handle, |
float * | pressure | ||
) |
Get the pressure value.
- Parameters:
-
handle the device handle pressure pointer where the value is written [hPa]
- Return values:
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 407 of file x_nucleo_iks01a2_pressure.c.
DrvStatusTypeDef BSP_PRESSURE_Get_WhoAmI | ( | void * | handle, |
uint8_t * | who_am_i | ||
) |
Get the WHO_AM_I ID of the pressure sensor.
- Parameters:
-
handle the device handle who_am_i pointer to the value of WHO_AM_I register
- Return values:
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 338 of file x_nucleo_iks01a2_pressure.c.
DrvStatusTypeDef BSP_PRESSURE_Init | ( | PRESSURE_ID_t | id, |
void ** | handle | ||
) |
Initialize a pressure sensor.
- Parameters:
-
id the pressure sensor identifier handle the device handle
- Return values:
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 99 of file x_nucleo_iks01a2_pressure.c.
DrvStatusTypeDef BSP_PRESSURE_IsCombo | ( | void * | handle, |
uint8_t * | status | ||
) |
Check if the pressure sensor is combo.
- Parameters:
-
handle the device handle status the pointer to the combo status
- Return values:
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 284 of file x_nucleo_iks01a2_pressure.c.
DrvStatusTypeDef BSP_PRESSURE_IsEnabled | ( | void * | handle, |
uint8_t * | status | ||
) |
Check if the pressure sensor is enabled.
- Parameters:
-
handle the device handle status the pointer to the enable status
- Return values:
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 257 of file x_nucleo_iks01a2_pressure.c.
DrvStatusTypeDef BSP_PRESSURE_IsInitialized | ( | void * | handle, |
uint8_t * | status | ||
) |
Check if the pressure sensor is initialized.
- Parameters:
-
handle the device handle status the pointer to the initialization status
- Return values:
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 230 of file x_nucleo_iks01a2_pressure.c.
DrvStatusTypeDef BSP_PRESSURE_Read_Reg | ( | void * | handle, |
uint8_t | reg, | ||
uint8_t * | data | ||
) |
Read the data from register.
- Parameters:
-
handle the device handle reg register address data register data
- Return values:
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 550 of file x_nucleo_iks01a2_pressure.c.
DrvStatusTypeDef BSP_PRESSURE_Sensor_Disable | ( | void * | handle ) |
Disable pressure sensor.
- Parameters:
-
handle the device handle
- Return values:
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 196 of file x_nucleo_iks01a2_pressure.c.
DrvStatusTypeDef BSP_PRESSURE_Sensor_Enable | ( | void * | handle ) |
Enable pressure sensor.
- Parameters:
-
handle the device handle
- Return values:
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 163 of file x_nucleo_iks01a2_pressure.c.
DrvStatusTypeDef BSP_PRESSURE_Set_ODR | ( | void * | handle, |
SensorOdr_t | odr | ||
) |
Set the pressure sensor output data rate.
- Parameters:
-
handle the device handle odr the functional output data rate to be set
- Return values:
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 482 of file x_nucleo_iks01a2_pressure.c.
DrvStatusTypeDef BSP_PRESSURE_Set_ODR_Value | ( | void * | handle, |
float | odr | ||
) |
Set the pressure sensor output data rate.
- Parameters:
-
handle the device handle odr the output data rate value to be set
- Return values:
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 515 of file x_nucleo_iks01a2_pressure.c.
DrvStatusTypeDef BSP_PRESSURE_Write_Reg | ( | void * | handle, |
uint8_t | reg, | ||
uint8_t | data | ||
) |
Write the data to register.
- Parameters:
-
handle the device handle reg register address data register data
- Return values:
-
COMPONENT_OK in case of success COMPONENT_ERROR in case of failure
Definition at line 591 of file x_nucleo_iks01a2_pressure.c.
Generated on Tue Jul 12 2022 16:29:50 by 1.7.2