Zigbee Protocol Controller 1.6.0
|
Functions | |
void | clear (void) |
Clear all registered callbacks. More... | |
void | notify (zigbee_eui64_uint_t eui64, zigpc_discovery_status status) |
Invoke registered callbacks the discovery status for the device. More... | |
sl_status_t | add (zigbee_eui64_uint_t eui64, const zigpc_discovery_status_callback_t callback) |
Add a callback to be invoked for a specific EUI64 (or WILDCARD_EUI64 for all devices). More... | |
sl_status_t | remove_for_device (zigbee_eui64_uint_t eui64) |
Remove all registered callbacks for a specific EUI64. More... | |
sl_status_t | remove (zigbee_eui64_uint_t eui64, const zigpc_discovery_status_callback_t callback) |
Remove a registered callback for a specific EUI64 (or WILDCARD_EUI64 for all devices). More... | |
Variables | |
constexpr zigbee_eui64_uint_t | WILDCARD_EUI64 = ZIGBEE_NULL_EUI64_UINT |
Wildcard identifier to be used when adding/removing callbacks. More... | |
sl_status_t zigpc_discovery::callbacks::add | ( | zigbee_eui64_uint_t | eui64, |
const zigpc_discovery_status_callback_t | callback | ||
) |
Add a callback to be invoked for a specific EUI64 (or WILDCARD_EUI64 for all devices).
eui64 | Device identifier. |
callback | Callback to register. |
void zigpc_discovery::callbacks::clear | ( | void | ) |
Clear all registered callbacks.
NOTE: This should be called at initialization.
void zigpc_discovery::callbacks::notify | ( | zigbee_eui64_uint_t | eui64, |
zigpc_discovery_status | status | ||
) |
Invoke registered callbacks the discovery status for the device.
This function also invokes callbacks registered using /ref WILDCARD_EUI64.
eui64 | Device Identifier. |
status | Corresponding discovery status. |
sl_status_t zigpc_discovery::callbacks::remove | ( | zigbee_eui64_uint_t | eui64, |
const zigpc_discovery_status_callback_t | callback | ||
) |
Remove a registered callback for a specific EUI64 (or WILDCARD_EUI64 for all devices).
eui64 | Device identifier. |
callback | Callback to remove. |
sl_status_t zigpc_discovery::callbacks::remove_for_device | ( | zigbee_eui64_uint_t | eui64 | ) |
Remove all registered callbacks for a specific EUI64.
NOTE: Cannot remove callbacks registered to WILDCARD_EUI64
eui64 | Device identifier. |
|
constexpr |
Wildcard identifier to be used when adding/removing callbacks.
Using this EUI64 will allow listeners to be notified of every device discovery status update.