My Project
|
Public Types | |
enum | Command { INVALID } |
Public Member Functions | |
CbassPowerSupply () | |
virtual | ~CbassPowerSupply () |
void | psConnect () |
void | psDisconnect () |
int | waitForResponse () |
int | psWrite (char *command) |
int | psWrite (char *command, int len) |
int | readArduino () |
void | psSetModule (char *modStage) |
void | psChangeVoltage (char *voltRequest) |
void | psGetVoltage () |
void | psGetVoltageOld () |
int | psSetVoltage (int modsel, int stagesel, float gatevolt, float currvolt) |
int | psGetAllVoltages () |
int | issueCommand (Command type) |
int | issueCommand (Command type, unsigned char address) |
int | issueCommand (Command type, unsigned char *period) |
int | issueCommand (Command type, unsigned char address, unsigned char *period) |
Public Attributes | |
gcp::util::FdSet | fdSet_ |
bool | connected_ |
bool | queryBias_ |
int | fd_ |
float | retVal_ |
char | returnString_ [PS_MAX_READ_BUF] |
float | volts_ [3] |
float | allVolts_ [36] |
Command types
CbassPowerSupply::CbassPowerSupply | ( | ) |
Constructor
....................................................................... Constructors
|
virtual |
Destructor
....................................................................... Destructors
int gcp::util::CbassPowerSupply::issueCommand | ( | Command | type | ) |
Generalized pack&issue command
void CbassPowerSupply::psChangeVoltage | ( | char * | voltRequest | ) |
....................................................................... Mid-level change voltage command
void CbassPowerSupply::psConnect | ( | ) |
function to connect
....................................................................... Connect
void CbassPowerSupply::psDisconnect | ( | ) |
disconnect
....................................................................... Disconnect
int CbassPowerSupply::psGetAllVoltages | ( | ) |
....................................................................... High-level get all voltages command
void CbassPowerSupply::psGetVoltage | ( | ) |
....................................................................... Mid-level get voltage command
void CbassPowerSupply::psSetModule | ( | char * | modStage | ) |
Mid-level commands
....................................................................... Mid-level set module command
int CbassPowerSupply::psSetVoltage | ( | int | modsel, |
int | stagesel, | ||
float | drainvolt, | ||
float | draincurrent | ||
) |
High-level commands
....................................................................... High-level set voltage command
int CbassPowerSupply::psWrite | ( | char * | command | ) |
Low-level commands
....................................................................... Low-level write command
int CbassPowerSupply::psWrite | ( | char * | command, |
int | len | ||
) |
....................................................................... Low-level write command
int CbassPowerSupply::waitForResponse | ( | ) |
select
....................................................................... Wait for a response from the arduino card
bool gcp::util::CbassPowerSupply::connected_ |
if we are connected
int gcp::util::CbassPowerSupply::fd_ |
file descriptor associated with power supply
gcp::util::FdSet gcp::util::CbassPowerSupply::fdSet_ |
The set of file descriptors to be watched for readability.
bool gcp::util::CbassPowerSupply::queryBias_ |
if we should be querying voltage
float gcp::util::CbassPowerSupply::retVal_ |
return values