My Project
|
Public Member Functions | |
DlpUsbThermal () | |
~DlpUsbThermal () | |
bool | connect () |
void | disconnect () |
bool | isConnected () |
int | writeString (std::string message) |
DlpUsbThermalMsg | packCommand (DlpUsbThermalMsg::Request req, int input) |
void | sendCommand (DlpUsbThermalMsg &msg) |
DlpUsbThermalMsg | issueCommand (DlpUsbThermalMsg::Request req, int input) |
DlpUsbThermalMsg | issueCommand (DlpUsbThermalMsg::Request req, int input, bool withQ) |
void | setupDefault () |
void | setOutputType (int outType=1) |
void | setOutputUnits (int unitType=1) |
float | queryTemperature (int channel) |
float | queryVoltage (int channel) |
std::vector< float > | queryAllTemps () |
std::vector< float > | queryAllVoltages () |
int | readPort (DlpUsbThermalMsg &msg) |
int | readPort (DlpUsbThermalMsg &msg, bool withQ) |
DlpUsbThermal::DlpUsbThermal | ( | ) |
Constructor
....................................................................... Constructor
DlpUsbThermal::~DlpUsbThermal | ( | ) |
Destructor
....................................................................... Destructor
bool DlpUsbThermal::connect | ( | ) |
Connect to the port
Returns true on success
....................................................................... Connect to the port
void DlpUsbThermal::disconnect | ( | ) |
Disconnect
....................................................................... Disconnect from port
bool DlpUsbThermal::isConnected | ( | ) |
returns true if connected
....................................................................... Return true if we are connected to the usb device.
DlpUsbThermalMsg gcp::util::DlpUsbThermal::issueCommand | ( | DlpUsbThermalMsg::Request | req, |
int | input | ||
) |
Sends a command and reads the response if necessary
DlpUsbThermalMsg gcp::util::DlpUsbThermal::packCommand | ( | DlpUsbThermalMsg::Request | req, |
int | input | ||
) |
Packs our request
int DlpUsbThermal::readPort | ( | DlpUsbThermalMsg & | msg | ) |
Read bytes from the port.
....................................................................... Read bytes from the serial port and save the response
void gcp::util::DlpUsbThermal::sendCommand | ( | DlpUsbThermalMsg & | msg | ) |
Sends the command
void gcp::util::DlpUsbThermal::setupDefault | ( | ) |
Command set
int DlpUsbThermal::writeString | ( | std::string | message | ) |
write message to the port
....................................................................... write a message to the port