External Thermistor

APIs to measure temperature using an external thermistor.

Macros

#define RAIL_INVALID_THERMISTOR_VALUE   (0xFFFFFFFF)
 A sentinel value to indicate an invalid thermistor measurement value.

Functions

RAIL_Status_t RAIL_StartThermistorMeasurement (RAIL_Handle_t railHandle)
 Start a Thermistor measurement.
 
RAIL_Status_t RAIL_GetThermistorImpedance (RAIL_Handle_t railHandle, uint32_t *thermistorImpedance)
 Get the thermistor impedance measurement and returns RAIL_INVALID_THERMISTOR_VALUE if the thermistor is not properly configured or the thermistor measurement is not ready.

Detailed Description

APIs to measure temperature using an external thermistor.

This feature allows reading the temperature via an external thermistor on chips that support it. This will require connecting the necessary components and configuring the pins as required.

Function Documentation

◆ RAIL_GetThermistorImpedance()

RAIL_Status_t RAIL_GetThermistorImpedance ( RAIL_Handle_t  railHandle,
uint32_t *  thermistorImpedance 
)

Get the thermistor impedance measurement and returns RAIL_INVALID_THERMISTOR_VALUE if the thermistor is not properly configured or the thermistor measurement is not ready.

Parameters
[in]railHandleA RAIL instance handle.
[out]thermistorImpedanceCurrent thermistor impedance measurement in Ohms.
Returns
Status code indicating success of the function call.

◆ RAIL_StartThermistorMeasurement()

RAIL_Status_t RAIL_StartThermistorMeasurement ( RAIL_Handle_t  railHandle)

Start a Thermistor measurement.

To get the Thermistor impedance, call the function RAIL_GetThermistorImpedance. On the EFR32xG22, this function reconfigures GPIO_THMSW_EN_PIN located in GPIO_THMSW_EN_PORT. To locate this pin, refer to the data sheet or appropriate header files of the device. For proper operation, RAIL_Init must be called before using this function.

Note
This function is not designed for safe usage in multiprotocol applications.
Parameters
[in]railHandleA RAIL instance handle.
Returns
Status code indicating success of the function call.