33 #ifndef __SILICON_LABS_TEMPDRV_H__
34 #define __SILICON_LABS_TEMPDRV_H__
39 #include "tempdrv_config.h"
55 #define ECODE_EMDRV_TEMPDRV_OK (ECODE_OK)
56 #define ECODE_EMDRV_TEMPDRV_NO_INIT (ECODE_EMDRV_TEMPDRV_BASE | 0x00000001)
57 #define ECODE_EMDRV_TEMPDRV_PARAM_ERROR (ECODE_EMDRV_TEMPDRV_BASE | 0x00000002)
58 #define ECODE_EMDRV_TEMPDRV_BAD_LIMIT (ECODE_EMDRV_TEMPDRV_BASE | 0x00000003)
59 #define ECODE_EMDRV_TEMPDRV_NO_CALLBACK (ECODE_EMDRV_TEMPDRV_BASE | 0x00000004)
60 #define ECODE_EMDRV_TEMPDRV_NO_SPACE (ECODE_EMDRV_TEMPDRV_BASE | 0x00000005)
61 #define ECODE_EMDRV_TEMPDRV_TEMP_UNDER (ECODE_EMDRV_TEMPDRV_BASE | 0x00000006)
62 #define ECODE_EMDRV_TEMPDRV_TEMP_OVER (ECODE_EMDRV_TEMPDRV_BASE | 0x00000007)
63 #define ECODE_EMDRV_TEMPDRV_DUP_TEMP (ECODE_EMDRV_TEMPDRV_BASE | 0x00000008)
126 #endif // __SILICON_LABS_TEMPDRV_H__
Energy Aware drivers error code definitions.
void(* TEMPDRV_Callback_t)(int8_t temp, TEMPDRV_LimitType_t limit)
TEMPDRV temperature limit callback function.
int8_t TEMPDRV_GetTemp(void)
Get the current temperature.
CMSIS Cortex-M Peripheral Access Layer for Silicon Laboratories microcontroller devices.
Ecode_t TEMPDRV_DeInit(void)
De-initialize the TEMP driver.
void TEMPDRV_IRQHandler(void)
TEMPDRV IRQ Handler.
uint32_t Ecode_t
Typedef for API function error code return values.
uint8_t TEMPDRV_GetActiveCallbacks(TEMPDRV_LimitType_t limit)
Get the number of active callbacks for a limit.
Ecode_t TEMPDRV_UnregisterCallback(TEMPDRV_Callback_t callback)
Unregister a callback in the TEMP driver.
Ecode_t TEMPDRV_Enable(bool enable)
Enable or disable the TEMP driver.
Energy management unit (EMU) peripheral API.
enum TEMPDRV_LimitType TEMPDRV_LimitType_t
Ecode_t TEMPDRV_RegisterCallback(int8_t temp, TEMPDRV_LimitType_t limit, TEMPDRV_Callback_t callback)
Register a callback in the TEMP driver.
Ecode_t TEMPDRV_Init(void)
Initialize the TEMP driver.