Inheritance diagram for QDigitalController_v0:
This class inherits from QBaseDigitalController and implements the pure virtual methods that are defined there. In this implementation 16 bits are used to send pulser id and pulser amplitude in a single shot. Pulser id is the id found in the database; note that in this implementation only values in the range 0-15 are supported. Pulser amplitude is a 12 bits value, whose meaning is explained in the QPulserConfig_t structure documentation
Public Member Functions | |
virtual bool | Prepare (const unsigned short &pulseId, const QPulserConfig_t *cfg) |
virtual bool | Fire () |
virtual bool | SendSynchSignal () |
virtual void | ResetPorts () |
Private Member Functions | |
bool | Conf2Bits (const char &mem0, const char &mem1, const char &mem2, const char &mem3, const unsigned short &id, std::vector< unsigned char > &bytes) |
convert a pulser configuration to a sequence of bytes | |
Private Attributes | |
QNiDigitalController | fNiController |
std::vector< unsigned char > | fBytes |
bytes to be written to digital board | |
unsigned short | fSignalTimeMs |
digital signal duration in ms |
bool QDigitalController_v0::Conf2Bits | ( | const char & | mem0, | |
const char & | mem1, | |||
const char & | mem2, | |||
const char & | mem3, | |||
const unsigned short & | id, | |||
std::vector< unsigned char > & | bytes | |||
) | [private] |
convert a pulser configuration to a sequence of bytes
mem0 | see QPulserConfig_t documentation | |
mem1 | see QPulserConfig_t documentation | |
mem2 | see QPulserConfig_t documentation | |
mem3 | see QPulserConfig_t documentation | |
bytes | vector of formatted bytes ready to be sent via digital lines |