Zigbee Protocol Controller 1.6.0
zigpc_discovery_callbacks.hpp
Go to the documentation of this file.
1/******************************************************************************
2 * # License
3 * <b>Copyright 2022 Silicon Laboratories Inc. www.silabs.com</b>
4 ******************************************************************************
5 * The licensor of this software is Silicon Laboratories Inc. Your use of this
6 * software is governed by the terms of Silicon Labs Master Software License
7 * Agreement (MSLA) available at
8 * www.silabs.com/about-us/legal/master-software-license-agreement. This
9 * software is distributed to you in Source Code format and is governed by the
10 * sections of the MSLA applicable to Source Code.
11 *
12 *****************************************************************************/
13
25#ifndef ZIGPC_DISCOVERY_CALLBACKS_HPP
26#define ZIGPC_DISCOVERY_CALLBACKS_HPP
27
28// Shared Unify includes
29#include <sl_status.h>
30
31// ZigPC includes
32#include <zigpc_common_zigbee.h>
33
34// Component includes
35#include "zigpc_discovery.h"
36
38{
47
54void clear(void);
55
65
77
88
100
101} // namespace zigpc_discovery::callbacks
102
103#endif /* ZIGPC_DISCOVERY_CALLBACKS_HPP */
104
uint32_t sl_status_t
Definition: sl_status.h:139
#define ZIGBEE_NULL_EUI64_UINT
EUI64 Invalid Identifier (int variant)
Definition: zigpc_common_zigbee.h:52
uint64_t zigbee_eui64_uint_t
Zigbee Device Identifier (stored as integer)
Definition: zigpc_common_zigbee.h:199
zigpc_discovery_status
Discovery status types possible for a device being discovered.
Definition: zigpc_discovery.h:98
void(* zigpc_discovery_status_callback_t)(zigbee_eui64_uint_t eui64, zigpc_discovery_status_t status)
Device discovery callback function that can be registered to be notified of discovery success/failure...
Definition: zigpc_discovery.h:112
Definition: zigpc_discovery_callbacks.hpp:38
void clear(void)
Clear all registered callbacks.
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).
constexpr zigbee_eui64_uint_t WILDCARD_EUI64
Wildcard identifier to be used when adding/removing callbacks.
Definition: zigpc_discovery_callbacks.hpp:46
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).
sl_status_t remove_for_device(zigbee_eui64_uint_t eui64)
Remove all registered callbacks for a specific EUI64.
void notify(zigbee_eui64_uint_t eui64, zigpc_discovery_status status)
Invoke registered callbacks the discovery status for the device.
SL Status Codes.