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)
Macro Definition Documentation#
zclSimpleClientCommand#
#define zclSimpleClientCommandValue:
zclSimpleCommand(ZCL_CLUSTER_SPECIFIC_COMMAND | ZCL_FRAME_CONTROL_CLIENT_TO_SERVER, \
(clusterId), \
(commandId))
Definition at line
42
of file ./app/framework/cli/zcl-cli.h
zclSimpleServerCommand#
#define zclSimpleServerCommandValue:
zclSimpleCommand(ZCL_CLUSTER_SPECIFIC_COMMAND | ZCL_FRAME_CONTROL_SERVER_TO_CLIENT, \
(clusterId), \
(commandId))
Definition at line
47
of file ./app/framework/cli/zcl-cli.h
Variable Documentation#
keysCommands#
EmberCommandEntry keysCommands[]
Definition at line
36
of file ./app/framework/cli/zcl-cli.h
interpanCommands#
EmberCommandEntry interpanCommands[]
Definition at line
37
of file ./app/framework/cli/zcl-cli.h
printCommands#
EmberCommandEntry printCommands[]
Definition at line
38
of file ./app/framework/cli/zcl-cli.h
zclCommands#
EmberCommandEntry zclCommands[]
Definition at line
39
of file ./app/framework/cli/zcl-cli.h
certificationCommands#
EmberCommandEntry certificationCommands[]
Definition at line
40
of file ./app/framework/cli/zcl-cli.h
Function Documentation#
emAfCliSendCommand#
void emAfCliSendCommand (void )
Parameters
N/A |
Definition at line
22
of file ./app/framework/cli/zcl-cli.h
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
N/A |
Definition at line
23
of file ./app/framework/cli/zcl-cli.h
emAfCliBsendCommand#
void emAfCliBsendCommand (void )
Parameters
N/A |
Definition at line
24
of file ./app/framework/cli/zcl-cli.h
emAfCliReadCommand#
void emAfCliReadCommand (void )
Parameters
N/A |
Definition at line
25
of file ./app/framework/cli/zcl-cli.h
emAfCliWriteCommand#
void emAfCliWriteCommand (void )
Parameters
N/A |
Definition at line
26
of file ./app/framework/cli/zcl-cli.h
emAfCliTimesyncCommand#
void emAfCliTimesyncCommand (void )
Parameters
N/A |
Definition at line
27
of file ./app/framework/cli/zcl-cli.h
References cliBufferPrint , emAfCliSendCommand , emAfSyncingTime , ZCL_FRAME_CONTROL_CLIENT_TO_SERVER , ZCL_GLOBAL_COMMAND , zclBufferAddWord , and zclBufferSetup
emAfCliRawCommand#
void emAfCliRawCommand (void )
Parameters
N/A |
Definition at line
28
of file ./app/framework/cli/zcl-cli.h
References APP_ZCL_BUFFER_SIZE_CLI , appZclBuffer , emAfApsFrameClusterIdSetup , and ZCL_MANUFACTURER_SPECIFIC_MASK
emAfCliAddReportEntryCommand#
void emAfCliAddReportEntryCommand (void )
Parameters
N/A |
Definition at line
29
of file ./app/framework/cli/zcl-cli.h
zclSimpleCommand#
void zclSimpleCommand (uint8_t frameControl, uint16_t clusterId, uint8_t commandId)
Parameters
N/A | frameControl | |
N/A | clusterId | |
N/A | commandId |
Definition at line
32
of file ./app/framework/cli/zcl-cli.h