Fan Control Application Override APIs#
To override any of the following hooks, declare the corresponding *Impl() method in CustomerAppTask.h and implement it in CustomerAppTask.cpp. Ensure that the method signature matches the declaration in autogen/AppTaskImpl.h.
AppTask#
Override | Public API | Default behavior |
|---|---|---|
|
| Registers the button callback, initializes fan control, and updates the display. |
|
| Installs Fan Control delegates, initializes the LED, and applies the initial attribute state. |
|
| Handles a Fan Control Step command by updating speed or percentage settings. |
|
| Routes function button events to the base application handler. |
|
| Updates the fan LED and, when enabled, the display. |
|
| Synchronizes speed and percentage settings after a change to FanMode. |
|
| Maps PercentSetting to Off, Low, Medium, or High fan mode. |
|
| Updates PercentCurrent after PercentSetting changes. |
|
| Updates SpeedCurrent after SpeedSetting changes. |
|
| Applies changes to the Fan Control PercentSetting, SpeedSetting, and FanMode attributes and logs Identify changes. |