Modules#
GBCS Device Log#
API and Callbacks for the gbcs-device-log Component.
Silicon Labs implementation of the GBCS Device Log. Note that, although this supports populating the device log with a set of devices, this is only intended for testing purposes and should not be thought of as a complete provisioning solution. The real provisioning solution should use the API provided by this component to add and remove items from the device log.
API#
Clear all entries from the GBCS Device Log.
Reset the GBCS Device Log to include only those entries configured with the plugin.
Get the number of entries in the GBCS Device Log.
Add or update an entry within the GBCS Device Log.
Remove an entry from the GBCS Device Log.
Get the device information about an entry in the GBCS Device Log.
Check whether the given device exists within the GBCS Device Log.
Print all entries in the GBCS Device Log.
Retrieve the device from the log at the specified index.
Indicate whether the given device type is a sleepy device.
Enumerations#
API Documentation#
emberAfPluginGbcsDeviceLogClear#
void emberAfPluginGbcsDeviceLogClear (void )
Clear all entries from the GBCS Device Log.
N/A |
70
of file app/framework/plugin/gbcs-device-log/gbcs-device-log.h
emberAfPluginGbcsDeviceLogReset#
void emberAfPluginGbcsDeviceLogReset (void )
Reset the GBCS Device Log to include only those entries configured with the plugin.
N/A |
This function will clear the device log then add each of the devices configured configured with the plugin.
78
of file app/framework/plugin/gbcs-device-log/gbcs-device-log.h
emberAfPluginGbcsDeviceLogCount#
uint8_t emberAfPluginGbcsDeviceLogCount (void )
Get the number of entries in the GBCS Device Log.
N/A |
Returns
The number of entries currently in the GBCS Device Log.
85
of file app/framework/plugin/gbcs-device-log/gbcs-device-log.h
emberAfPluginGbcsDeviceLogStore#
bool emberAfPluginGbcsDeviceLogStore (EmberEUI64 deviceId, EmberAfGBCSDeviceLogInfo * deviceInfo)
Add or update an entry within the GBCS Device Log.
N/A | deviceId | The EUI64 of the device to be added or updated. |
N/A | deviceInfo | A pointer to the structure containing the deviceType of the device to be added or updated. |
This function is used to add or update an entry within the GBCS Device Log.
Returns
True if successfully added or updated, false if there is insufficient room in the device log to add the new entry. The size of the device log is controlled by the "Device Log Size" plugin configuration parameter.
99
of file app/framework/plugin/gbcs-device-log/gbcs-device-log.h
emberAfPluginGbcsDeviceLogRemove#
bool emberAfPluginGbcsDeviceLogRemove (EmberEUI64 deviceId)
Remove an entry from the GBCS Device Log.
N/A | deviceId | The EUI64 of the device to be removed. |
This function can be used to remove an entry within the GBCS Device Log.
Returns
True if successfully removed, false if the device is not currently in the GBCS Device Log.
111
of file app/framework/plugin/gbcs-device-log/gbcs-device-log.h
emberAfPluginGbcsDeviceLogGet#
bool emberAfPluginGbcsDeviceLogGet (EmberEUI64 deviceId, EmberAfGBCSDeviceLogInfo * deviceInfo)
Get the device information about an entry in the GBCS Device Log.
N/A | deviceId | The EUI64 of the device for which information is requested. |
N/A | deviceInfo |
This function can be used to retrieve information pertaining to a device in the GBCS Device Log. Note that if a single device implements two device types (i.e., comms hub implements both the CHF and GPF), only the first device found is returned.
Returns
True if device is in the device log, false otherwise. The contents of the deviceInfo structure will be populated when true is returned.
125
of file app/framework/plugin/gbcs-device-log/gbcs-device-log.h
emberAfPluginGbcsDeviceLogExists#
bool emberAfPluginGbcsDeviceLogExists (EmberEUI64 deviceId, EmberAfGBCSDeviceType deviceType)
Check whether the given device exists within the GBCS Device Log.
N/A | deviceId | The EUI64 of the device in question |
N/A | deviceType | The device type of the device in question. |
This function can be used to check if the given device and type exists within the GBCS Device Log.
Returns
True if device is in the device log, false otherwise.
138
of file app/framework/plugin/gbcs-device-log/gbcs-device-log.h
emberAfPluginGbcsDeviceLogPrintEntries#
void emberAfPluginGbcsDeviceLogPrintEntries (void )
Print all entries in the GBCS Device Log.
N/A |
144
of file app/framework/plugin/gbcs-device-log/gbcs-device-log.h
emberAfPluginGbcsDeviceLogRetrieveByIndex#
bool emberAfPluginGbcsDeviceLogRetrieveByIndex (uint8_t index, EmberEUI64 returnDeviceId, EmberAfGBCSDeviceLogInfo * returnDeviceInfo)
Retrieve the device from the log at the specified index.
N/A | index | The absolute index into the device log. |
N/A | returnDeviceId | A pointer where the EUI64 return data will be written. |
N/A | returnDeviceInfo | A pointer where the device info return data will be written. |
Returns
True if the index has a valid entry. false otherwise.
163
of file app/framework/plugin/gbcs-device-log/gbcs-device-log.h
emberAfPluginGbcsDeviceLogMaxSize#
uint8_t emberAfPluginGbcsDeviceLogMaxSize (void )
N/A |
@ brief Return the maximum size of the device log, including currently empty entries.
Returns
An uint8_t indicating the maximum size.
172
of file app/framework/plugin/gbcs-device-log/gbcs-device-log.h
emberAfPluginGbcsDeviceLogIsSleepyType#
#define emberAfPluginGbcsDeviceLogIsSleepyTypeValue:
(deviceType)
Indicate whether the given device type is a sleepy device.
Returns
True if the deviceType is a sleepy device, false otherwise.
152
of file app/framework/plugin/gbcs-device-log/gbcs-device-log.h
Enumeration Documentation#
EmberAfGBCSDeviceType#
EmberAfGBCSDeviceType
Enumerator | |
---|---|
EMBER_AF_GBCS_GSME_DEVICE_TYPE | |
EMBER_AF_GBCS_ESME_DEVICE_TYPE | |
EMBER_AF_GBCS_CHF_DEVICE_TYPE | |
EMBER_AF_GBCS_GPF_DEVICE_TYPE | |
EMBER_AF_GBCS_HCALCS_DEVICE_TYPE | |
EMBER_AF_GBCS_PPMID_DEVICE_TYPE | |
EMBER_AF_GBCS_TYPE2_DEVICE_TYPE |
48
of file app/framework/plugin/gbcs-device-log/gbcs-device-log.h
Macro Definition Documentation#
emberAfPluginGbcsDeviceLogPrint#
#define emberAfPluginGbcsDeviceLogPrintValue:
(...)
44
of file app/framework/plugin/gbcs-device-log/gbcs-device-log.h
emberAfPluginGbcsDeviceLogPrintln#
#define emberAfPluginGbcsDeviceLogPrintlnValue:
(...)
45
of file app/framework/plugin/gbcs-device-log/gbcs-device-log.h
emberAfPluginGbcsDeviceLogDebugExec#
#define emberAfPluginGbcsDeviceLogDebugExecValue:
(x)
46
of file app/framework/plugin/gbcs-device-log/gbcs-device-log.h