QDigitalController_v1 Class Reference

Inheritance diagram for QDigitalController_v1:

QBaseDigitalController List of all members.

Detailed Description

first implementation of pulser digital lines communication protocol

Author:
sergio.didomzio@ge.infn.it
This class inherits from QBaseDigitalController and implements the pure virtual methods that are defined there. In this implementation 8 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 4 bits value, whose meaning is the 4 highest bits of the 12 bit amplitude described in the QPulserConfig_t structure documentation. This implementation is meant to be used with the 8-bit port of NI6281 boards.


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


Member Function Documentation

bool QDigitalController_v1::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

Parameters:
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
Returns:
true unless id is greater than 15


The documentation for this class was generated from the following files:
Generated on Fri Mar 6 13:40:42 2009 for CUORE Software by  doxygen 1.5.1