CLI commands for sending various messages.
License#
Copyright 2018 Silicon Laboratories Inc. www.silabs.com
The licensor of this software is Silicon Laboratories Inc. Your use of this software is governed by the terms of Silicon Labs Master Software License Agreement (MSLA) available at www.silabs.com/about-us/legal/master-software-license-agreement. This software is distributed to you in Source Code format and is governed by the sections of the MSLA applicable to Source Code.
/***************************************************************************/
#ifndef SILABS_ZCL_CLI_H
#define SILABS_ZCL_CLI_H
#if !defined(EMBER_AF_GENERATE_CLI)
void emAfCliSendCommand(void);
void emAfCliSendUsingMulticastBindingCommand(void);
void emAfCliBsendCommand(void);
void emAfCliReadCommand(void);
void emAfCliWriteCommand(void);
void emAfCliTimesyncCommand(void);
void emAfCliRawCommand(void);
void emAfCliAddReportEntryCommand(void);
#endif
void zclSimpleCommand(uint8_t frameControl,
uint16_t clusterId,
uint8_t commandId);
extern EmberCommandEntry keysCommands[];
extern EmberCommandEntry interpanCommands[];
extern EmberCommandEntry printCommands[];
extern EmberCommandEntry zclCommands[];
extern EmberCommandEntry certificationCommands[];
#define zclSimpleClientCommand(clusterId, commandId) \
zclSimpleCommand(ZCL_CLUSTER_SPECIFIC_COMMAND | ZCL_FRAME_CONTROL_CLIENT_TO_SERVER, \
(clusterId), \
(commandId))
#define zclSimpleServerCommand(clusterId, commandId) \
zclSimpleCommand(ZCL_CLUSTER_SPECIFIC_COMMAND | ZCL_FRAME_CONTROL_SERVER_TO_CLIENT, \
(clusterId), \
(commandId))
#endif // SILABS_ZCL_CLI_H
Macros#
#define
zclSimpleClientCommand (clusterId, commandId)
#define
zclSimpleServerCommand (clusterId, commandId)
Functions#
void
emAfCliSendCommand(void)
void
void
emAfCliBsendCommand(void)
void
emAfCliReadCommand(void)
void
emAfCliWriteCommand(void)
void
emAfCliTimesyncCommand(void)
void
emAfCliRawCommand(void)
void
void
zclSimpleCommand(uint8_t frameControl, uint16_t clusterId, uint8_t commandId)
Variable Documentation#
Function Documentation#
emAfCliSendCommand#
void emAfCliSendCommand (void )
Parameters
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
References appZclBuffer , appZclBufferLen , disableDefaultResponse , emAfApsFrameEndpointSetup , EMBER_AF_NULL_MANUFACTURER_CODE , EMBER_APS_OPTION_ENCRYPTION , EMBER_BROADCAST_ADDRESS , EMBER_OUTGOING_DIRECT , EMBER_SUCCESS , emberAfDebugPrintln , emberAfGetNodeId , emberAfPreCliSendCallback , emberAfSendBroadcast , emberAfSendMulticast , emberAfSendUnicast , globalApsFrame , mfgSpecificId , EmberApsFrame::options , and zclCmdIsBuilt
emAfCliSendUsingMulticastBindingCommand#
void emAfCliSendUsingMulticastBindingCommand (void )
Parameters
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
emAfCliBsendCommand#
void emAfCliBsendCommand (void )
Parameters
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
emAfCliReadCommand#
void emAfCliReadCommand (void )
Parameters
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
emAfCliWriteCommand#
void emAfCliWriteCommand (void )
Parameters
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
emAfCliTimesyncCommand#
void emAfCliTimesyncCommand (void )
Parameters
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
References cliBufferPrint , emAfCliSendCommand , emAfSyncingTime , ZCL_FRAME_CONTROL_CLIENT_TO_SERVER , ZCL_GLOBAL_COMMAND , zclBufferAddWord , and zclBufferSetup
emAfCliRawCommand#
void emAfCliRawCommand (void )
Parameters
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
References APP_ZCL_BUFFER_SIZE_CLI , appZclBuffer , emAfApsFrameClusterIdSetup , and ZCL_MANUFACTURER_SPECIFIC_MASK
emAfCliAddReportEntryCommand#
void emAfCliAddReportEntryCommand (void )
Parameters
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
zclSimpleCommand#
void zclSimpleCommand (uint8_t frameControl, uint16_t clusterId, uint8_t commandId)
Parameters
Type | Direction | Argument Name | Description |
---|---|---|---|
uint8_t | N/A | frameControl | |
uint16_t | N/A | clusterId | |
uint8_t | N/A | commandId |