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] railHandle
A RAIL instance handle. [out] thermistorImpedance
Current 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 datasheet 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] railHandle
A RAIL instance handle.
- Returns
- Status code indicating success of the function call.