Read sensor's settings.
More...
Read sensor's settings.
- Note
- USE_GETTERS in Library Configuration must be uncommented tu use these functions
◆ BME280_GetHOvs()
int8_t BME280_GetHOvs |
( |
BME280_t * |
Dev, |
|
|
uint8_t * |
HOvs |
|
) |
| |
◆ BME280_GetMode()
int8_t BME280_GetMode |
( |
BME280_t * |
Dev, |
|
|
uint8_t * |
Mode |
|
) |
| |
Function gets current Operating Mode from sensor.
Function updates current operating mode inside *Dev structure as well.
- Parameters
-
[in] | *Dev | pointer to sensor's BME280_t structure |
[out] | *Mode | pointer to vartiable where result will be stored |
- Returns
- BME280_OK success
-
BME280_PARAM_ERR wrong parameter passed
-
BME280_NO_INIT_ERR sensor was not initialized before
-
BME280_INTERFACE_ERR user defined read/write function returned non-zero value
◆ BME280_GetPOvs()
int8_t BME280_GetPOvs |
( |
BME280_t * |
Dev, |
|
|
uint8_t * |
POvs |
|
) |
| |
◆ BME280_GetTFilter()
int8_t BME280_GetTFilter |
( |
BME280_t * |
Dev, |
|
|
uint8_t * |
Filter |
|
) |
| |
◆ BME280_GetTOvs()
int8_t BME280_GetTOvs |
( |
BME280_t * |
Dev, |
|
|
uint8_t * |
TOvs |
|
) |
| |
◆ BME280_GetTStby()
int8_t BME280_GetTStby |
( |
BME280_t * |
Dev, |
|
|
uint8_t * |
TStby |
|
) |
| |
◆ BME280_Is3WireSPIEnabled()
int8_t BME280_Is3WireSPIEnabled |
( |
BME280_t * |
Dev, |
|
|
uint8_t * |
Result |
|
) |
| |
Function checks if 3-wire SPI is enabled.
- Parameters
-
[in] | *Dev | pointer to sensor's BME280_t structure |
[out] | *Result | pointer to vartiable where result will be stored, 0 - disabled, 1 - enabled |
- Returns
- BME280_OK success
-
BME280_PARAM_ERR wrong parameter passed
-
BME280_NO_INIT_ERR sensor was not initialized before
-
BME280_INTERFACE_ERR user defined read/write function returned non-zero value