RTEMS 6.1-rc6
|
Files | |
file | fsl_tempmon.h |
Data Structures | |
struct | _tempmon_config |
TEMPMON temperature structure. More... | |
Variables | |
uint16_t | _tempmon_config::frequency |
int8_t | _tempmon_config::highAlarmTemp |
int8_t | _tempmon_config::panicAlarmTemp |
int8_t | _tempmon_config::lowAlarmTemp |
Driver version | |
enum | _tempmon_alarm_mode { kTEMPMON_HighAlarmMode = 0U , kTEMPMON_PanicAlarmMode = 1U , kTEMPMON_LowAlarmMode = 2U } |
TEMPMON alarm mode. More... | |
typedef struct _tempmon_config | tempmon_config_t |
TEMPMON temperature structure. | |
typedef enum _tempmon_alarm_mode | tempmon_alarm_mode |
TEMPMON alarm mode. | |
void | TEMPMON_Init (TEMPMON_Type *base, const tempmon_config_t *config) |
Initializes the TEMPMON module. | |
void | TEMPMON_Deinit (TEMPMON_Type *base) |
Deinitializes the TEMPMON module. | |
void | TEMPMON_GetDefaultConfig (tempmon_config_t *config) |
Gets the default configuration structure. | |
float | TEMPMON_GetCurrentTemperature (TEMPMON_Type *base) |
Get current temperature with the fused temperature calibration data. | |
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. | |
#define | FSL_TEMPMON_DRIVER_VERSION (MAKE_VERSION(2, 1, 1)) |
TEMPMON driver version. | |
enum _tempmon_alarm_mode |
void TEMPMON_Deinit | ( | TEMPMON_Type * | base | ) |
Deinitializes the TEMPMON module.
base | TEMPMON base pointer |
brief Deinitializes the TEMPMON module.
param base TEMPMON base pointer
float TEMPMON_GetCurrentTemperature | ( | TEMPMON_Type * | base | ) |
Get current temperature with the fused temperature calibration data.
base | TEMPMON base pointer |
brief Get current temperature with the fused temperature calibration data.
param base TEMPMON base pointer return current temperature with degrees Celsius.
void TEMPMON_GetDefaultConfig | ( | tempmon_config_t * | config | ) |
Gets the default configuration structure.
This function initializes the TEMPMON configuration structure to a default value. The default values are: tempmonConfig->frequency = 0x02U; tempmonConfig->highAlarmTemp = 44U; tempmonConfig->panicAlarmTemp = 90U; tempmonConfig->lowAlarmTemp = 39U;
config | Pointer to a configuration structure. |
brief Gets the default configuration structure.
This function initializes the TEMPMON configuration structure to a default value. The default values are: tempmonConfig->frequency = 0x02U; tempmonConfig->highAlarmTemp = 44U; tempmonConfig->panicAlarmTemp = 90U; tempmonConfig->lowAlarmTemp = 39U;
param config Pointer to a configuration structure.
void TEMPMON_Init | ( | TEMPMON_Type * | base, |
const tempmon_config_t * | config | ||
) |
Initializes the TEMPMON module.
base | TEMPMON base pointer |
config | Pointer to configuration structure. |
brief Initializes the TEMPMON module.
param base TEMPMON base pointer param config Pointer to configuration structure.
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.
base | TEMPMON base pointer |
tempVal | The alarm temperature with degrees Celsius |
alarmMode | The alarm mode. |
brief Set the temperature count (raw sensor output) that will generate an alarm interrupt.
param base TEMPMON base pointer param tempVal The alarm temperature with degrees Celsius param alarmMode The alarm mode.
uint16_t _tempmon_config::frequency |
The temperature measure frequency.
int8_t _tempmon_config::highAlarmTemp |
The high alarm temperature.
int8_t _tempmon_config::lowAlarmTemp |
The low alarm temperature.
int8_t _tempmon_config::panicAlarmTemp |
The panic alarm temperature.