Lines Matching refs:notifyObject

275         Temperature_NotifyObj* notifyObject = (Temperature_NotifyObj *)notifyLink;  in setNextThresholds()  local
278 notifyObject->thresholdHigh); in setNextThresholds()
280 notifyObject->thresholdLow); in setNextThresholds()
305 Temperature_NotifyObj* notifyObject = (Temperature_NotifyObj *)notifyLink; in walkNotifyList() local
318 if (currentTemperature <= notifyObject->thresholdLow || in walkNotifyList()
319 currentTemperature >= notifyObject->thresholdHigh) { in walkNotifyList()
324 int16_t threshold = (currentTemperature <= notifyObject->thresholdLow) ? in walkNotifyList()
325 notifyObject->thresholdLow : notifyObject->thresholdHigh; in walkNotifyList()
328 notifyObject->isRegistered = false; in walkNotifyList()
330 notifyObject->notifyFxn(currentTemperature, in walkNotifyList()
332 notifyObject->clientArg, in walkNotifyList()
333 notifyObject); in walkNotifyList()
441 int_fast16_t Temperature_registerNotifyHigh(Temperature_NotifyObj *notifyObject, in Temperature_registerNotifyHigh() argument
449 notifyObject->thresholdHigh = thresholdHigh; in Temperature_registerNotifyHigh()
450 notifyObject->thresholdLow = INVALID_TEMPERATURE_MIN; in Temperature_registerNotifyHigh()
451 notifyObject->notifyFxn = notifyFxn; in Temperature_registerNotifyHigh()
452 notifyObject->clientArg = clientArg; in Temperature_registerNotifyHigh()
454 if (notifyObject->isRegistered == false) { in Temperature_registerNotifyHigh()
459 List_put(&notificationList, &notifyObject->link); in Temperature_registerNotifyHigh()
461 notifyObject->isRegistered = true; in Temperature_registerNotifyHigh()
464 updateThresholds(notifyObject->thresholdHigh, notifyObject->thresholdLow); in Temperature_registerNotifyHigh()
474 int_fast16_t Temperature_registerNotifyLow(Temperature_NotifyObj *notifyObject, in Temperature_registerNotifyLow() argument
482 notifyObject->thresholdHigh = INVALID_TEMPERATURE_MAX; in Temperature_registerNotifyLow()
483 notifyObject->thresholdLow = thresholdLow; in Temperature_registerNotifyLow()
484 notifyObject->notifyFxn = notifyFxn; in Temperature_registerNotifyLow()
485 notifyObject->clientArg = clientArg; in Temperature_registerNotifyLow()
487 if (notifyObject->isRegistered == false) { in Temperature_registerNotifyLow()
492 List_put(&notificationList, &notifyObject->link); in Temperature_registerNotifyLow()
494 notifyObject->isRegistered = true; in Temperature_registerNotifyLow()
497 updateThresholds(notifyObject->thresholdHigh, notifyObject->thresholdLow); in Temperature_registerNotifyLow()
507 int_fast16_t Temperature_registerNotifyRange(Temperature_NotifyObj *notifyObject, in Temperature_registerNotifyRange() argument
516 notifyObject->thresholdHigh = thresholdHigh; in Temperature_registerNotifyRange()
517 notifyObject->thresholdLow = thresholdLow; in Temperature_registerNotifyRange()
518 notifyObject->notifyFxn = notifyFxn; in Temperature_registerNotifyRange()
519 notifyObject->clientArg = clientArg; in Temperature_registerNotifyRange()
521 if (notifyObject->isRegistered == false) { in Temperature_registerNotifyRange()
526 List_put(&notificationList, &notifyObject->link); in Temperature_registerNotifyRange()
528 notifyObject->isRegistered = true; in Temperature_registerNotifyRange()
531 updateThresholds(notifyObject->thresholdHigh, notifyObject->thresholdLow); in Temperature_registerNotifyRange()
541 int_fast16_t Temperature_unregisterNotify(Temperature_NotifyObj *notifyObject) { in Temperature_unregisterNotify() argument
546 if (notifyObject->isRegistered == true) { in Temperature_unregisterNotify()
548 List_remove(&notificationList, &(notifyObject->link)); in Temperature_unregisterNotify()
550 notifyObject->isRegistered = false; in Temperature_unregisterNotify()