11#include "fsl_common.h"
35#define FSL_TEMPMON_DRIVER_VERSION (MAKE_VERSION(2, 1, 1))
59#if defined(__cplusplus)
97static inline void TEMPMON_StartMeasure(TEMPMON_Type *base)
99 base->TEMPSENSE0 |= TEMPMON_TEMPSENSE0_MEASURE_TEMP_MASK;
107static inline void TEMPMON_StopMeasure(TEMPMON_Type *base)
109 base->TEMPSENSE0 &= ~TEMPMON_TEMPSENSE0_MEASURE_TEMP_MASK;
129#if defined(__cplusplus)
struct _tempmon_config tempmon_config_t
TEMPMON temperature structure.
void TEMPMON_Deinit(TEMPMON_Type *base)
Deinitializes the TEMPMON module.
enum _tempmon_alarm_mode tempmon_alarm_mode
TEMPMON alarm mode.
_tempmon_alarm_mode
TEMPMON alarm mode.
Definition fsl_tempmon.h:49
void TEMPMON_SetTempAlarm(TEMPMON_Type *base, int8_t tempVal, tempmon_alarm_mode alarmMode)
Set the temperature count (raw sensor output) that will generate an alarm interrupt.
void TEMPMON_GetDefaultConfig(tempmon_config_t *config)
Gets the default configuration structure.
void TEMPMON_Init(TEMPMON_Type *base, const tempmon_config_t *config)
Initializes the TEMPMON module.
float TEMPMON_GetCurrentTemperature(TEMPMON_Type *base)
Get current temperature with the fused temperature calibration data.
@ kTEMPMON_LowAlarmMode
Definition fsl_tempmon.h:52
@ kTEMPMON_PanicAlarmMode
Definition fsl_tempmon.h:51
@ kTEMPMON_HighAlarmMode
Definition fsl_tempmon.h:50
TEMPMON temperature structure.
Definition fsl_tempmon.h:40
int8_t lowAlarmTemp
Definition fsl_tempmon.h:44
int8_t panicAlarmTemp
Definition fsl_tempmon.h:43
uint16_t frequency
Definition fsl_tempmon.h:41
int8_t highAlarmTemp
Definition fsl_tempmon.h:42