CmdMessenger
3.0
CmdMessenger is a serial port messaging library for the .Net / Mono Platform.
|
A command to be send by CmdMessenger. More...
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. |
A command to be send by CmdMessenger.
CommandMessenger.SendCommand.SendCommand | ( | int | cmdId | ) |
Constructor.
cmdId | the command ID. |
CommandMessenger.SendCommand.SendCommand | ( | int | cmdId, |
string | argument | ||
) |
Constructor.
cmdId | Command ID |
argument | The argument. |
CommandMessenger.SendCommand.SendCommand | ( | int | cmdId, |
string[] | arguments | ||
) |
Constructor.
cmdId | Command ID |
arguments | The arguments. |
CommandMessenger.SendCommand.SendCommand | ( | int | cmdId, |
float | argument | ||
) |
Constructor.
cmdId | Command ID |
argument | The argument. |
CommandMessenger.SendCommand.SendCommand | ( | int | cmdId, |
double | argument | ||
) |
Constructor.
cmdId | Command ID |
argument | The argument. |
CommandMessenger.SendCommand.SendCommand | ( | int | cmdId, |
UInt16 | argument | ||
) |
Constructor.
cmdId | Command ID |
argument | The argument. |
CommandMessenger.SendCommand.SendCommand | ( | int | cmdId, |
Int16 | argument | ||
) |
Constructor.
cmdId | Command ID |
argument | The argument. |
CommandMessenger.SendCommand.SendCommand | ( | int | cmdId, |
UInt32 | argument | ||
) |
Constructor.
cmdId | Command ID |
argument | The argument. |
CommandMessenger.SendCommand.SendCommand | ( | int | cmdId, |
Int32 | argument | ||
) |
Constructor.
cmdId | Command ID |
argument | The argument. |
CommandMessenger.SendCommand.SendCommand | ( | int | cmdId, |
bool | argument | ||
) |
Constructor.
cmdId | Command ID |
argument | The argument. |
CommandMessenger.SendCommand.SendCommand | ( | int | cmdId, |
int | ackCmdId, | ||
int | timeout | ||
) |
Constructor.
cmdId | Command ID |
ackCmdId | Acknowlegde command ID. |
timeout | The timeout on waiting for an acknowlegde |
CommandMessenger.SendCommand.SendCommand | ( | int | cmdId, |
string | argument, | ||
int | ackCmdId, | ||
int | timeout | ||
) |
Constructor.
cmdId | Command ID |
argument | The argument. |
ackCmdId | Acknowlegde command ID. |
timeout | The timeout on waiting for an acknowlegde |
CommandMessenger.SendCommand.SendCommand | ( | int | cmdId, |
string[] | arguments, | ||
int | ackCmdId, | ||
int | timeout | ||
) |
Constructor.
cmdId | Command ID |
arguments | The arguments. |
ackCmdId | Acknowlegde command ID. |
timeout | The timeout on waiting for an acknowlegde |
CommandMessenger.SendCommand.SendCommand | ( | int | cmdId, |
float | argument, | ||
int | ackCmdId, | ||
int | timeout | ||
) |
Constructor.
cmdId | Command ID |
argument | The argument. |
ackCmdId | Acknowlegde command ID. |
timeout | The timeout on waiting for an acknowlegde |
CommandMessenger.SendCommand.SendCommand | ( | int | cmdId, |
double | argument, | ||
int | ackCmdId, | ||
int | timeout | ||
) |
Constructor.
cmdId | Command ID |
argument | The argument. |
ackCmdId | Acknowlegde command ID. |
timeout | The timeout on waiting for an acknowlegde |
CommandMessenger.SendCommand.SendCommand | ( | int | cmdId, |
Int16 | argument, | ||
int | ackCmdId, | ||
int | timeout | ||
) |
Constructor.
cmdId | Command ID |
argument | The argument. |
ackCmdId | Acknowlegde command ID. |
timeout | The timeout on waiting for an acknowlegde |
CommandMessenger.SendCommand.SendCommand | ( | int | cmdId, |
UInt16 | argument, | ||
int | ackCmdId, | ||
int | timeout | ||
) |
Constructor.
cmdId | Command ID |
argument | The argument. |
ackCmdId | Acknowlegde command ID. |
timeout | The timeout on waiting for an acknowlegde |
CommandMessenger.SendCommand.SendCommand | ( | int | cmdId, |
Int32 | argument, | ||
int | ackCmdId, | ||
int | timeout | ||
) |
Constructor.
cmdId | Command ID |
argument | The argument. |
ackCmdId | Acknowlegde command ID. |
timeout | The timeout on waiting for an acknowlegde |
CommandMessenger.SendCommand.SendCommand | ( | int | cmdId, |
UInt32 | argument, | ||
int | ackCmdId, | ||
int | timeout | ||
) |
Constructor.
cmdId | Command ID |
argument | The argument. |
ackCmdId | Acknowlegde command ID. |
timeout | The timeout on waiting for an acknowlegde |
void CommandMessenger.SendCommand.AddArgument | ( | string | argument | ) |
Adds a command argument.
argument | The argument. |
void CommandMessenger.SendCommand.AddArgument | ( | Single | argument | ) |
Adds a command argument.
argument | The argument. |
void CommandMessenger.SendCommand.AddArgument | ( | Double | argument | ) |
Adds a command argument.
argument | The argument. |
void CommandMessenger.SendCommand.AddArgument | ( | Int16 | argument | ) |
Adds a command argument.
argument | The argument. |
void CommandMessenger.SendCommand.AddArgument | ( | UInt16 | argument | ) |
Adds a command argument.
argument | The argument. |
void CommandMessenger.SendCommand.AddArgument | ( | Int32 | argument | ) |
Adds a command argument.
argument | The argument. |
void CommandMessenger.SendCommand.AddArgument | ( | UInt32 | argument | ) |
Adds a command argument.
argument | The argument. |
void CommandMessenger.SendCommand.AddArgument | ( | bool | argument | ) |
Adds a command argument.
argument | The argument. |
void CommandMessenger.SendCommand.AddArguments | ( | string[] | arguments | ) |
Adds command arguments.
arguments | The arguments. |
void CommandMessenger.SendCommand.AddBinArgument | ( | string | argument | ) |
Adds a binary command argument.
argument | The argument. |
void CommandMessenger.SendCommand.AddBinArgument | ( | Single | argument | ) |
Adds a binary command argument.
argument | The argument. |
void CommandMessenger.SendCommand.AddBinArgument | ( | Double | argument | ) |
Adds a binary command argument.
argument | The argument. |
void CommandMessenger.SendCommand.AddBinArgument | ( | Int16 | argument | ) |
Adds a binary command argument.
argument | The argument. |
void CommandMessenger.SendCommand.AddBinArgument | ( | UInt16 | argument | ) |
Adds a binary command argument.
argument | The argument. |
void CommandMessenger.SendCommand.AddBinArgument | ( | Int32 | argument | ) |
Adds a binary command argument.
argument | The argument. |
void CommandMessenger.SendCommand.AddBinArgument | ( | UInt32 | argument | ) |
Adds a binary command argument.
argument | The argument. |
void CommandMessenger.SendCommand.AddBinArgument | ( | bool | argument | ) |
Adds a binary command argument.
argument | The argument. |
int CommandMessenger.SendCommand.AckCmdId [get, set] |
Gets or sets the acknowledge command ID.
the acknowledge command ID.
String [] CommandMessenger.SendCommand.Arguments [get] |
Gets the command arguments.
The arguments, first one is the command ID
int CommandMessenger.SendCommand.CmdId [get, set] |
Gets or sets the command ID.
The command ID.
bool CommandMessenger.SendCommand.ReqAc [get, set] |
Indicates if we want to wait for an acknowlegde command.
true if request acknowledge, false if not.
int CommandMessenger.SendCommand.Timeout [get, set] |
Gets or sets the time we want to wait for the acknowledgde command.
The timeout on waiting for an acknowlegde