
Public Member Functions | |
| QDigitalController_v2 () | |
| ctor  | |
| virtual | ~QDigitalController_v2 () | 
| dtor  | |
| virtual bool | Prepare (const unsigned int &pulseId, const QPulserConfig *cfg) | 
| convert pulser configuration to digital word  | |
| virtual bool | Fire () | 
| fire word on the digital line  | |
| virtual bool | SendSynchSignal () | 
| virtual void | ResetPorts () | 
Private Member Functions | |
| bool | Conf2Bits (unsigned int mem0, unsigned int mem1, unsigned int mem2, unsigned int mem3, unsigned int 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 int | fSignalTimeMs | 
| digital signal duration in ms  | |
| std::map< unsigned int,  unsigned int >  | fPulseIdMap | 
| bool QDigitalController_v2::Conf2Bits | ( | unsigned int | mem0, | |
| unsigned int | mem1, | |||
| unsigned int | mem2, | |||
| unsigned int | mem3, | |||
| unsigned int | id, | |||
| std::vector< unsigned char > & | bytes | |||
| ) |  [private] | 
        
convert a pulser configuration to a sequence of bytes
| mem0 | see QPulserConfig documentation | |
| mem1 | see QPulserConfig documentation | |
| mem2 | see QPulserConfig documentation | |
| mem3 | see QPulserConfig documentation | |
| bytes | vector of formatted bytes ready to be sent via digital lines | 
References fPulseIdMap.
Referenced by Prepare().
std::map<unsigned int, unsigned int> QDigitalController_v2::fPulseIdMap [private]           | 
        
One to one mapping between the pulse_id in the database and the value that is sent along the digital line. The key is the pulse_id in the db, the value is what is actually sent on the digital line.
Referenced by Conf2Bits(), and QDigitalController_v2().
 1.5.6