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)

Variables#

EmberCommandEntry
EmberCommandEntry
EmberCommandEntry
EmberCommandEntry
EmberCommandEntry

Functions#

void
zclSimpleCommand(uint8_t frameControl, uint16_t clusterId, uint8_t commandId)

Variable Documentation#

keysCommands#

EmberCommandEntry keysCommands[]

interpanCommands#

EmberCommandEntry interpanCommands[]

printCommands#

EmberCommandEntry printCommands[]

zclCommands#

EmberCommandEntry zclCommands[]

certificationCommands#

EmberCommandEntry certificationCommands[]

Function Documentation#

emAfCliSendUsingMulticastBindingCommand#

void emAfCliSendUsingMulticastBindingCommand (void )
Parameters
TypeDirectionArgument NameDescription
voidN/A

emAfCliBsendCommand#

void emAfCliBsendCommand (void )
Parameters
TypeDirectionArgument NameDescription
voidN/A

emAfCliReadCommand#

void emAfCliReadCommand (void )
Parameters
TypeDirectionArgument NameDescription
voidN/A

emAfCliWriteCommand#

void emAfCliWriteCommand (void )
Parameters
TypeDirectionArgument NameDescription
voidN/A

emAfCliTimesyncCommand#

void emAfCliTimesyncCommand (void )
Parameters
TypeDirectionArgument NameDescription
voidN/A

emAfCliRawCommand#

void emAfCliRawCommand (void )
Parameters
TypeDirectionArgument NameDescription
voidN/A

emAfCliAddReportEntryCommand#

void emAfCliAddReportEntryCommand (void )
Parameters
TypeDirectionArgument NameDescription
voidN/A

zclSimpleCommand#

void zclSimpleCommand (uint8_t frameControl, uint16_t clusterId, uint8_t commandId)
Parameters
TypeDirectionArgument NameDescription
uint8_tN/AframeControl
uint16_tN/AclusterId
uint8_tN/AcommandId