Sundance SMT1026 User Manual
Page 17

WriteCtrlWord
Prototype:
void WriteCtrlWord(unsigned int nCtrl);
Parameters:
nCtrl
Control word to send.
Return
value:
None.
Notes:
This function sends a control word to the FPGA-only module on the first
TIM slot of a Sundance carrier board.
StoreDataToFile
Prototype:
void StoreDataToFile(const char *pcFile, void *pBuf,
unsigned int nBytes, unsigned int nNoOfBit, FILE_OPTIONS
*=0);
Parameters:
pcFile
Name of the file where the data will be saved.
pBuf
Buffer containing the data.
nBytes
Size of the data.
nNoOfBit
Number of relevant bits per word. This value is used to mask
each word saved in the file.
pFileOpt
Structure which contains the extra file options (append data,
add date and time). (See struct
FILE_OPTIONS
).
Return
value:
None.
Notes:
This function stores data into a file.
CallbackSet
Prototype:
void CallbackSet(SMTFPGACALLBACK pf, void *user);
Parameters:
pf
Callback function.
user
User specified callback value.
Return
value:
None.
Notes:
This function sets the function that is to be called when words are sent to
the FPGA module.
CallbackGet
Prototype:
void CallbackGet(SMTFPGACALLBACK pf, void *user);