Public Member Functions | |
QGPBoardFrame (const TGWindow *parent, UInt_t w, UInt_t h, UInt_t boardId, const std::set< unsigned int > &channels) | |
ctor | |
Bool_t | SetEnabled (UInt_t ch, Bool_t enabled) |
toggle whether or not this channel will fire when the start button will be pressed | |
Bool_t | SetAmplitude (UInt_t ch, UInt_t amplitude) |
set pulse amplitude on a given channel | |
Bool_t | GetEnabled (UInt_t ch) const |
check whether a channel will fire when the start button will be pressed | |
UInt_t | GetAmplitude (UInt_t ch) const |
read amplitude from Gui | |
void | Blink (UInt_t ch) |
blink led for a given channel | |
void | Lock () |
disable user interaction | |
void | Unlock () |
enable user interaction | |
void | EnableToggled () |
void | OneShotPressed (Long_t) |
void | OneShotPressed (Long_t, Long_t) |
Private Attributes | |
UInt_t | fBoardId |
std::map< unsigned int, QGPChannelFrame * > | fChannelFrames |
QGPBoardFrame::QGPBoardFrame | ( | const TGWindow * | parent, | |
UInt_t | w, | |||
UInt_t | h, | |||
UInt_t | boardId, | |||
const std::set< unsigned int > & | channels | |||
) |
ctor
boardId | hardware board id number | |
channels | hardware channels to activate in this board |
Bool_t QGPBoardFrame::SetEnabled | ( | UInt_t | ch, | |
Bool_t | enabled | |||
) |
toggle whether or not this channel will fire when the start button will be pressed
ch | hardware channel |
References fChannelFrames.
Bool_t QGPBoardFrame::SetAmplitude | ( | UInt_t | ch, | |
UInt_t | amplitude | |||
) |
set pulse amplitude on a given channel
ch | hardware channel | |
amplitude | pulse amplitude (ranges from 0 to 5000) |
References fChannelFrames.
std::map<unsigned int,QGPChannelFrame*> QGPBoardFrame::fChannelFrames [private] |
key: hardware channel, value: ptr to corresponding frame object
Referenced by Blink(), GetAmplitude(), GetEnabled(), Lock(), SetAmplitude(), SetEnabled(), and Unlock().