![]() |
Doly C++ SDK v1.00
|
Event registration helpers for the LED subsystem. More...
Go to the source code of this file.
Namespaces | |
| namespace | LedEvent |
Functions | |
| void | LedEvent::AddListener (LedEventListener *observer, bool priority=false) |
| Register a LedEventListener instance. | |
| void | LedEvent::RemoveListener (LedEventListener *observer) |
| Unregister a previously registered LedEventListener instance. | |
| void | LedEvent::AddListenerOnComplete (void(*onEvent)(uint16_t id, LedSide side)) |
| Register a static/free function to receive completion events. | |
| void | LedEvent::RemoveListenerOnComplete (void(*onEvent)(uint16_t id, LedSide side)) |
| Unregister a previously registered completion callback. | |
| void | LedEvent::AddListenerOnError (void(*onError)(uint16_t id, LedSide side, LedErrorType type)) |
| Register a static/free function to receive error events. | |
| void | LedEvent::RemoveListenerOnError (void(*onError)(uint16_t id, LedSide side, LedErrorType type)) |
| Unregister a previously registered error callback. | |
Event registration helpers for the LED subsystem.
Use this API to subscribe to LED completion and error notifications. Two callback styles are supported:
Threading notes: