English
Language : 

ZAURA Datasheet, PDF (78/99 Pages) –
ZAURA RF Wireless Library
Programmer’s Reference Manual
66
ZAURA_RF_ShellAddCmd
Description The ZAURA_RF_ShellAddCmd function is used to add a nondefault
command to the ZAURA RF Shell. The Shell can accommodate a
maximum of 30 commands, of which 7 are reserved to hold the default
set of shell commands. Consequently, 23 slots are available for adding
optional ZAURA RF shell commands or user-defined commands.
Syntax
ZAURA_RF_STATUS ZAURA_RF_ShellAddCmd( char * pName,
SHELL_CMD pFunc)
Parameters
pName
A pointer to a null-terminated string containing the token for the user to enter
into the console to identify this command.
pFunc
The name of the function that implements the shell command. The function
prototype must be:
void pFunc( void );
The available Library Shell commands are described in Table 14.
Table 14. Library Shell Commands
Shell
Command
(pName) Function Pointer (pFunc)
addr
ZAURA_RF_ShellCmdAddr
ch
ZAURA_RF_ShellCmdChannel
data
dst
echo
filter
ZAURA_RF_ShellCmdData
ZAURA_RF_ShellCmdDst
ZAURA_RF_ShellCmdEcho
ZAURA_RF_ShellCmdFilter
Use For
Get/set the local ZAURA RF Wireless Module
station address.
Get/set the current ZAURA RF Wireless
Module channel.
Enter Data Mode (exits local console mode).
Get/set default remote target address.
Initiates ping-pong test between 2 nodes.
Get/set the ZAURA RF Wireless Module
receive filter.
ZAURA RF Wireless Shell API Reference
RM006003-1011