Apps Components Interfaces All Files Source Tree | source: tos.interfaces.CommandRegister.nc |
The interface for registering commands.
See lib/Commands/... for examples of components that register commands.
See interfaces/Command.h for the data structures used in this interface
Implemented by lib/Command.td
Author: | Wei Hong (wei.hong@intel-research.net) |
Commands |
Events |
Commands - Details |
Parameters: |
name - The name of the command to register retType - The type of the command (see SchemaType.h) retLen - The length (in bytes) of the command paramList - The parameters to this command (see Command.h for the def of paramList) |
Events - Details |
Parameters: |
The - name of the command that was invoked The - buffer where the command result should be written An - error code (may be SCHEMA_RESULT_PENDING, in which case commandDone must be called at some time in the future.) |