CmdMessenger  3.0
CmdMessenger is a serial port messaging library for the .Net / Mono Platform.
Public Member Functions | Properties
CommandMessenger.SendCommand Class Reference

A command to be send by CmdMessenger. More...

List of all members.

Public Member Functions

 SendCommand (int cmdId)
 Constructor.
 SendCommand (int cmdId, string argument)
 Constructor.
 SendCommand (int cmdId, string[] arguments)
 Constructor.
 SendCommand (int cmdId, float argument)
 Constructor.
 SendCommand (int cmdId, double argument)
 Constructor.
 SendCommand (int cmdId, UInt16 argument)
 Constructor.
 SendCommand (int cmdId, Int16 argument)
 Constructor.
 SendCommand (int cmdId, UInt32 argument)
 Constructor.
 SendCommand (int cmdId, Int32 argument)
 Constructor.
 SendCommand (int cmdId, bool argument)
 Constructor.
 SendCommand (int cmdId, int ackCmdId, int timeout)
 Constructor.
 SendCommand (int cmdId, string argument, int ackCmdId, int timeout)
 Constructor.
 SendCommand (int cmdId, string[] arguments, int ackCmdId, int timeout)
 Constructor.
 SendCommand (int cmdId, float argument, int ackCmdId, int timeout)
 Constructor.
 SendCommand (int cmdId, double argument, int ackCmdId, int timeout)
 Constructor.
 SendCommand (int cmdId, Int16 argument, int ackCmdId, int timeout)
 Constructor.
 SendCommand (int cmdId, UInt16 argument, int ackCmdId, int timeout)
 Constructor.
 SendCommand (int cmdId, Int32 argument, int ackCmdId, int timeout)
 Constructor.
 SendCommand (int cmdId, UInt32 argument, int ackCmdId, int timeout)
 Constructor.
void AddArgument (string argument)
 Adds a command argument.
void AddArguments (string[] arguments)
 Adds command arguments.
void AddArgument (Single argument)
 Adds a command argument.
void AddArgument (Double argument)
 Adds a command argument.
void AddArgument (Int16 argument)
 Adds a command argument.
void AddArgument (UInt16 argument)
 Adds a command argument.
void AddArgument (Int32 argument)
 Adds a command argument.
void AddArgument (UInt32 argument)
 Adds a command argument.
void AddArgument (bool argument)
 Adds a command argument.
void AddBinArgument (string argument)
 Adds a binary command argument.
void AddBinArgument (Single argument)
 Adds a binary command argument.
void AddBinArgument (Double argument)
 Adds a binary command argument.
void AddBinArgument (Int16 argument)
 Adds a binary command argument.
void AddBinArgument (UInt16 argument)
 Adds a binary command argument.
void AddBinArgument (Int32 argument)
 Adds a binary command argument.
void AddBinArgument (UInt32 argument)
 Adds a binary command argument.
void AddBinArgument (bool argument)
 Adds a binary command argument.

Properties

int CmdId [get, set]
 Gets or sets the command ID.
bool ReqAc [get, set]
 Indicates if we want to wait for an acknowlegde command.
int AckCmdId [get, set]
 Gets or sets the acknowledge command ID.
int Timeout [get, set]
 Gets or sets the time we want to wait for the acknowledgde command.
String[] Arguments [get]
 Gets the command arguments.

Detailed Description

A command to be send by CmdMessenger.


Constructor & Destructor Documentation

Constructor.

Parameters:
cmdIdthe command ID.
CommandMessenger.SendCommand.SendCommand ( int  cmdId,
string  argument 
)

Constructor.

Parameters:
cmdIdCommand ID
argumentThe argument.
CommandMessenger.SendCommand.SendCommand ( int  cmdId,
string[]  arguments 
)

Constructor.

Parameters:
cmdIdCommand ID
argumentsThe arguments.
CommandMessenger.SendCommand.SendCommand ( int  cmdId,
float  argument 
)

Constructor.

Parameters:
cmdIdCommand ID
argumentThe argument.
CommandMessenger.SendCommand.SendCommand ( int  cmdId,
double  argument 
)

Constructor.

Parameters:
cmdIdCommand ID
argumentThe argument.
CommandMessenger.SendCommand.SendCommand ( int  cmdId,
UInt16  argument 
)

Constructor.

Parameters:
cmdIdCommand ID
argumentThe argument.
CommandMessenger.SendCommand.SendCommand ( int  cmdId,
Int16  argument 
)

Constructor.

Parameters:
cmdIdCommand ID
argumentThe argument.
CommandMessenger.SendCommand.SendCommand ( int  cmdId,
UInt32  argument 
)

Constructor.

Parameters:
cmdIdCommand ID
argumentThe argument.
CommandMessenger.SendCommand.SendCommand ( int  cmdId,
Int32  argument 
)

Constructor.

Parameters:
cmdIdCommand ID
argumentThe argument.
CommandMessenger.SendCommand.SendCommand ( int  cmdId,
bool  argument 
)

Constructor.

Parameters:
cmdIdCommand ID
argumentThe argument.
CommandMessenger.SendCommand.SendCommand ( int  cmdId,
int  ackCmdId,
int  timeout 
)

Constructor.

Parameters:
cmdIdCommand ID
ackCmdIdAcknowlegde command ID.
timeoutThe timeout on waiting for an acknowlegde
CommandMessenger.SendCommand.SendCommand ( int  cmdId,
string  argument,
int  ackCmdId,
int  timeout 
)

Constructor.

Parameters:
cmdIdCommand ID
argumentThe argument.
ackCmdIdAcknowlegde command ID.
timeoutThe timeout on waiting for an acknowlegde
CommandMessenger.SendCommand.SendCommand ( int  cmdId,
string[]  arguments,
int  ackCmdId,
int  timeout 
)

Constructor.

Parameters:
cmdIdCommand ID
argumentsThe arguments.
ackCmdIdAcknowlegde command ID.
timeoutThe timeout on waiting for an acknowlegde
CommandMessenger.SendCommand.SendCommand ( int  cmdId,
float  argument,
int  ackCmdId,
int  timeout 
)

Constructor.

Parameters:
cmdIdCommand ID
argumentThe argument.
ackCmdIdAcknowlegde command ID.
timeoutThe timeout on waiting for an acknowlegde
CommandMessenger.SendCommand.SendCommand ( int  cmdId,
double  argument,
int  ackCmdId,
int  timeout 
)

Constructor.

Parameters:
cmdIdCommand ID
argumentThe argument.
ackCmdIdAcknowlegde command ID.
timeoutThe timeout on waiting for an acknowlegde
CommandMessenger.SendCommand.SendCommand ( int  cmdId,
Int16  argument,
int  ackCmdId,
int  timeout 
)

Constructor.

Parameters:
cmdIdCommand ID
argumentThe argument.
ackCmdIdAcknowlegde command ID.
timeoutThe timeout on waiting for an acknowlegde
CommandMessenger.SendCommand.SendCommand ( int  cmdId,
UInt16  argument,
int  ackCmdId,
int  timeout 
)

Constructor.

Parameters:
cmdIdCommand ID
argumentThe argument.
ackCmdIdAcknowlegde command ID.
timeoutThe timeout on waiting for an acknowlegde
CommandMessenger.SendCommand.SendCommand ( int  cmdId,
Int32  argument,
int  ackCmdId,
int  timeout 
)

Constructor.

Parameters:
cmdIdCommand ID
argumentThe argument.
ackCmdIdAcknowlegde command ID.
timeoutThe timeout on waiting for an acknowlegde
CommandMessenger.SendCommand.SendCommand ( int  cmdId,
UInt32  argument,
int  ackCmdId,
int  timeout 
)

Constructor.

Parameters:
cmdIdCommand ID
argumentThe argument.
ackCmdIdAcknowlegde command ID.
timeoutThe timeout on waiting for an acknowlegde

Member Function Documentation

void CommandMessenger.SendCommand.AddArgument ( string  argument)

Adds a command argument.

Parameters:
argumentThe argument.
void CommandMessenger.SendCommand.AddArgument ( Single  argument)

Adds a command argument.

Parameters:
argumentThe argument.
void CommandMessenger.SendCommand.AddArgument ( Double  argument)

Adds a command argument.

Parameters:
argumentThe argument.
void CommandMessenger.SendCommand.AddArgument ( Int16  argument)

Adds a command argument.

Parameters:
argumentThe argument.
void CommandMessenger.SendCommand.AddArgument ( UInt16  argument)

Adds a command argument.

Parameters:
argumentThe argument.
void CommandMessenger.SendCommand.AddArgument ( Int32  argument)

Adds a command argument.

Parameters:
argumentThe argument.
void CommandMessenger.SendCommand.AddArgument ( UInt32  argument)

Adds a command argument.

Parameters:
argumentThe argument.

Adds a command argument.

Parameters:
argumentThe argument.
void CommandMessenger.SendCommand.AddArguments ( string[]  arguments)

Adds command arguments.

Parameters:
argumentsThe arguments.

Adds a binary command argument.

Parameters:
argumentThe argument.

Adds a binary command argument.

Parameters:
argumentThe argument.

Adds a binary command argument.

Parameters:
argumentThe argument.

Adds a binary command argument.

Parameters:
argumentThe argument.

Adds a binary command argument.

Parameters:
argumentThe argument.

Adds a binary command argument.

Parameters:
argumentThe argument.

Adds a binary command argument.

Parameters:
argumentThe argument.

Adds a binary command argument.

Parameters:
argumentThe argument.

Property Documentation

Gets or sets the acknowledge command ID.

the acknowledge command ID.

Gets the command arguments.

The arguments, first one is the command ID

Gets or sets the command ID.

The command ID.

Indicates if we want to wait for an acknowlegde command.

true if request acknowledge, false if not.

Gets or sets the time we want to wait for the acknowledgde command.

The timeout on waiting for an acknowlegde


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