GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> GNAT / V2-0-1 > gnat_trg / linux-gcc
Functions | |
int | vasu_IntTrg (gnatHandle gh) |
Creates a self trigger source to the GLT. | |
int | vasu_GetTrgEvtNum (gnatHandle gh, unsigned short *ev) |
Gets the event number of the trigger message. | |
int | vasu_SetTrgEvtNum (gnatHandle gh, unsigned short ev) |
Sets the event number of the trigger message. | |
int | vasu_GetTrgTag (gnatHandle gh, unsigned short *tag) |
Gets the tag bits of the trigger message. | |
int | vasu_SetTrgTag (gnatHandle gh, unsigned short tag) |
Sets the tag bits of the trigger message. | |
int | vasu_GetTrgCalStrb (gnatHandle gh, unsigned short *calStrb) |
Gets the CALSTROBE bit of the trigger message. | |
int | vasu_SetTrgCalStrb (gnatHandle gh, unsigned short calStrb) |
Sets the CALSTROBE bit of the trigger message. | |
int | vasu_GetTrgTACK (gnatHandle gh, unsigned short *tack) |
Gets the TACK bit of the trigger message. | |
int | vasu_SetTrgTACK (gnatHandle gh, unsigned short tack) |
Sets the TACK bit of the trigger message. | |
int | vasu_GetTrgExtCalStrb (gnatHandle gh, unsigned short *calStrb) |
Gets the external CALSTROBE bit of the trigger message. | |
int | vasu_SetTrgExtCalStrb (gnatHandle gh, unsigned short calStrb) |
Sets the external CALSTROBE bit of the trigger message. | |
int | vasu_GetTrgExtTACK (gnatHandle gh, unsigned short *tack) |
Gets the external TACK bit of the trigger message. | |
int | vasu_SetTrgExtTACK (gnatHandle gh, unsigned short tack) |
Sets the external TACK bit of the trigger message. | |
int | vasu_GetTrg4range (gnatHandle gh, unsigned short *range4) |
Gets the 4 range bit of the trigger message. | |
int | vasu_SetTrg4range (gnatHandle gh, unsigned short range4) |
Sets the 4 range bit of the trigger message. | |
int | vasu_GetTrgZeroSupress (gnatHandle gh, unsigned short *zSup) |
Gets the zero suppression bit of the trigger message. | |
int | vasu_SetTrgZeroSupress (gnatHandle gh, unsigned short zSup) |
Sets the zero suppression bit of the trigger message. | |
int | vasu_GetTrgMarker (gnatHandle gh, unsigned short *marker) |
Gets the 3 bit marker field of the trigger message. | |
int | vasu_SetTrgMarker (gnatHandle gh, unsigned short marker) |
Sets the 3 bit marker field of the trigger message. | |
int | vasu_GetTrgDest (gnatHandle gh, unsigned short *dest) |
Gets the LATp destination field of the trigger message. | |
int | vasu_SetTrgDest (gnatHandle gh, unsigned short dest) |
Sets the LATp destination for event data. | |
int | vasu_SetTrgMask (gnatHandle gh, unsigned int mask) |
Sets the trigger source mask. | |
int | vasu_GetTrgMask (gnatHandle gh, unsigned int *mask) |
Gets the trigger source mask. | |
int | vasu_SetTrgCntMask (gnatHandle gh, unsigned int mask) |
Sets the trigger source counter mask. | |
int | vasu_GetTrgCntMask (gnatHandle gh, unsigned int *mask) |
Gets the trigger source counter mask. | |
int | vasu_SetTrgCounter (gnatHandle gh, unsigned int cnt) |
Clears the trigger source mask. | |
int | vasu_GetTrgCounter (gnatHandle gh, unsigned int *cnt) |
Gets the trigger source counter. | |
int | vasu_SetTrgSeq (gnatHandle gh, unsigned int seq) |
Sets the trigger sequencing register. | |
int | vasu_GetTrgSeq (gnatHandle gh, unsigned int *seq) |
Gets the trigger sequencing register. | |
int | vasu_SetDataMode (gnatHandle gh, unsigned short mode) |
Sets the VASU data mode. | |
int | vasu_GetDataMode (gnatHandle gh, unsigned short *mode) |
Gets the VASU data mode. | |
int | vasu_GetTrgParity (gnatHandle gh, unsigned short *parity) |
Gets the parity definition for the trigger message. | |
int | vasu_SetTrgParity (gnatHandle gh, unsigned short parity) |
Sets the parity definition for the trigger message. | |
int | vasu_GetTrgMsg (gnatHandle gh, unsigned int *msg) |
Gets the entire trigger message register. | |
int | vasu_SetTrgThrottleDefeat (gnatHandle gh, unsigned short defeat) |
Sets the TEM throttle defeat setting bit. | |
int | vasu_GetTrgThrottleDefeat (gnatHandle gh, unsigned short *defeat) |
Gets the TEM throttle defeat setting bit. |
int vasu_GetDataMode | ( | gnatHandle | gh, | |
unsigned short * | mode | |||
) |
Gets the VASU data mode.
gh | handle of VASU | |
mode | pointer to storage to hold setting bit |
References _vasu_regTestFeature::bf, _BFvasu_regTestFeature::dataMode, G_OK, GERR_BAD_PARAM, _vasuRegBlock::m_testFeat, _gnat::m_vasu, _vasu_regTestFeature::ui, and VERIFY_HANDLE.
int vasu_GetTrg4range | ( | gnatHandle | gh, | |
unsigned short * | range4 | |||
) |
Gets the 4 range bit of the trigger message.
gh | handle of VASU | |
range4 | pointer to storage to hold bit |
References _vasu_regTrgMsg::bf, G_OK, GERR_BAD_PARAM, _vasuRegBlock::m_TrgMsg, _gnat::m_vasu, _BFvasu_regTrgMsg::readout4, _vasu_regTrgMsg::ui, and VERIFY_HANDLE.
int vasu_GetTrgCalStrb | ( | gnatHandle | gh, | |
unsigned short * | calStrb | |||
) |
Gets the CALSTROBE bit of the trigger message.
gh | handle of VASU | |
calStrb | pointer to storage to hold bit |
References _vasu_regTrgMsg::bf, _BFvasu_regTrgMsg::calStrobe, G_OK, GERR_BAD_PARAM, _vasuRegBlock::m_TrgMsg, _gnat::m_vasu, _vasu_regTrgMsg::ui, and VERIFY_HANDLE.
int vasu_GetTrgCntMask | ( | gnatHandle | gh, | |
unsigned int * | mask | |||
) |
Gets the trigger source counter mask.
gh | handle of VASU | |
mask | pointer to storage to hold the bit mask |
References G_OK, GERR_BAD_PARAM, _vasuRegBlock::m_trgCntMask, _gnat::m_vasu, and VERIFY_HANDLE.
int vasu_GetTrgCounter | ( | gnatHandle | gh, | |
unsigned int * | cnt | |||
) |
Gets the trigger source counter.
gh | handle of VASU | |
cnt | pointer to storage to hold the count |
References G_OK, GERR_BAD_PARAM, _vasuRegBlock::m_trgCounter, _gnat::m_vasu, and VERIFY_HANDLE.
int vasu_GetTrgDest | ( | gnatHandle | gh, | |
unsigned short * | dest | |||
) |
Gets the LATp destination field of the trigger message.
gh | handle of VASU | |
dest | pointer to storage to hold destination (5 bits) |
References _vasu_regTrgMsg::bf, _BFvasu_regTrgMsg::dest, G_OK, GERR_BAD_PARAM, _vasuRegBlock::m_TrgMsg, _gnat::m_vasu, _vasu_regTrgMsg::ui, and VERIFY_HANDLE.
int vasu_GetTrgEvtNum | ( | gnatHandle | gh, | |
unsigned short * | ev | |||
) |
Gets the event number of the trigger message.
gh | handle of VASU | |
ev | pointer to storage to hold event number |
References _vasu_regEvtNum::bf, _BFvasu_regEvtNum::eventNum, G_OK, GERR_BAD_PARAM, _vasuRegBlock::m_EvtNum, _gnat::m_vasu, _vasu_regEvtNum::ui, and VERIFY_HANDLE.
int vasu_GetTrgExtCalStrb | ( | gnatHandle | gh, | |
unsigned short * | calStrb | |||
) |
Gets the external CALSTROBE bit of the trigger message.
gh | handle of VASU | |
calStrb | pointer to storage to hold bit |
References _vasu_regTrgMsg::bf, _BFvasu_regTrgMsg::extCS, G_OK, GERR_BAD_PARAM, _vasuRegBlock::m_TrgMsg, _gnat::m_vasu, _vasu_regTrgMsg::ui, and VERIFY_HANDLE.
int vasu_GetTrgExtTACK | ( | gnatHandle | gh, | |
unsigned short * | tack | |||
) |
Gets the external TACK bit of the trigger message.
gh | handle of VASU | |
tack | pointer to storage to hold bit |
References _vasu_regTrgMsg::bf, _BFvasu_regTrgMsg::extTACK, G_OK, GERR_BAD_PARAM, _vasuRegBlock::m_TrgMsg, _gnat::m_vasu, _vasu_regTrgMsg::ui, and VERIFY_HANDLE.
int vasu_GetTrgMarker | ( | gnatHandle | gh, | |
unsigned short * | marker | |||
) |
Gets the 3 bit marker field of the trigger message.
gh | handle of VASU | |
marker | pointer to storage to hold marker (3 bits) |
References _vasu_regTrgMsg::bf, G_OK, GERR_BAD_PARAM, _vasuRegBlock::m_TrgMsg, _gnat::m_vasu, _BFvasu_regTrgMsg::marker, _vasu_regTrgMsg::ui, and VERIFY_HANDLE.
int vasu_GetTrgMask | ( | gnatHandle | gh, | |
unsigned int * | mask | |||
) |
Gets the trigger source mask.
gh | handle of VASU | |
mask | pointer to storage to hold the trigger bit mask |
References G_OK, GERR_BAD_PARAM, _vasuRegBlock::m_trgSrcMask, _gnat::m_vasu, and VERIFY_HANDLE.
int vasu_GetTrgMsg | ( | gnatHandle | gh, | |
unsigned int * | msg | |||
) |
Gets the entire trigger message register.
gh | handle of VASU | |
msg | pointer to storage to hold trigger message |
References G_OK, GERR_BAD_PARAM, _vasuRegBlock::m_TrgMsg, _gnat::m_vasu, and VERIFY_HANDLE.
int vasu_GetTrgParity | ( | gnatHandle | gh, | |
unsigned short * | parity | |||
) |
Gets the parity definition for the trigger message.
gh | handle of VASU | |
parity | pointer to storage to hold parity definition |
References _vasu_regTestFeature::bf, G_OK, GERR_BAD_PARAM, _vasuRegBlock::m_testFeat, _gnat::m_vasu, _BFvasu_regTestFeature::trgParity, _vasu_regTestFeature::ui, and VERIFY_HANDLE.
int vasu_GetTrgSeq | ( | gnatHandle | gh, | |
unsigned int * | seq | |||
) |
Gets the trigger sequencing register.
gh | handle of VASU | |
seq | pointer to storage to hold the count |
References G_OK, GERR_BAD_PARAM, _vasuRegBlock::m_trgSeq, _gnat::m_vasu, and VERIFY_HANDLE.
int vasu_GetTrgTACK | ( | gnatHandle | gh, | |
unsigned short * | tack | |||
) |
Gets the TACK bit of the trigger message.
gh | handle of VASU | |
tack | pointer to storage to hold bit |
References _vasu_regTrgMsg::bf, G_OK, GERR_BAD_PARAM, _vasuRegBlock::m_TrgMsg, _gnat::m_vasu, _BFvasu_regTrgMsg::TACK, _vasu_regTrgMsg::ui, and VERIFY_HANDLE.
int vasu_GetTrgTag | ( | gnatHandle | gh, | |
unsigned short * | tag | |||
) |
Gets the tag bits of the trigger message.
gh | handle of VASU | |
tag | pointer to storage to hold bits(2) |
References _vasu_regEvtNum::bf, G_OK, GERR_BAD_PARAM, _vasuRegBlock::m_EvtNum, _gnat::m_vasu, _BFvasu_regEvtNum::tag, _vasu_regEvtNum::ui, and VERIFY_HANDLE.
int vasu_GetTrgThrottleDefeat | ( | gnatHandle | gh, | |
unsigned short * | defeat | |||
) |
Gets the TEM throttle defeat setting bit.
gh | handle of VASU | |
defeat | pointer to storage to hold throttle defeat setting bit |
References _vasu_regTestFeature::bf, _BFvasu_regTestFeature::disableBusy, G_OK, GERR_BAD_PARAM, _vasuRegBlock::m_testFeat, _gnat::m_vasu, _vasu_regTestFeature::ui, and VERIFY_HANDLE.
int vasu_GetTrgZeroSupress | ( | gnatHandle | gh, | |
unsigned short * | zSup | |||
) |
Gets the zero suppression bit of the trigger message.
gh | handle of VASU | |
zSup | pointer to storage to hold bit |
References _vasu_regTrgMsg::bf, G_OK, GERR_BAD_PARAM, _vasuRegBlock::m_TrgMsg, _gnat::m_vasu, _vasu_regTrgMsg::ui, VERIFY_HANDLE, and _BFvasu_regTrgMsg::zeroSupress.
int vasu_IntTrg | ( | gnatHandle | gh | ) |
Creates a self trigger source to the GLT.
gh | handle of VASU |
Raises the self trigger signal -- the VASU may ignore this signal if the internal trigger is disabled (
References G_OK, _vasuRegBlock::m_swTrg, _gnat::m_vasu, and VERIFY_HANDLE.
int vasu_SetDataMode | ( | gnatHandle | gh, | |
unsigned short | mode | |||
) |
Sets the VASU data mode.
gh | handle of VASU | |
mode | boolean bit |
References _vasu_regTestFeature::bf, _BFvasu_regTestFeature::dataMode, G_OK, _vasuRegBlock::m_testFeat, _gnat::m_vasu, _vasu_regTestFeature::ui, and VERIFY_HANDLE.
int vasu_SetTrg4range | ( | gnatHandle | gh, | |
unsigned short | range4 | |||
) |
Sets the 4 range bit of the trigger message.
gh | handle of VASU | |
range4 | boolean bit |
References _vasu_regTrgMsg::bf, G_OK, _vasuRegBlock::m_TrgMsg, _gnat::m_vasu, _BFvasu_regTrgMsg::readout4, _vasu_regTrgMsg::ui, and VERIFY_HANDLE.
int vasu_SetTrgCalStrb | ( | gnatHandle | gh, | |
unsigned short | calStrb | |||
) |
Sets the CALSTROBE bit of the trigger message.
gh | handle of VASU | |
calStrb | boolean bit |
References _vasu_regTrgMsg::bf, _BFvasu_regTrgMsg::calStrobe, G_OK, _vasuRegBlock::m_TrgMsg, _gnat::m_vasu, _vasu_regTrgMsg::ui, and VERIFY_HANDLE.
int vasu_SetTrgCntMask | ( | gnatHandle | gh, | |
unsigned int | mask | |||
) |
Sets the trigger source counter mask.
gh | handle of VASU | |
mask | bitmask of trigger sources to count |
References G_OK, _vasuRegBlock::m_trgCntMask, _gnat::m_vasu, and VERIFY_HANDLE.
int vasu_SetTrgCounter | ( | gnatHandle | gh, | |
unsigned int | cnt | |||
) |
Clears the trigger source mask.
gh | handle of VASU | |
cnt | value ignored |
References G_OK, _vasuRegBlock::m_trgCounter, _gnat::m_vasu, and VERIFY_HANDLE.
int vasu_SetTrgDest | ( | gnatHandle | gh, | |
unsigned short | dest | |||
) |
Sets the LATp destination for event data.
gh | handle of VASU | |
dest | LATp destination address |
References _vasu_regTrgMsg::bf, _BFvasu_regTrgMsg::dest, G_OK, _vasuRegBlock::m_TrgMsg, _gnat::m_vasu, _vasu_regTrgMsg::ui, and VERIFY_HANDLE.
int vasu_SetTrgEvtNum | ( | gnatHandle | gh, | |
unsigned short | ev | |||
) |
Sets the event number of the trigger message.
gh | handle of VASU | |
ev | event number |
References _vasu_regEvtNum::bf, _BFvasu_regEvtNum::eventNum, G_OK, _vasuRegBlock::m_cfgEvtNum, _gnat::m_vasu, _vasu_regEvtNum::ui, and VERIFY_HANDLE.
int vasu_SetTrgExtCalStrb | ( | gnatHandle | gh, | |
unsigned short | calStrb | |||
) |
Sets the external CALSTROBE bit of the trigger message.
gh | handle of VASU | |
calStrb | boolean bit |
References _vasu_regTrgMsg::bf, _BFvasu_regTrgMsg::extCS, G_OK, _vasuRegBlock::m_TrgMsg, _gnat::m_vasu, _vasu_regTrgMsg::ui, and VERIFY_HANDLE.
int vasu_SetTrgExtTACK | ( | gnatHandle | gh, | |
unsigned short | tack | |||
) |
Sets the external TACK bit of the trigger message.
gh | handle of VASU | |
tack | boolean bit |
References _vasu_regTrgMsg::bf, _BFvasu_regTrgMsg::extTACK, G_OK, _vasuRegBlock::m_TrgMsg, _gnat::m_vasu, _vasu_regTrgMsg::ui, and VERIFY_HANDLE.
int vasu_SetTrgMarker | ( | gnatHandle | gh, | |
unsigned short | marker | |||
) |
Sets the 3 bit marker field of the trigger message.
gh | handle of VASU | |
marker | trigger message marker (3 bits) |
References _vasu_regTrgMsg::bf, G_OK, _vasuRegBlock::m_TrgMsg, _gnat::m_vasu, _BFvasu_regTrgMsg::marker, _vasu_regTrgMsg::ui, and VERIFY_HANDLE.
int vasu_SetTrgMask | ( | gnatHandle | gh, | |
unsigned int | mask | |||
) |
Sets the trigger source mask.
gh | handle of VASU | |
mask | bitmask of trigger sources to disable |
References G_OK, _vasuRegBlock::m_trgSrcMask, _gnat::m_vasu, and VERIFY_HANDLE.
int vasu_SetTrgParity | ( | gnatHandle | gh, | |
unsigned short | parity | |||
) |
Sets the parity definition for the trigger message.
gh | handle of VASU | |
parity | non-zero indicates odd parity, zero indicates even parity |
Sets the meaning of parity for the trigger message -- zero means "use even parity", while a non-zero value means "use odd parity".
References _vasu_regTestFeature::bf, G_OK, _vasuRegBlock::m_testFeat, _gnat::m_vasu, _BFvasu_regTestFeature::trgParity, _vasu_regTestFeature::ui, and VERIFY_HANDLE.
int vasu_SetTrgSeq | ( | gnatHandle | gh, | |
unsigned int | seq | |||
) |
Sets the trigger sequencing register.
gh | handle of VASU | |
seq | New sequencing value |
References G_OK, _vasuRegBlock::m_trgSeq, _gnat::m_vasu, and VERIFY_HANDLE.
int vasu_SetTrgTACK | ( | gnatHandle | gh, | |
unsigned short | tack | |||
) |
Sets the TACK bit of the trigger message.
gh | handle of VASU | |
tack | boolean bit |
References _vasu_regTrgMsg::bf, G_OK, _vasuRegBlock::m_TrgMsg, _gnat::m_vasu, _BFvasu_regTrgMsg::TACK, _vasu_regTrgMsg::ui, and VERIFY_HANDLE.
int vasu_SetTrgTag | ( | gnatHandle | gh, | |
unsigned short | tag | |||
) |
Sets the tag bits of the trigger message.
gh | handle of VASU | |
tag | tag bits(2) |
References _vasu_regEvtNum::bf, G_OK, _vasuRegBlock::m_cfgEvtNum, _gnat::m_vasu, _BFvasu_regEvtNum::tag, _vasu_regEvtNum::ui, and VERIFY_HANDLE.
int vasu_SetTrgThrottleDefeat | ( | gnatHandle | gh, | |
unsigned short | defeat | |||
) |
Sets the TEM throttle defeat setting bit.
gh | handle of VASU | |
defeat | non-zero (defeat throttle), zero (obey throttle) |
When asserted the VASU ignores the TEM throttle. Used for testing only.
References _vasu_regTestFeature::bf, _BFvasu_regTestFeature::disableBusy, G_OK, _vasuRegBlock::m_testFeat, _gnat::m_vasu, _vasu_regTestFeature::ui, and VERIFY_HANDLE.
int vasu_SetTrgZeroSupress | ( | gnatHandle | gh, | |
unsigned short | zSup | |||
) |
Sets the zero suppression bit of the trigger message.
gh | handle of VASU | |
zSup | boolean bit |
References _vasu_regTrgMsg::bf, G_OK, _vasuRegBlock::m_TrgMsg, _gnat::m_vasu, _vasu_regTrgMsg::ui, VERIFY_HANDLE, and _BFvasu_regTrgMsg::zeroSupress.