|
#define | FSL_TMPSNS_DRIVER_VERSION (MAKE_VERSION(2, 1, 0)) |
|
enum | { kTEMPSENSOR_HighTempInterruptStatusEnable
, kTEMPSENSOR_LowTempInterruptStatusEnable
, kTEMPSENSOR_PanicTempInterruptStatusEnable
, kTEMPSENSOR_FinishInterruptStatusEnable = TMPSNS_CTRL1_FINISH_IE_MASK
} |
| TMPSNS interrupt status enable type, tmpsns_interrupt_status_enable_t. More...
|
|
enum | { kTEMPSENSOR_HighTempInterruptStatus = TMPSNS_STATUS0_HIGH_TEMP_MASK
, kTEMPSENSOR_LowTempInterruptStatus = TMPSNS_STATUS0_LOW_TEMP_MASK
, kTEMPSENSOR_PanicTempInterruptStatus = TMPSNS_STATUS0_PANIC_TEMP_MASK
} |
| TMPSNS interrupt status type, tmpsns_interrupt_status_t. More...
|
|
enum | tmpsns_measure_mode_t { kTEMPSENSOR_SingleMode = 0U
, kTEMPSENSOR_ContinuousMode = 1U
} |
| TMPSNS measure mode, tempsensor_measure_mode. More...
|
|
enum | _tmpsns_alarm_mode { kTEMPMON_HighAlarmMode = 0U
, kTEMPMON_PanicAlarmMode = 1U
, kTEMPMON_LowAlarmMode = 2U
} |
| TMPSNS alarm mode. More...
|
|
typedef struct _tmpsns_config | tmpsns_config_t |
| TMPSNS temperature structure.
|
|
typedef enum _tmpsns_alarm_mode | tmpsns_alarm_mode_t |
| TMPSNS alarm mode.
|
|
void | TMPSNS_Init (TMPSNS_Type *base, const tmpsns_config_t *config) |
| Initializes the TMPSNS module.
|
|
void | TMPSNS_Deinit (TMPSNS_Type *base) |
| Deinitializes the TMPSNS module.
|
|
void | TMPSNS_GetDefaultConfig (tmpsns_config_t *config) |
| Gets the default configuration structure.
|
|
void | TMPSNS_StartMeasure (TMPSNS_Type *base) |
| start the temperature measurement process.
|
|
void | TMPSNS_StopMeasure (TMPSNS_Type *base) |
| stop the measurement process.
|
|
float | TMPSNS_GetCurrentTemperature (TMPSNS_Type *base) |
| Get current temperature with the fused temperature calibration data.
|
|
void | TMPSNS_SetTempAlarm (TMPSNS_Type *base, int32_t tempVal, tmpsns_alarm_mode_t alarmMode) |
| Set the temperature count (raw sensor output) that will generate an alarm interrupt.
|
|
void | TMPSNS_EnableInterrupt (TMPSNS_Type *base, uint32_t mask) |
| Enable interrupt status.
|
|
void | TMPSNS_DisableInterrupt (TMPSNS_Type *base, uint32_t mask) |
| Disable interrupt status.
|
|