Lines Matching refs:notifyObject

111                                     Temperature_NotifyObj *notifyObject);
230 Temperature_NotifyObj *notifyObject = (Temperature_NotifyObj *)notifyLink; in setNextThresholds() local
232 nextThresholdHigh = Math_MIN(nextThresholdHigh, notifyObject->thresholdHigh); in setNextThresholds()
233 nextThresholdLow = Math_MAX(nextThresholdLow, notifyObject->thresholdLow); in setNextThresholds()
260 Temperature_NotifyObj *notifyObject = (Temperature_NotifyObj *)notifyLink; in walkNotifyList() local
273 …if (currentTemperature <= notifyObject->thresholdLow || currentTemperature >= notifyObject->thresh… in walkNotifyList()
279 …int16_t threshold = (currentTemperature <= notifyObject->thresholdLow) ? notifyObject->thresholdLow in walkNotifyList()
280 … : notifyObject->thresholdHigh; in walkNotifyList()
283 notifyObject->isRegistered = false; in walkNotifyList()
285notifyObject->notifyFxn(currentTemperature, threshold, notifyObject->clientArg, notifyObject); in walkNotifyList()
346 Temperature_NotifyObj *notifyObject) in thermalShutdownCallback() argument
406 int_fast16_t Temperature_registerNotifyHigh(Temperature_NotifyObj *notifyObject, in Temperature_registerNotifyHigh() argument
415 notifyObject->thresholdHigh = thresholdHigh; in Temperature_registerNotifyHigh()
416 notifyObject->thresholdLow = INVALID_TEMPERATURE_MIN; in Temperature_registerNotifyHigh()
417 notifyObject->notifyFxn = notifyFxn; in Temperature_registerNotifyHigh()
418 notifyObject->clientArg = clientArg; in Temperature_registerNotifyHigh()
420 if (notifyObject->isRegistered == false) in Temperature_registerNotifyHigh()
426 List_put(&notificationList, &notifyObject->link); in Temperature_registerNotifyHigh()
428 notifyObject->isRegistered = true; in Temperature_registerNotifyHigh()
431 updateThresholds(notifyObject->thresholdHigh, notifyObject->thresholdLow); in Temperature_registerNotifyHigh()
441 int_fast16_t Temperature_registerNotifyLow(Temperature_NotifyObj *notifyObject, in Temperature_registerNotifyLow() argument
450 notifyObject->thresholdHigh = INVALID_TEMPERATURE_MAX; in Temperature_registerNotifyLow()
451 notifyObject->thresholdLow = thresholdLow; in Temperature_registerNotifyLow()
452 notifyObject->notifyFxn = notifyFxn; in Temperature_registerNotifyLow()
453 notifyObject->clientArg = clientArg; in Temperature_registerNotifyLow()
455 if (notifyObject->isRegistered == false) in Temperature_registerNotifyLow()
461 List_put(&notificationList, &notifyObject->link); in Temperature_registerNotifyLow()
463 notifyObject->isRegistered = true; in Temperature_registerNotifyLow()
466 updateThresholds(notifyObject->thresholdHigh, notifyObject->thresholdLow); in Temperature_registerNotifyLow()
476 int_fast16_t Temperature_registerNotifyRange(Temperature_NotifyObj *notifyObject, in Temperature_registerNotifyRange() argument
486 notifyObject->thresholdHigh = thresholdHigh; in Temperature_registerNotifyRange()
487 notifyObject->thresholdLow = thresholdLow; in Temperature_registerNotifyRange()
488 notifyObject->notifyFxn = notifyFxn; in Temperature_registerNotifyRange()
489 notifyObject->clientArg = clientArg; in Temperature_registerNotifyRange()
491 if (notifyObject->isRegistered == false) in Temperature_registerNotifyRange()
497 List_put(&notificationList, &notifyObject->link); in Temperature_registerNotifyRange()
499 notifyObject->isRegistered = true; in Temperature_registerNotifyRange()
502 updateThresholds(notifyObject->thresholdHigh, notifyObject->thresholdLow); in Temperature_registerNotifyRange()
512 int_fast16_t Temperature_unregisterNotify(Temperature_NotifyObj *notifyObject) in Temperature_unregisterNotify() argument
518 if (notifyObject->isRegistered == true) in Temperature_unregisterNotify()
521 List_remove(&notificationList, &(notifyObject->link)); in Temperature_unregisterNotify()
523 notifyObject->isRegistered = false; in Temperature_unregisterNotify()