RTEMS 6.1-rc1
|
Files | |
file | fsl_tempsensor.h |
Data Structures | |
struct | _tmpsns_config |
TMPSNS temperature structure. More... | |
Variables | |
tmpsns_measure_mode_t | _tmpsns_config::measureMode |
uint16_t | _tmpsns_config::frequency |
int32_t | _tmpsns_config::highAlarmTemp |
int32_t | _tmpsns_config::panicAlarmTemp |
int32_t | _tmpsns_config::lowAlarmTemp |
Driver version | |
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. More... | |
void | TMPSNS_Deinit (TMPSNS_Type *base) |
Deinitializes the TMPSNS module. More... | |
void | TMPSNS_GetDefaultConfig (tmpsns_config_t *config) |
Gets the default configuration structure. More... | |
void | TMPSNS_StartMeasure (TMPSNS_Type *base) |
start the temperature measurement process. More... | |
void | TMPSNS_StopMeasure (TMPSNS_Type *base) |
stop the measurement process. More... | |
float | TMPSNS_GetCurrentTemperature (TMPSNS_Type *base) |
Get current temperature with the fused temperature calibration data. More... | |
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. More... | |
void | TMPSNS_EnableInterrupt (TMPSNS_Type *base, uint32_t mask) |
Enable interrupt status. More... | |
void | TMPSNS_DisableInterrupt (TMPSNS_Type *base, uint32_t mask) |
Disable interrupt status. More... | |
#define | FSL_TMPSNS_DRIVER_VERSION (MAKE_VERSION(2, 1, 0)) |
anonymous enum |
TMPSNS interrupt status enable type, tmpsns_interrupt_status_enable_t.
anonymous enum |
enum _tmpsns_alarm_mode |
void TMPSNS_Deinit | ( | TMPSNS_Type * | base | ) |
Deinitializes the TMPSNS module.
base | TMPSNS base pointer |
brief Deinitializes the TMPSNS module.
param base TMPSNS base pointer
void TMPSNS_DisableInterrupt | ( | TMPSNS_Type * | base, |
uint32_t | mask | ||
) |
Disable interrupt status.
base | TMPSNS base pointer |
mask | The interrupts to disable from tmpsns_interrupt_status_enable_t. |
brief Disable interrupt status.
param base TMPSNS base pointer param mask The interrupts to disable from tmpsns_interrupt_status_enable_t.
void TMPSNS_EnableInterrupt | ( | TMPSNS_Type * | base, |
uint32_t | mask | ||
) |
Enable interrupt status.
base | TMPSNS base pointer |
mask | The interrupts to enable from tmpsns_interrupt_status_enable_t. |
brief Enable interrupt status.
param base TMPSNS base pointer param mask The interrupts to enable from tmpsns_interrupt_status_enable_t.
float TMPSNS_GetCurrentTemperature | ( | TMPSNS_Type * | base | ) |
Get current temperature with the fused temperature calibration data.
base | TMPSNS base pointer |
brief Get current temperature with the fused temperature calibration data.
param base TMPSNS base pointer return current temperature with degrees Celsius.
void TMPSNS_GetDefaultConfig | ( | tmpsns_config_t * | config | ) |
Gets the default configuration structure.
This function initializes the TMPSNS 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 TMPSNS configuration structure to a default value. The default values are: tempmonConfig->frequency = 0x00U; tempmonConfig->highAlarmTemp = 25U; tempmonConfig->panicAlarmTemp = 80U; tempmonConfig->lowAlarmTemp = 20U;
param config Pointer to a configuration structure.
void TMPSNS_Init | ( | TMPSNS_Type * | base, |
const tmpsns_config_t * | config | ||
) |
Initializes the TMPSNS module.
base | TMPSNS base pointer |
config | Pointer to configuration structure. |
brief Initializes the TMPSNS module.
param base TMPSNS base pointer param config Pointer to configuration structure.
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.
base | TMPSNS 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 TMPSNS base pointer param tempVal The alarm temperature with degrees Celsius param alarmMode The alarm mode.
void TMPSNS_StartMeasure | ( | TMPSNS_Type * | base | ) |
start the temperature measurement process.
base | TMPSNS base pointer. |
void TMPSNS_StopMeasure | ( | TMPSNS_Type * | base | ) |
stop the measurement process.
base | TMPSNS base pointer |
uint16_t _tmpsns_config::frequency |
The temperature measure frequency.
int32_t _tmpsns_config::highAlarmTemp |
The high alarm temperature.
int32_t _tmpsns_config::lowAlarmTemp |
The low alarm temperature.
tmpsns_measure_mode_t _tmpsns_config::measureMode |
The temperature measure mode.
int32_t _tmpsns_config::panicAlarmTemp |
The panic alarm temperature.