10 #ifndef TAF_THERM_COMMON_H_INCLUDE_GUARD 11 #define TAF_THERM_COMMON_H_INCLUDE_GUARD 16 #define IFGEN_TAF_THERM_PROTOCOL_ID "daa995111697d8ce10915a8c2b396337" 17 #define IFGEN_TAF_THERM_MSG_SIZE 48 26 #define TAF_THERM_TYPE_MAX_SIZE 32 298 uint32_t* thermalZoneListSizePtr
450 uint32_t* thermalZoneIDPtr
468 char* ThermalZoneType,
470 size_t ThermalZoneTypeSize
488 uint32_t* currTempPtr
506 uint32_t* passiveTempPtr
524 uint32_t* tripPointListSizePtr
542 uint32_t* boundCoolingDeviceListSizePtr
580 uint32_t* thresholdPtr
598 uint32_t* hysterisisPtr
658 uint32_t* boundCoolingIdPtr
676 uint32_t* boundTripPointListSizePtr
696 size_t BoundTripTypeSize
714 uint32_t* boundThresholdPtr
732 uint32_t* boundHysterisisPtr
752 uint32_t* boundTripIDPtr
772 uint32_t* boundTZoneIDPtr
820 uint32_t* listSizePtr
892 size_t DescriptionSize
910 uint32_t* maxCoolingLevelPtr
928 uint32_t* currentCoolingLevelPtr
1028 #endif // TAF_THERM_COMMON_H_INCLUDE_GUARD LE_SHARED bool ifgen_taf_therm_HasLocalBinding(void)
LE_SHARED void ifgen_taf_therm_RemoveCoolingLevelChangeEventHandler(le_msg_SessionRef_t _ifgen_sessionRef, taf_therm_CoolingLevelChangeEventHandlerRef_t handlerRef)
This event will be triggered when the temperature increases and crosses.
Definition: taf_therm_common.h:119
LE_SHARED void ifgen_taf_therm_InitCommonData(void)
LE_SHARED le_result_t ifgen_taf_therm_GetBoundTripPointTripID(le_msg_SessionRef_t _ifgen_sessionRef, taf_therm_TripPointRef_t TripPointRef, uint32_t *boundTripIDPtr)
LE_SHARED taf_therm_ThermalZoneRef_t ifgen_taf_therm_GetFirstThermalZone(le_msg_SessionRef_t _ifgen_sessionRef, taf_therm_ThermalZoneListRef_t ThermalZoneListRef)
struct taf_therm_ThermalZone * taf_therm_ThermalZoneRef_t
Definition: taf_therm_common.h:41
LE_SHARED le_result_t ifgen_taf_therm_GetBoundTripPointHysterisis(le_msg_SessionRef_t _ifgen_sessionRef, taf_therm_TripPointRef_t TripPointRef, uint32_t *boundHysterisisPtr)
LE_SHARED le_result_t ifgen_taf_therm_GetTripPointThreshold(le_msg_SessionRef_t _ifgen_sessionRef, taf_therm_TripPointRef_t TripPointRef, uint32_t *thresholdPtr)
LE_SHARED le_result_t ifgen_taf_therm_GetCDevDescription(le_msg_SessionRef_t _ifgen_sessionRef, taf_therm_CoolingDeviceRef_t CDevListRef, char *Description, size_t DescriptionSize)
LE_SHARED taf_therm_ThermalZoneRef_t ifgen_taf_therm_GetNextThermalZone(le_msg_SessionRef_t _ifgen_sessionRef, taf_therm_ThermalZoneListRef_t ThermalZoneListRef)
Trip event is none.
Definition: taf_therm_common.h:115
LE_SHARED taf_therm_CoolingDeviceRef_t ifgen_taf_therm_GetNextCoolingDevice(le_msg_SessionRef_t _ifgen_sessionRef, taf_therm_CoolingDeviceListRef_t CDevListRef)
LE_SHARED le_result_t ifgen_taf_therm_GetBoundTripPointThermalZoneID(le_msg_SessionRef_t _ifgen_sessionRef, taf_therm_TripPointRef_t TripPointRef, uint32_t *boundTZoneIDPtr)
LE_SHARED le_result_t ifgen_taf_therm_GetTripPointTripID(le_msg_SessionRef_t _ifgen_sessionRef, taf_therm_TripPointRef_t TripPointRef, uint32_t *tripIDPtr)
LE_SHARED le_result_t ifgen_taf_therm_GetThermalZoneType(le_msg_SessionRef_t _ifgen_sessionRef, taf_therm_ThermalZoneRef_t ThermalZoneRef, char *ThermalZoneType, size_t ThermalZoneTypeSize)
LE_SHARED le_result_t ifgen_taf_therm_GetCDevMaxCoolingLevel(le_msg_SessionRef_t _ifgen_sessionRef, taf_therm_CoolingDeviceRef_t CDevListRef, uint32_t *maxCoolingLevelPtr)
LE_SHARED le_result_t ifgen_taf_therm_GetTripPointListSize(le_msg_SessionRef_t _ifgen_sessionRef, taf_therm_ThermalZoneRef_t ThermalZoneRef, uint32_t *tripPointListSizePtr)
LE_SHARED le_result_t ifgen_taf_therm_ReleaseCoolingDeviceRef(le_msg_SessionRef_t _ifgen_sessionRef, taf_therm_CoolingDeviceRef_t coolingDeviceRef)
LE_SHARED le_result_t ifgen_taf_therm_DeleteThermalZoneList(le_msg_SessionRef_t _ifgen_sessionRef, taf_therm_ThermalZoneListRef_t ThermalZoneListRef)
LE_SHARED taf_therm_BoundCoolingDeviceRef_t ifgen_taf_therm_GetFirstBoundCDev(le_msg_SessionRef_t _ifgen_sessionRef, taf_therm_ThermalZoneRef_t ThermalZoneRef)
LE_SHARED le_result_t ifgen_taf_therm_GetThermalZonePassiveTemp(le_msg_SessionRef_t _ifgen_sessionRef, taf_therm_ThermalZoneRef_t ThermalZoneRef, uint32_t *passiveTempPtr)
LE_SHARED le_result_t ifgen_taf_therm_ReleaseTripEventRef(le_msg_SessionRef_t _ifgen_sessionRef, taf_therm_TripPointRef_t tripEventRef)
LE_SHARED le_result_t ifgen_taf_therm_OpenSession(le_msg_SessionRef_t _ifgen_sessionRef, bool isBlocking)
LE_SHARED void ifgen_taf_therm_CleanupCommonData(le_msg_SessionRef_t _ifgen_sessionRef)
LE_SHARED le_result_t ifgen_taf_therm_GetCDevCurrentCoolingLevel(le_msg_SessionRef_t _ifgen_sessionRef, taf_therm_CoolingDeviceRef_t CDevListRef, uint32_t *currentCoolingLevelPtr)
LE_SHARED taf_therm_TripPointRef_t ifgen_taf_therm_GetNextBoundTripPoint(le_msg_SessionRef_t _ifgen_sessionRef, taf_therm_BoundCoolingDeviceRef_t BoundCoolingDeviceRef)
Triggering threshold at which mitigation starts.
Definition: taf_therm_common.h:101
LE_SHARED taf_therm_TripEventHandlerRef_t ifgen_taf_therm_AddTripEventHandler(le_msg_SessionRef_t _ifgen_sessionRef, taf_therm_TripEventHandlerFunc_t handlerPtr, void *contextPtr)
LE_SHARED taf_therm_TripPointRef_t ifgen_taf_therm_GetNextTripPoint(le_msg_SessionRef_t _ifgen_sessionRef, taf_therm_ThermalZoneRef_t ThermalZoneRef)
void(* taf_therm_CoolingLevelChangeEventHandlerFunc_t)(taf_therm_CoolingDeviceRef_t coolingDevice, void *contextPtr)
Definition: taf_therm_common.h:162
LE_SHARED le_result_t ifgen_taf_therm_GetTripPointType(le_msg_SessionRef_t _ifgen_sessionRef, taf_therm_TripPointRef_t TripPointRef, char *TripType, size_t TripTypeSize)
struct taf_therm_TripEventInfo * taf_therm_TripEventInfoRef_t
Definition: taf_therm_common.h:81
struct taf_therm_CoolingDevice * taf_therm_CoolingDeviceRef_t
Definition: taf_therm_common.h:65
LE_SHARED taf_therm_TripPointRef_t ifgen_taf_therm_GetFirstTripPoint(le_msg_SessionRef_t _ifgen_sessionRef, taf_therm_ThermalZoneRef_t ThermalZoneRef)
LE_SHARED le_result_t ifgen_taf_therm_GetCoolingDeviceListSize(le_msg_SessionRef_t _ifgen_sessionRef, taf_therm_CoolingDeviceListRef_t CDevListRef, uint32_t *listSizePtr)
struct taf_therm_CoolingLevelChangeEventHandler * taf_therm_CoolingLevelChangeEventHandlerRef_t
Definition: taf_therm_common.h:138
LE_SHARED le_result_t ifgen_taf_therm_DeleteCoolingDeviceList(le_msg_SessionRef_t _ifgen_sessionRef, taf_therm_CoolingDeviceListRef_t CDevListRef)
LE_SHARED le_result_t ifgen_taf_therm_GetCDevID(le_msg_SessionRef_t _ifgen_sessionRef, taf_therm_CoolingDeviceRef_t CDevListRef, uint32_t *cDevIDPtr)
struct taf_therm_TripEventHandler * taf_therm_TripEventHandlerRef_t
Definition: taf_therm_common.h:130
LE_SHARED le_result_t ifgen_taf_therm_GetThermalZoneCurrentTemp(le_msg_SessionRef_t _ifgen_sessionRef, taf_therm_ThermalZoneRef_t ThermalZoneRef, uint32_t *currTempPtr)
LE_SHARED taf_therm_CoolingDeviceListRef_t ifgen_taf_therm_GetCoolingDeviceList(le_msg_SessionRef_t _ifgen_sessionRef)
LE_SHARED le_result_t ifgen_taf_therm_GetThermalZonesListSize(le_msg_SessionRef_t _ifgen_sessionRef, taf_therm_ThermalZoneListRef_t ThermalZoneListRef, uint32_t *thermalZoneListSizePtr)
LE_SHARED taf_therm_CoolingLevelChangeEventHandlerRef_t ifgen_taf_therm_AddCoolingLevelChangeEventHandler(le_msg_SessionRef_t _ifgen_sessionRef, taf_therm_CoolingLevelChangeEventHandlerFunc_t handlerPtr, void *contextPtr)
Trip point to notify emergency.
Definition: taf_therm_common.h:95
Trip point at which kernel lowers the CPU's frequency and throttles.
Definition: taf_therm_common.h:97
taf_therm_TripEventType_t
Definition: taf_therm_common.h:113
LE_SHARED le_result_t ifgen_taf_therm_GetBoundTripPointThreshold(le_msg_SessionRef_t _ifgen_sessionRef, taf_therm_TripPointRef_t TripPointRef, uint32_t *boundThresholdPtr)
LE_SHARED le_result_t ifgen_taf_therm_ReleaseThermalZoneRef(le_msg_SessionRef_t _ifgen_sessionRef, taf_therm_ThermalZoneRef_t thermalZoneeRef)
Trip point at which system shuts down.
Definition: taf_therm_common.h:93
LE_SHARED taf_therm_CoolingDeviceRef_t ifgen_taf_therm_GetCoolingDeviceByName(le_msg_SessionRef_t _ifgen_sessionRef, const char *LE_NONNULL CoolingDevice)
LE_SHARED le_result_t ifgen_taf_therm_GetBoundCoolingDeviceListSize(le_msg_SessionRef_t _ifgen_sessionRef, taf_therm_ThermalZoneRef_t ThermalZoneRef, uint32_t *boundCoolingDeviceListSizePtr)
taf_therm_TripType_t
Definition: taf_therm_common.h:89
Trip type is unknown.
Definition: taf_therm_common.h:91
Clearing threshold at which mitigation stops.
Definition: taf_therm_common.h:103
LE_SHARED le_result_t ifgen_taf_therm_GetBoundCoolingId(le_msg_SessionRef_t _ifgen_sessionRef, taf_therm_BoundCoolingDeviceRef_t BoundCoolingDeviceRef, uint32_t *boundCoolingIdPtr)
LE_SHARED le_result_t ifgen_taf_therm_GetTripPointThermalZoneID(le_msg_SessionRef_t _ifgen_sessionRef, taf_therm_TripPointRef_t TripPointRef, uint32_t *tZoneIDPtr)
struct taf_therm_BoundCoolingDevice * taf_therm_BoundCoolingDeviceRef_t
Definition: taf_therm_common.h:73
struct taf_therm_CoolingDeviceList * taf_therm_CoolingDeviceListRef_t
Definition: taf_therm_common.h:57
LE_SHARED taf_therm_ThermalZoneListRef_t ifgen_taf_therm_GetThermalZonesList(le_msg_SessionRef_t _ifgen_sessionRef)
#define LE_NONNULL
Definition: le_basics.h:368
void(* taf_therm_TripEventHandlerFunc_t)(taf_therm_TripPointRef_t tripPoint, taf_therm_TripEventType_t type, void *contextPtr)
Definition: taf_therm_common.h:147
struct taf_therm_TripPoint * taf_therm_TripPointRef_t
Definition: taf_therm_common.h:49
le_result_t
Definition: le_basics.h:45
LE_SHARED le_result_t ifgen_taf_therm_GetThermalZoneID(le_msg_SessionRef_t _ifgen_sessionRef, taf_therm_ThermalZoneRef_t ThermalZoneRef, uint32_t *thermalZoneIDPtr)
LE_SHARED le_result_t ifgen_taf_therm_GetBoundTripPointType(le_msg_SessionRef_t _ifgen_sessionRef, taf_therm_TripPointRef_t TripPointRef, char *BoundTripType, size_t BoundTripTypeSize)
struct le_msg_Session * le_msg_SessionRef_t
Definition: le_messaging.h:860
struct taf_therm_ThermalZoneList * taf_therm_ThermalZoneListRef_t
Definition: taf_therm_common.h:33
LE_SHARED taf_therm_ThermalZoneRef_t ifgen_taf_therm_GetThermalZoneByName(le_msg_SessionRef_t _ifgen_sessionRef, const char *LE_NONNULL ThermalZone)
LE_SHARED le_result_t ifgen_taf_therm_GetTripPointHysterisis(le_msg_SessionRef_t _ifgen_sessionRef, taf_therm_TripPointRef_t TripPointRef, uint32_t *hysterisisPtr)
#define LE_SHARED
Definition: le_basics.h:297
LE_SHARED taf_therm_BoundCoolingDeviceRef_t ifgen_taf_therm_GetNextBoundCDev(le_msg_SessionRef_t _ifgen_sessionRef, taf_therm_ThermalZoneRef_t ThermalZoneRef)
LE_SHARED void ifgen_taf_therm_RemoveTripEventHandler(le_msg_SessionRef_t _ifgen_sessionRef, taf_therm_TripEventHandlerRef_t handlerRef)
This event will be triggered when the temperature decreases and crosses.
Definition: taf_therm_common.h:117
LE_SHARED taf_therm_TripPointRef_t ifgen_taf_therm_GetFirstBoundTripPoint(le_msg_SessionRef_t _ifgen_sessionRef, taf_therm_BoundCoolingDeviceRef_t BoundCoolingDeviceRef)
LE_SHARED taf_therm_CoolingDeviceRef_t ifgen_taf_therm_GetFirstCoolingDevice(le_msg_SessionRef_t _ifgen_sessionRef, taf_therm_CoolingDeviceListRef_t CDevListRef)
LE_SHARED le_result_t ifgen_taf_therm_GetBoundTripPointListSize(le_msg_SessionRef_t _ifgen_sessionRef, taf_therm_BoundCoolingDeviceRef_t BoundCoolingDeviceRef, uint32_t *boundTripPointListSizePtr)
Trip point at which processor fan turns on.
Definition: taf_therm_common.h:99