236 #ifndef ti_drivers_Temperature__include 237 #define ti_drivers_Temperature__include 261 #define Temperature_STATUS_RESERVED (-32) 269 #define Temperature_STATUS_SUCCESS (0) 277 #define Temperature_STATUS_ERROR (-1) 307 int16_t thresholdTemperature,
376 uintptr_t clientArg);
408 uintptr_t clientArg);
445 uintptr_t clientArg);
int16_t Temperature_getThresholdHigh(Temperature_NotifyObj *notifyObject)
Get the high threshold of a notification.
void(* Temperature_NotifyFxn)(int16_t currentTemperature, int16_t thresholdTemperature, uintptr_t clientArg, Temperature_NotifyObj *notifyObject)
Function prototype for a notification callback.
Definition: Temperature.h:306
Temperature_NotifyFxn notifyFxn
Definition: Temperature.h:323
int16_t thresholdLow
Definition: Temperature.h:325
Temperature notify object structure.
Definition: Temperature.h:320
int_fast16_t Temperature_registerNotifyRange(Temperature_NotifyObj *notifyObject, int16_t thresholdHigh, int16_t thresholdLow, Temperature_NotifyFxn notifyFxn, uintptr_t clientArg)
Registers a notification with both a high and low threshold.
int_fast16_t Temperature_registerNotifyLow(Temperature_NotifyObj *notifyObject, int16_t thresholdLow, Temperature_NotifyFxn notifyFxn, uintptr_t clientArg)
Registers a notification with a low threshold.
int16_t thresholdHigh
Definition: Temperature.h:324
int_fast16_t Temperature_registerNotifyHigh(Temperature_NotifyObj *notifyObject, int16_t thresholdHigh, Temperature_NotifyFxn notifyFxn, uintptr_t clientArg)
Registers a notification with a high threshold.
bool isRegistered
Definition: Temperature.h:327
int_fast16_t Temperature_unregisterNotify(Temperature_NotifyObj *notifyObject)
Unregisters a currently registered notification.
void Temperature_getThresholdRange(Temperature_NotifyObj *notifyObject, int16_t *thresholdHigh, int16_t *thresholdLow)
Get the high and low threshold of a notification.
uintptr_t clientArg
Definition: Temperature.h:326
int16_t Temperature_getTemperature(void)
Gets the current temperature in degrees C.
int16_t Temperature_getThresholdLow(Temperature_NotifyObj *notifyObject)
Get the low threshold of a notification.
Temperature_NotifyFxn Temperature_getNotifyFxn(Temperature_NotifyObj *notifyObject)
Get the notifyFxn provided during registration.
void Temperature_init(void)
This function initializes the Temperature driver.
uintptr_t Temperature_getClientArg(Temperature_NotifyObj *notifyObject)
Get the application-provided clientArg of a notification.
List_Elem link
Definition: Temperature.h:322
Linked List interface for use in drivers.