|
gccDppConsole Test C++ SDK
1.0.0.0
DPP C++ Console Demonstration
|
#include <SendCommand.h>
Public Member Functions | |
| CSendCommand (void) | |
| ~CSendCommand (void) | |
| string | MakeUpper (string myString) |
| Forces all characters to uppercase. (All DPP command must be in upper case.) | |
| bool | TestPacketCkSumOK (unsigned char Data[]) |
| Packet checksum test for commands with data. | |
| bool | DP5_CMD (unsigned char Buffer[], TRANSMIT_PACKET_TYPE XmtCmd) |
| Creates a DPP command that does not require additional processing. | |
| bool | DP5_CMD_Config (unsigned char Buffer[], TRANSMIT_PACKET_TYPE XmtCmd, CONFIG_OPTIONS CfgOptions) |
| Creates a DPP command that requires configuration data options processing. | |
| bool | DP5_CMD_Data (unsigned char Buffer[], TRANSMIT_PACKET_TYPE XmtCmd, unsigned char DataOut[]) |
| Creates a DPP command that requires data. | |
| bool | POUT_Buffer (Packet_Out POUT, unsigned char Buffer[]) |
| Creates a packet output buffer from a command byte data array. | |
| string | RemWhitespace (string strLine) |
| Removes Whitespace characters from a command string. | |
| string | GetDP5CfgStr (string strFilename) |
| Reads a DPP configuration from a file. | |
| string | CreateResTestReadBackCmd (bool bSendCoarseFineGain, int DppType) |
| string | CreateFullReadBackCmd (bool PC5_PRESENT, int DppType) |
| Generates a configuration readback command from a list of all commands. | |
| string | CreateFullReadBackCmdMCA8000D (int DppType) |
| string | RemoveCmd (string strCmd, string strCfgData) |
| Remove a specified command from the command stream. | |
| string | RemoveCmdByDeviceType (string strCfgDataIn, bool PC5_PRESENT, int DppType) |
| Remove illegal commands from the command stream by device type. | |
| string | Remove_MCA8000D_Cmds (string strCfgDataIn, int DppType) |
| bool | CopyAsciiData (unsigned char Data[], string strCfg, long lLen) |
| Force string to ASCII bytes. | |
CSendCommand prepares all command packets to be sent. Call CSendCommand::DP5_CMD, CSendCommand::DP5_CMD_Config or CSendCommand::DP5_CMD_Data along with the TRANSMIT_PACKET_TYPE and any additional data or options.
A command array of 8-bit bytes is generated.
Definition at line 30 of file SendCommand.h.
| CSendCommand::CSendCommand | ( | void | ) |
Definition at line 4 of file SendCommand.cpp.
| CSendCommand::~CSendCommand | ( | void | ) |
Definition at line 8 of file SendCommand.cpp.
| bool CSendCommand::CopyAsciiData | ( | unsigned char | Data[], |
| string | strCfg, | ||
| long | lLen | ||
| ) |
Force string to ASCII bytes.
Definition at line 801 of file SendCommand.cpp.

| string CSendCommand::CreateFullReadBackCmd | ( | bool | PC5_PRESENT, |
| int | DppType | ||
| ) |
Generates a configuration readback command from a list of all commands.
Definition at line 526 of file SendCommand.cpp.


| string CSendCommand::CreateFullReadBackCmdMCA8000D | ( | int | DppType | ) |
| string CSendCommand::CreateResTestReadBackCmd | ( | bool | bSendCoarseFineGain, |
| int | DppType | ||
| ) |
Definition at line 501 of file SendCommand.cpp.
| bool CSendCommand::DP5_CMD | ( | unsigned char | Buffer[], |
| TRANSMIT_PACKET_TYPE | XmtCmd | ||
| ) |
Creates a DPP command that does not require additional processing.
Definition at line 166 of file SendCommand.cpp.

| bool CSendCommand::DP5_CMD_Config | ( | unsigned char | Buffer[], |
| TRANSMIT_PACKET_TYPE | XmtCmd, | ||
| CONFIG_OPTIONS | CfgOptions | ||
| ) |
Creates a DPP command that requires configuration data options processing.
Definition at line 424 of file SendCommand.cpp.

| bool CSendCommand::DP5_CMD_Data | ( | unsigned char | Buffer[], |
| TRANSMIT_PACKET_TYPE | XmtCmd, | ||
| unsigned char | DataOut[] | ||
| ) |
Creates a DPP command that requires data.
Definition at line 666 of file SendCommand.cpp.

| string CSendCommand::GetDP5CfgStr | ( | string | strFilename | ) |
Reads a DPP configuration from a file.
Definition at line 754 of file SendCommand.cpp.


| string CSendCommand::MakeUpper | ( | string | myString | ) |
Forces all characters to uppercase. (All DPP command must be in upper case.)
Definition at line 12 of file SendCommand.cpp.

| bool CSendCommand::POUT_Buffer | ( | Packet_Out | POUT, |
| unsigned char | Buffer[] | ||
| ) |
Creates a packet output buffer from a command byte data array.
Definition at line 708 of file SendCommand.cpp.

| string CSendCommand::Remove_MCA8000D_Cmds | ( | string | strCfgDataIn, |
| int | DppType | ||
| ) |
Definition at line 112 of file SendCommand.cpp.


| string CSendCommand::RemoveCmd | ( | string | strCmd, |
| string | strCfgData | ||
| ) |
Remove a specified command from the command stream.
Definition at line 47 of file SendCommand.cpp.

| string CSendCommand::RemoveCmdByDeviceType | ( | string | strCfgDataIn, |
| bool | PC5_PRESENT, | ||
| int | DppType | ||
| ) |
Remove illegal commands from the command stream by device type.
Definition at line 66 of file SendCommand.cpp.


| string CSendCommand::RemWhitespace | ( | string | strLine | ) |
Removes Whitespace characters from a command string.
Definition at line 734 of file SendCommand.cpp.

| bool CSendCommand::TestPacketCkSumOK | ( | unsigned char | Data[] | ) |
Packet checksum test for commands with data.
Definition at line 22 of file SendCommand.cpp.

1.7.6.1