BSP430  20141115
Board Support Package for MSP430 microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Data Fields
sBSP430cliCommandLink Struct Reference

#include <bsp430/utility/cli.h>

Data Fields

struct sBSP430cliCommandLinklink
const struct sBSP430cliCommandcommand_set
const struct sBSP430cliCommandcmd

Detailed Description

Link in a command chain.

When a command is executed from a string representation, each initial token that can be uniquely identified as a command is extracted. If the identified command definition has child commands and the command string has additional tokens, the interpreter creates a link structure on the stack referencing the command definition and recurses on the remainder of the command string. These link structures create a chain that can be used by the final operation to extract information from higher layers of the command.

periph/timer/alarm/main.c, rf/cc3000/cli/main.c, and utility/cli/main.c.

Field Documentation

const struct sBSP430cliCommand* sBSP430cliCommandLink::cmd

The command definition to be applied at this level. This will be one of the commands in command_set.

periph/timer/alarm/main.c, rf/cc3000/cli/main.c, and utility/cli/main.c.
const struct sBSP430cliCommand* sBSP430cliCommandLink::command_set

The set of potential comands at the level of this node

struct sBSP430cliCommandLink* sBSP430cliCommandLink::link

A link to the parent command definition for layered commands. It will be a null pointer if this link is at the top level of the command hierarchy

The documentation for this struct was generated from the following file: