NHS31xx SW API

Detailed Description

The Temperature block shields the tmeas: Temperature measurement module module from the rest of the application. it also implements the callback TMEAS_CB as set in app_sel.h

Functions

void Temperature_Reset (void)
 
int Temperature_Measure (TSEN_RESOLUTION_T resolution, bool requestedExternally)
 
int Temperature_Get (void)
 

Function Documentation

◆ Temperature_Reset()

void Temperature_Reset ( void  )

Sets the cached value to APP_MSG_TEMPERATURE_PLACEHOLDER_VALUE.

◆ Temperature_Measure()

int Temperature_Measure ( TSEN_RESOLUTION_T  resolution,
bool  requestedExternally 
)

Wrapper around TMeas_Measure.

Parameters
resolutionSee TMeas_Measure
requestedExternally
Returns
See TMeas_Measure

◆ Temperature_Get()

int Temperature_Get ( void  )
  • If a temperature measurement is ongoing: waits until the conversion is ready, and returns that last measured value.
  • Else: returns the last cached value: either a temperature value, or APP_MSG_TEMPERATURE_PLACEHOLDER_VALUE
Precondition
Temperature_Measure has been called at least once.
Returns
the last measured temperature. Expressed in deci-celsius.