JLab Pipeline TD Library  3v6.1
tdLib.h File Reference

Go to the source code of this file.

Data Structures

struct  TD_A24RegStruct
 

Macros

#define TD_MAX_VME_SLOTS   21
 
#define TD_MAX_FIBER_PORTS   8
 
#define TD_MAX_PORTNAME_CHARS   20
 
#define TD_FIRMWARE_ID_MASK   0xFFFF0000
 
#define TD_FIRMWARE_TYPE_MASK   0x0000F000
 
#define TD_FIRMWARE_TYPE_PROD   1
 
#define TD_FIRMWARE_TYPE_P   3
 
#define TD_FIRMWARE_MAJOR_VERSION_MASK   0x00000FF0
 
#define TD_FIRWMARE_MINOR_VERSION_MASK   0x0000000F
 
#define TD_SUPPORTED_FIRMWARE   0x61
 
#define TD_SUPPORTED_TYPE   TD_FIRMWARE_TYPE_P
 
#define TD_BOARDID_TYPE_TIDS   0x71D5
 
#define TD_BOARDID_TYPE_TI   0x7100
 
#define TD_BOARDID_TYPE_TS   0x7500
 
#define TD_BOARDID_TYPE_TD   0x7D00
 
#define TD_BOARDID_TYPE_MASK   0xFF000000
 
#define TD_BOARDID_PROD_MASK   0x00FF0000
 
#define TD_BOARDID_GEOADR_MASK   0x00001F00
 
#define TD_BOARDID_CRATEID_MASK   0x000000FF
 
#define TD_FIBER_1   (1<<0)
 
#define TD_FIBER_2   (1<<1)
 
#define TD_FIBER_3   (1<<2)
 
#define TD_FIBER_4   (1<<3)
 
#define TD_FIBER_5   (1<<4)
 
#define TD_FIBER_6   (1<<5)
 
#define TD_FIBER_7   (1<<6)
 
#define TD_FIBER_8   (1<<7)
 
#define TD_FIBER_ENABLED(x)   (1<<(x+1))
 
#define TD_FIBER_MASK   0x000000FF
 
#define TD_FIBER_CONNECTED_1   (1<<16)
 
#define TD_FIBER_CONNECTED_2   (1<<17)
 
#define TD_FIBER_CONNECTED_3   (1<<18)
 
#define TD_FIBER_CONNECTED_4   (1<<19)
 
#define TD_FIBER_CONNECTED_5   (1<<20)
 
#define TD_FIBER_CONNECTED_6   (1<<21)
 
#define TD_FIBER_CONNECTED_7   (1<<22)
 
#define TD_FIBER_CONNECTED_8   (1<<23)
 
#define TD_FIBER_CONNECTED_TI(x)   (1<<(x+15))
 
#define TD_FIBER_CONNECTED_MASK   0x00FF0000
 
#define TD_FIBER_TRIGSRC_ENABLED_1   (1<<24)
 
#define TD_FIBER_TRIGSRC_ENABLED_2   (1<<25)
 
#define TD_FIBER_TRIGSRC_ENABLED_3   (1<<26)
 
#define TD_FIBER_TRIGSRC_ENABLED_4   (1<<27)
 
#define TD_FIBER_TRIGSRC_ENABLED_5   (1<<28)
 
#define TD_FIBER_TRIGSRC_ENABLED_6   (1<<29)
 
#define TD_FIBER_TRIGSRC_ENABLED_7   (1<<30)
 
#define TD_FIBER_TRIGSRC_ENABLED_8   (1<<31)
 
#define TD_FIBER_TRIGSRC_ENABLED_TI(x)   (1<<(x+23))
 
#define TD_FIBER_TRIGSRC_ENABLED_MASK   0xFF000000
 
#define TD_INTSETUP_VECTOR_MASK   0x000000FF
 
#define TD_INTSETUP_LEVEL_MASK   0x00000F00
 
#define TD_INTSETUP_ENABLE   (1<<16)
 
#define TD_TRIGDELAY_TRIG1_DELAY_MASK   0x000000FF
 
#define TD_TRIGDELAY_TRIG1_WIDTH_MASK   0x0000FF00
 
#define TD_TRIGDELAY_TRIG2_DELAY_MASK   0x00FF0000
 
#define TD_TRIGDELAY_TRIG2_WIDTH_MASK   0xFF000000
 
#define TD_ADR32_MBLK_ADDR_MAX_MASK   0x000003FE
 
#define TD_ADR32_MBLK_ADDR_MIN_MASK   0x003FC000
 
#define TD_ADR32_BASE_MASK   0xFF800000
 
#define TD_BLOCKLEVEL_MASK   0x000000FF
 
#define TD_DATAFORMAT_TWOBLOCK_PLACEHOLDER   (1<<0)
 
#define TD_DATAFORMAT_TIMING_WORD   (1<<1)
 
#define TD_DATAFORMAT_STATUS_WORD   (1<<2)
 
#define TD_VMECONTROL_BERR   (1<<0)
 
#define TD_VMECONTROL_TOKEN   (1<<1)
 
#define TD_VMECONTROL_MBLK   (1<<2)
 
#define TD_VMECONTROL_A32M   (1<<3)
 
#define TD_VMECONTROL_A32   (1<<4)
 
#define TD_VMECONTROL_ERROR_INT   (1<<7)
 
#define TD_VMECONTROL_I2CDEV_HACK   (1<<8)
 
#define TD_VMECONTROL_TOKEN_HI   (1<<9)
 
#define TD_VMECONTROL_FIRST_BOARD   (1<<10)
 
#define TD_VMECONTROL_LAST_BOARD   (1<<11)
 
#define TD_VMECONTROL_BUFFER_DISABLE   (1<<15)
 
#define TD_TRIGSRC_SOURCEMASK   0x0000F3FF
 
#define TD_TRIGSRC_P0   (1<<0)
 
#define TD_TRIGSRC_HFBR1   (1<<1)
 
#define TD_TRIGSRC_LOOPBACK   (1<<2)
 
#define TD_TRIGSRC_FPTRG   (1<<3)
 
#define TD_TRIGSRC_VME   (1<<4)
 
#define TD_TRIGSRC_TSINPUTS   (1<<5)
 
#define TD_TRIGSRC_TSREV2   (1<<6)
 
#define TD_TRIGSRC_PULSER   (1<<7)
 
#define TD_TRIGSRC_ENABLE   (1<<8)
 
#define TD_TRIGSRC_P2BUSY   (1<<9)
 
#define TD_TRIGSRC_PART_1   (1<<12)
 
#define TD_TRIGSRC_PART_2   (1<<13)
 
#define TD_TRIGSRC_PART_3   (1<<14)
 
#define TD_TRIGSRC_PART_4   (1<<15)
 
#define TD_TRIGSRC_MONITOR_MASK   0xFFFF0000
 
#define TD_SYNC_SOURCEMASK   0x0000FFFF
 
#define TD_SYNC_P0   (1<<0)
 
#define TD_SYNC_HFBR1   (1<<1)
 
#define TD_SYNC_HFBR5   (1<<2)
 
#define TD_SYNC_FP   (1<<3)
 
#define TD_SYNC_LOOPBACK   (1<<4)
 
#define TD_SYNC_MONITOR_MASK   0xFFFF0000
 
#define TD_BUSY_SOURCEMASK   0x0000FFFF
 
#define TD_BUSY_P2   (1<<2)
 
#define TD_BUSY_TRIGGER_LOCK   (1<<6)
 
#define TD_BUSY_LOOPBACK   (1<<7)
 
#define TD_BUSY_HFBR1   (1<<8)
 
#define TD_BUSY_HFBR2   (1<<9)
 
#define TD_BUSY_HFBR3   (1<<10)
 
#define TD_BUSY_HFBR4   (1<<11)
 
#define TD_BUSY_HFBR5   (1<<12)
 
#define TD_BUSY_HFBR6   (1<<13)
 
#define TD_BUSY_HFBR7   (1<<14)
 
#define TD_BUSY_HFBR8   (1<<15)
 
#define TD_BUSY_HFBR_MASK   0x0000FF00
 
#define TD_BUSY_MONITOR_MASK   0xFFFF0000
 
#define TD_BUSY_MONITOR_P2   (1<<18)
 
#define TD_BUSY_MONITOR_TRIG_LOST   (1<<22)
 
#define TD_BUSY_MONITOR_LOOPBACK   (1<<23)
 
#define TD_BUSY_MONITOR_HFBR1   (1<<24)
 
#define TD_BUSY_MONITOR_HFBR2   (1<<25)
 
#define TD_BUSY_MONITOR_HFBR3   (1<<26)
 
#define TD_BUSY_MONITOR_HFBR4   (1<<27)
 
#define TD_BUSY_MONITOR_HFBR5   (1<<28)
 
#define TD_BUSY_MONITOR_HFBR6   (1<<29)
 
#define TD_BUSY_MONITOR_HFBR7   (1<<30)
 
#define TD_BUSY_MONITOR_HFBR8   (1<<31)
 
#define TD_BUSY_MONITOR_FIBER_BUSY(i)   (1<<(23+i))
 
#define TD_FIBER_BUSY_HFBR1   (1<<16)
 
#define TD_FIBER_BUSY_HFBR2   (1<<17)
 
#define TD_FIBER_BUSY_HFBR3   (1<<18)
 
#define TD_FIBER_BUSY_HFBR4   (1<<19)
 
#define TD_FIBER_BUSY_HFBR5   (1<<20)
 
#define TD_FIBER_BUSY_HFBR6   (1<<21)
 
#define TD_FIBER_BUSY_HFBR7   (1<<22)
 
#define TD_FIBER_BUSY_HFBR8   (1<<23)
 
#define TD_FIBER_BUSY(i)   (1<<(15+i))
 
#define TD_BLOCKBUFFER_BUFFERLEVEL_MASK   0x0000FFFF
 
#define TD_BLOCKBUFFER_BLOCKS_READY_MASK   0x0000FF00
 
#define TD_BLOCKBUFFER_BLOCKS_NEEDACK_MASK   0xFF000000
 
#define TD_OUTPUT_MASK   0x0000FFFF
 
#define TD_OUTPUT_BLOCKS_READY_MASK   0x00FF0000
 
#define TD_OUTPUT_EVENTS_IN_BLOCK_MASK   0xFF000000
 
#define TD_SYNCCOMMAND_VME_CLOCKRESET   0x11
 
#define TD_SYNCCOMMAND_CLK250_RESYNC   0x22
 
#define TD_SYNCCOMMAND_AD9510_RESYNC   0x33
 
#define TD_SYNCCOMMAND_GTP_STATUSB_RESET   0x44
 
#define TD_SYNCCOMMAND_TRIGGERLINK_ENABLE   0x55
 
#define TD_SYNCCOMMAND_TRIGGERLINK_DISABLE   0x77
 
#define TD_SYNCCOMMAND_TRIGGER_READY_RESET   0xAA
 
#define TD_SYNCCOMMAND_SYNCRESET   0xDD
 
#define TD_SYNCCOMMAND_SYNCCODE_MASK   0x000000FF
 
#define TD_SYNCDELAY_MASK   0x0000007F
 
#define TD_SYNCWIDTH_MASK   0x7F
 
#define TD_SYNCWIDTH_LONGWIDTH_ENABLE   (1<<7)
 
#define TD_NBLOCKS_BLOCK_COUNT_MASK   0x00FFFFFF
 
#define TD_RUNNINGMODE_ENABLE   0x71
 
#define TD_RUNNINGMODE_DISABLE   0x0
 
#define TD_FIBERLATENCYMEASUREMENT_CARRYCHAIN_MASK   0x0000FFFF
 
#define TD_FIBERLATENCYMEASUREMENT_IODELAY_MASK   0x00FF0000
 
#define TD_FIBERLATENCYMEASUREMENT_DATA_MASK   0xFF000000
 
#define TD_FIBERALIGNMENT_HFBR1_IODELAY_MASK   0x000000FF
 
#define TD_FIBERALIGNMENT_HFBR1_SYNCDELAY_MASK   0x0000FF00
 
#define TD_FIBERALIGNMENT_HFBR5_IODELAY_MASK   0x00FF0000
 
#define TD_FIBERALIGNMENT_HFBR5_SYNCDELAY_MASK   0xFF000000
 
#define TD_BLOCKSTATUS_NBLOCKS_READY0   0x000000FF
 
#define TD_BLOCKSTATUS_NBLOCKS_NEEDACK0   0x0000FF00
 
#define TD_BLOCKSTATUS_NBLOCKS_READY1   0x00FF0000
 
#define TD_BLOCKSTATUS_NBLOCKS_NEEDACK1   0xFF000000
 
#define TD_ADR24_ADDRESS_MASK   0x0000001F
 
#define TD_ADR24_HARDWARE_SET_MASK   0x000003E0
 
#define TD_ADR24_TM_NBLOCKS_READY1   0x00FF0000
 
#define TD_ADR24_TM_NBLOCKS_NEEDACK1   0xFF000000
 
#define TD_ROCENABLE_MASK   0x000000FF
 
#define TD_ROCENABLE_ROC(x)   (1<<(x))
 
#define TD_ROCENABLE_SYNCRESET_REQUEST_ENABLE_MASK   0x0007FC00
 
#define TD_ROCENABLE_SYNCRESET_REQUEST_MONITOR_MASK   0x1FF00000
 
#define TD_RESET_I2C   (1<<1)
 
#define TD_RESET_JTAG   (1<<2)
 
#define TD_RESET_SFM   (1<<3)
 
#define TD_RESET_SOFT   (1<<4)
 
#define TD_RESET_BUSYACK   (1<<7)
 
#define TD_RESET_CLK250   (1<<8)
 
#define TD_RESET_CLK200   (1<<8)
 
#define TD_RESET_CLK125   (1<<9)
 
#define TD_RESET_MGT   (1<<10)
 
#define TD_RESET_AUTOALIGN_P0_SYNC   (1<<11)
 
#define TD_RESET_AUTOALIGN_HFBR1_SYNC   (1<<11)
 
#define TD_RESET_AUTOALIGN_HFBR5_SYNC   (1<<12)
 
#define TD_RESET_RAM_WRITE   (1<<12)
 
#define TD_RESET_FIBER_AUTO_ALIGN   (1<<13)
 
#define TD_RESET_IODELAY   (1<<14)
 
#define TD_RESET_MEASURE_LATENCY   (1<<15)
 
#define TD_RESET_TAKE_TOKEN   (1<<16)
 
#define TD_RESET_BLOCK_READOUT   (1<<17)
 
#define TD_RESET_MGT_RX_RESET   (1<<22)
 
#define TD_RESET_LATCH_TIMERS   (1<<24)
 
#define TD_ID_TRIGSRC_ENABLE_MASK   0x000000FF
 
#define TD_ID_CRATEID_MASK   0x0000FF00
 
#define TD_ID_BLOCKLEVEL_MASK   0x00FF0000
 
#define TD_SLAVE_1   (1<<1)
 
#define TD_SLAVE_2   (1<<2)
 
#define TD_SLAVE_3   (1<<3)
 
#define TD_SLAVE_4   (1<<4)
 
#define TD_SLAVE_5   (1<<5)
 
#define TD_SLAVE_6   (1<<6)
 
#define TD_SLAVE_7   (1<<7)
 
#define TD_SLAVE_8   (1<<8)
 
#define TD_INT_VEC   0xc8
 
#define TD_INT_LEVEL   5
 
#define TD_I2C_DATA_MASK   0x0000ffff
 
#define TD_I2C_8BIT_DATA_MASK   0x000000ff
 
#define TD_INIT_NO_INIT   (1<<0)
 
#define TD_INIT_SKIP_FIRMWARE_CHECK   (1<<2)
 
#define TD_INIT_USE_ADDR_LIST   (1<<3)
 
#define MAX_VME_SLOTS   21
 

Functions

STATUS tdInit (UINT32 addr, UINT32 addr_inc, int nfind, int iFlag)
 Initialize JLAB TD Library. More...
 
int tdSlot (unsigned int i)
 Convert an index into a slot number, where the index is the element of an array of TDs in the order in which they were initialized. More...
 
unsigned int tdSlotMask ()
 Return the VME Slot mask of initialized TDs. More...
 
int tdCheckAddresses ()
 Test of register map. More...
 
void tdStatus (int id, int pflag)
 Print some status information of the TD to standard out. More...
 
void tdInitPortNames ()
 Initialize portName array with default names in the form: Slot%2d - Portd. More...
 
int tdSetPortName (int id, int iport, char *name)
 Rename a specified port to a specified 20 character string. More...
 
int tdGetPortName (int id, int iport, char **name)
 Get the current specified port name. More...
 
int tdSavePortNames (char *filename)
 Save the current port names to a file (with file name: filename) More...
 
int tdLoadPortNames (char *filename)
 Load the Port Names as specified in a file. More...
 
void tdPrintPortNames ()
 Print the current port names to standard out. More...
 
void tdGStatus (int pflag)
 Print a summary of all configured TD modules and ports to standard out. More...
 
int tdSetBlockLevel (int id, unsigned int blockLevel)
 Set the number of events per block. More...
 
int tdGSetBlockLevel (unsigned int blockLevel)
 Set the block level for all initialized TDs. More...
 
int tdSetBlockBufferLevel (int id, unsigned int level)
 Set the block buffer level for the number of blocks in the system that need to be read out. More...
 
int tdGSetBlockBufferLevel (unsigned int level)
 Set the block buffer level for the number of blocks in the system that need to be read out for all initialized TDs. More...
 
int tdGetFirmwareVersion (int id)
 Get the Firmware Version. More...
 
int tdEnableFiber (int id, unsigned int fiber)
 Enable Fiber transceiver. More...
 
int tdDisableFiber (int id, unsigned int fiber)
 Disable Fiber transceiver. More...
 
int tdSetFiberMask (int id, unsigned int fibermask)
 Enable/Disable fiber ports according to specified mask. More...
 
int tdSetBusySource (int id, unsigned int sourcemask, int rFlag)
 Set the busy source with a specified sourcemask. More...
 
int tdSetTriggerLock (int id, int enable)
 Set the the trigger lock mode for the specified TD. More...
 
int tdGSetTriggerLock (int enable)
 Set the the trigger lock mode for all initialized TDs. More...
 
int tdGetTriggerLock (int id)
 Get the current setting of the trigger lock mode for the specified TD. More...
 
int tdSetSyncSource (int id, unsigned int sync)
 Set the Sync source mask. More...
 
int tdSetTriggerSource (int id, int trigmask)
 Set trigger sources with specified trigmask. More...
 
int tdResetSlaveConfig (int id)
 Reset the configuration of TI Slaves on the TD. More...
 
int tdAddSlave (int id, unsigned int fiber)
 Add and configure a TI Slave for the TD. More...
 
int tdRemoveSlave (int id, unsigned int fiber)
 Remove a TI Slave for the TD. More...
 
int tdAddSlaveMask (int id, unsigned int fibermask)
 Add and configure TI Slaves by using a mask for the TD. More...
 
int tdAutoAlignSync (int id)
 Auto Align Sync Delay. More...
 
unsigned int tdGetSerialNumber (int id, char **rSN)
 Get the Module Serial Number. More...
 
int tdLatchTimers (int id)
 Latch the Busy and Live Timers. More...
 
unsigned int tdGetLiveTime (int id)
 Return the current "live" time of the module. More...
 
unsigned int tdGetBusyTime (int id)
 Return the current "busy" time of the module. More...
 
int tdEnableSyncResetRequest (int id, unsigned int portMask)
 Configure which ports (and self) to enable response of a SyncReset request. More...
 
int tdSyncResetRequestStatus (int id, int pflag)
 Status of SyncReset Request received bits. More...
 
int tdGetConnectedFiberMask (int id)
 Returns the mask of fiber channels that report a "connected" status from a TI. More...
 
int tdGetTrigSrcEnabledFiberMask (int id)
 Returns the mask of fiber channels that report a "connected" status from a TI has it's trigger source enabled. More...
 
int tdTriggerReadyReset (int id)
 Reset the triggers enabled status bits of TI Slaves. More...
 
int tdGetCrateID (int id, int port)
 Get the crate ID of the selected port. More...
 
int tdSetPortNamesFromCrateID (int id)
 Set the port names for the specified TD from the received Crate IDs from the TI Slaves. More...
 
void tdGSetPortNamesFromCrateID ()
 Set the port names for all initialized TD from the received Crate IDs from the TI Slaves. More...
 
int tdGetPortTrigSrcEnabled (int id, int port)
 Get the trigger sources enabled bits of the selected port. More...
 
int tdGetSlaveBlocklevel (int id, int port)
 Get the blocklevel of the TI Slave on the selected port. More...
 
int tdResetMGT (int id)
 Reset the MGT. More...
 
int tdResetMGTRx (int id)
 Reset the MGT Rx CDR. More...
 
void tdSlaveStatus (int id, int pflag)
 Print a summary of all fiber port connections to potential TI Slaves. More...
 
unsigned int tdGetBlockStatus (int id, int port, int pflag)
 Obtain the status of blocks sent readout acknowledges received from the TI Slaves. More...
 
int tdGetBusyStatus (int id, int port, int pflag)
 
int tdSetOutputPort (int id, unsigned int set1, unsigned int set2, unsigned int set3, unsigned int set4)
 Set (or unset) high level for the output ports on the front panel labelled as O#1-4. More...
 
unsigned int tdGetTrigCount (int id)
 Return the number of triggers received from the trigger supervisor. More...
 
unsigned int tdGetBusyCounter (int id, int busysrc)
 Return BUSY counter for specified Busy Source. More...
 
int tdPrintBusyCounters (int id)
 Print the BUSY counters for all busy sources. More...
 

Macro Definition Documentation

◆ MAX_VME_SLOTS

#define MAX_VME_SLOTS   21

This is either 20 or 21

◆ TD_ADR24_ADDRESS_MASK

#define TD_ADR24_ADDRESS_MASK   0x0000001F

◆ TD_ADR24_HARDWARE_SET_MASK

#define TD_ADR24_HARDWARE_SET_MASK   0x000003E0

◆ TD_ADR24_TM_NBLOCKS_NEEDACK1

#define TD_ADR24_TM_NBLOCKS_NEEDACK1   0xFF000000

◆ TD_ADR24_TM_NBLOCKS_READY1

#define TD_ADR24_TM_NBLOCKS_READY1   0x00FF0000

◆ TD_ADR32_BASE_MASK

#define TD_ADR32_BASE_MASK   0xFF800000

◆ TD_ADR32_MBLK_ADDR_MAX_MASK

#define TD_ADR32_MBLK_ADDR_MAX_MASK   0x000003FE

◆ TD_ADR32_MBLK_ADDR_MIN_MASK

#define TD_ADR32_MBLK_ADDR_MIN_MASK   0x003FC000

◆ TD_BLOCKBUFFER_BLOCKS_NEEDACK_MASK

#define TD_BLOCKBUFFER_BLOCKS_NEEDACK_MASK   0xFF000000

◆ TD_BLOCKBUFFER_BLOCKS_READY_MASK

#define TD_BLOCKBUFFER_BLOCKS_READY_MASK   0x0000FF00

◆ TD_BLOCKBUFFER_BUFFERLEVEL_MASK

#define TD_BLOCKBUFFER_BUFFERLEVEL_MASK   0x0000FFFF

Referenced by tdSetBlockBufferLevel().

◆ TD_BLOCKLEVEL_MASK

#define TD_BLOCKLEVEL_MASK   0x000000FF

Referenced by tdSetBlockLevel(), and tdStatus().

◆ TD_BLOCKSTATUS_NBLOCKS_NEEDACK0

#define TD_BLOCKSTATUS_NBLOCKS_NEEDACK0   0x0000FF00

◆ TD_BLOCKSTATUS_NBLOCKS_NEEDACK1

#define TD_BLOCKSTATUS_NBLOCKS_NEEDACK1   0xFF000000

◆ TD_BLOCKSTATUS_NBLOCKS_READY0

#define TD_BLOCKSTATUS_NBLOCKS_READY0   0x000000FF

◆ TD_BLOCKSTATUS_NBLOCKS_READY1

#define TD_BLOCKSTATUS_NBLOCKS_READY1   0x00FF0000

◆ TD_BOARDID_CRATEID_MASK

#define TD_BOARDID_CRATEID_MASK   0x000000FF

Referenced by tdStatus().

◆ TD_BOARDID_GEOADR_MASK

#define TD_BOARDID_GEOADR_MASK   0x00001F00

Referenced by tdInit().

◆ TD_BOARDID_PROD_MASK

#define TD_BOARDID_PROD_MASK   0x00FF0000

◆ TD_BOARDID_TYPE_MASK

#define TD_BOARDID_TYPE_MASK   0xFF000000

Referenced by tdInit().

◆ TD_BOARDID_TYPE_TD

#define TD_BOARDID_TYPE_TD   0x7D00

Referenced by tdInit().

◆ TD_BOARDID_TYPE_TI

#define TD_BOARDID_TYPE_TI   0x7100

◆ TD_BOARDID_TYPE_TIDS

#define TD_BOARDID_TYPE_TIDS   0x71D5

◆ TD_BOARDID_TYPE_TS

#define TD_BOARDID_TYPE_TS   0x7500

◆ TD_BUSY_HFBR1

#define TD_BUSY_HFBR1   (1<<8)

◆ TD_BUSY_HFBR2

#define TD_BUSY_HFBR2   (1<<9)

Referenced by tdGStatus(), and tdStatus().

◆ TD_BUSY_HFBR3

#define TD_BUSY_HFBR3   (1<<10)

Referenced by tdGStatus(), and tdStatus().

◆ TD_BUSY_HFBR4

#define TD_BUSY_HFBR4   (1<<11)

Referenced by tdGStatus(), and tdStatus().

◆ TD_BUSY_HFBR5

#define TD_BUSY_HFBR5   (1<<12)

Referenced by tdGStatus(), and tdStatus().

◆ TD_BUSY_HFBR6

#define TD_BUSY_HFBR6   (1<<13)

Referenced by tdGStatus(), and tdStatus().

◆ TD_BUSY_HFBR7

#define TD_BUSY_HFBR7   (1<<14)

Referenced by tdGStatus(), and tdStatus().

◆ TD_BUSY_HFBR8

#define TD_BUSY_HFBR8   (1<<15)

Referenced by tdGStatus(), and tdStatus().

◆ TD_BUSY_HFBR_MASK

#define TD_BUSY_HFBR_MASK   0x0000FF00

Referenced by tdResetSlaveConfig().

◆ TD_BUSY_LOOPBACK

#define TD_BUSY_LOOPBACK   (1<<7)

Referenced by tdGStatus(), and tdStatus().

◆ TD_BUSY_MONITOR_FIBER_BUSY

#define TD_BUSY_MONITOR_FIBER_BUSY (   i)    (1<<(23+i))

Referenced by tdGetBusyStatus(), and tdSlaveStatus().

◆ TD_BUSY_MONITOR_HFBR1

#define TD_BUSY_MONITOR_HFBR1   (1<<24)

Referenced by tdGStatus(), and tdStatus().

◆ TD_BUSY_MONITOR_HFBR2

#define TD_BUSY_MONITOR_HFBR2   (1<<25)

Referenced by tdGStatus(), and tdStatus().

◆ TD_BUSY_MONITOR_HFBR3

#define TD_BUSY_MONITOR_HFBR3   (1<<26)

Referenced by tdGStatus(), and tdStatus().

◆ TD_BUSY_MONITOR_HFBR4

#define TD_BUSY_MONITOR_HFBR4   (1<<27)

Referenced by tdGStatus(), and tdStatus().

◆ TD_BUSY_MONITOR_HFBR5

#define TD_BUSY_MONITOR_HFBR5   (1<<28)

Referenced by tdGStatus(), and tdStatus().

◆ TD_BUSY_MONITOR_HFBR6

#define TD_BUSY_MONITOR_HFBR6   (1<<29)

Referenced by tdGStatus(), and tdStatus().

◆ TD_BUSY_MONITOR_HFBR7

#define TD_BUSY_MONITOR_HFBR7   (1<<30)

Referenced by tdGStatus(), and tdStatus().

◆ TD_BUSY_MONITOR_HFBR8

#define TD_BUSY_MONITOR_HFBR8   (1<<31)

Referenced by tdGStatus(), and tdStatus().

◆ TD_BUSY_MONITOR_LOOPBACK

#define TD_BUSY_MONITOR_LOOPBACK   (1<<23)

Referenced by tdGStatus(), and tdStatus().

◆ TD_BUSY_MONITOR_MASK

#define TD_BUSY_MONITOR_MASK   0xFFFF0000

◆ TD_BUSY_MONITOR_P2

#define TD_BUSY_MONITOR_P2   (1<<18)

Referenced by tdGStatus(), and tdStatus().

◆ TD_BUSY_MONITOR_TRIG_LOST

#define TD_BUSY_MONITOR_TRIG_LOST   (1<<22)

Referenced by tdGStatus(), and tdStatus().

◆ TD_BUSY_P2

#define TD_BUSY_P2   (1<<2)

Referenced by tdGStatus(), and tdStatus().

◆ TD_BUSY_SOURCEMASK

#define TD_BUSY_SOURCEMASK   0x0000FFFF

Referenced by tdSetBusySource(), and tdStatus().

◆ TD_BUSY_TRIGGER_LOCK

#define TD_BUSY_TRIGGER_LOCK   (1<<6)

◆ TD_DATAFORMAT_STATUS_WORD

#define TD_DATAFORMAT_STATUS_WORD   (1<<2)

◆ TD_DATAFORMAT_TIMING_WORD

#define TD_DATAFORMAT_TIMING_WORD   (1<<1)

◆ TD_DATAFORMAT_TWOBLOCK_PLACEHOLDER

#define TD_DATAFORMAT_TWOBLOCK_PLACEHOLDER   (1<<0)

◆ TD_FIBER_1

#define TD_FIBER_1   (1<<0)

◆ TD_FIBER_2

#define TD_FIBER_2   (1<<1)

◆ TD_FIBER_3

#define TD_FIBER_3   (1<<2)

◆ TD_FIBER_4

#define TD_FIBER_4   (1<<3)

◆ TD_FIBER_5

#define TD_FIBER_5   (1<<4)

◆ TD_FIBER_6

#define TD_FIBER_6   (1<<5)

◆ TD_FIBER_7

#define TD_FIBER_7   (1<<6)

◆ TD_FIBER_8

#define TD_FIBER_8   (1<<7)

◆ TD_FIBER_BUSY

#define TD_FIBER_BUSY (   i)    (1<<(15+i))

Referenced by tdGetBusyStatus().

◆ TD_FIBER_BUSY_HFBR1

#define TD_FIBER_BUSY_HFBR1   (1<<16)

Referenced by tdStatus().

◆ TD_FIBER_BUSY_HFBR2

#define TD_FIBER_BUSY_HFBR2   (1<<17)

Referenced by tdStatus().

◆ TD_FIBER_BUSY_HFBR3

#define TD_FIBER_BUSY_HFBR3   (1<<18)

Referenced by tdStatus().

◆ TD_FIBER_BUSY_HFBR4

#define TD_FIBER_BUSY_HFBR4   (1<<19)

Referenced by tdStatus().

◆ TD_FIBER_BUSY_HFBR5

#define TD_FIBER_BUSY_HFBR5   (1<<20)

Referenced by tdStatus().

◆ TD_FIBER_BUSY_HFBR6

#define TD_FIBER_BUSY_HFBR6   (1<<21)

Referenced by tdStatus().

◆ TD_FIBER_BUSY_HFBR7

#define TD_FIBER_BUSY_HFBR7   (1<<22)

Referenced by tdStatus().

◆ TD_FIBER_BUSY_HFBR8

#define TD_FIBER_BUSY_HFBR8   (1<<23)

Referenced by tdStatus().

◆ TD_FIBER_CONNECTED_1

#define TD_FIBER_CONNECTED_1   (1<<16)

◆ TD_FIBER_CONNECTED_2

#define TD_FIBER_CONNECTED_2   (1<<17)

◆ TD_FIBER_CONNECTED_3

#define TD_FIBER_CONNECTED_3   (1<<18)

◆ TD_FIBER_CONNECTED_4

#define TD_FIBER_CONNECTED_4   (1<<19)

◆ TD_FIBER_CONNECTED_5

#define TD_FIBER_CONNECTED_5   (1<<20)

◆ TD_FIBER_CONNECTED_6

#define TD_FIBER_CONNECTED_6   (1<<21)

◆ TD_FIBER_CONNECTED_7

#define TD_FIBER_CONNECTED_7   (1<<22)

◆ TD_FIBER_CONNECTED_8

#define TD_FIBER_CONNECTED_8   (1<<23)

◆ TD_FIBER_CONNECTED_MASK

#define TD_FIBER_CONNECTED_MASK   0x00FF0000

Referenced by tdGetConnectedFiberMask().

◆ TD_FIBER_CONNECTED_TI

#define TD_FIBER_CONNECTED_TI (   x)    (1<<(x+15))

Referenced by tdGStatus(), tdSlaveStatus(), and tdStatus().

◆ TD_FIBER_ENABLED

#define TD_FIBER_ENABLED (   x)    (1<<(x+1))

◆ TD_FIBER_MASK

#define TD_FIBER_MASK   0x000000FF

Referenced by tdGStatus(), and tdStatus().

◆ TD_FIBER_TRIGSRC_ENABLED_1

#define TD_FIBER_TRIGSRC_ENABLED_1   (1<<24)

◆ TD_FIBER_TRIGSRC_ENABLED_2

#define TD_FIBER_TRIGSRC_ENABLED_2   (1<<25)

◆ TD_FIBER_TRIGSRC_ENABLED_3

#define TD_FIBER_TRIGSRC_ENABLED_3   (1<<26)

◆ TD_FIBER_TRIGSRC_ENABLED_4

#define TD_FIBER_TRIGSRC_ENABLED_4   (1<<27)

◆ TD_FIBER_TRIGSRC_ENABLED_5

#define TD_FIBER_TRIGSRC_ENABLED_5   (1<<28)

◆ TD_FIBER_TRIGSRC_ENABLED_6

#define TD_FIBER_TRIGSRC_ENABLED_6   (1<<29)

◆ TD_FIBER_TRIGSRC_ENABLED_7

#define TD_FIBER_TRIGSRC_ENABLED_7   (1<<30)

◆ TD_FIBER_TRIGSRC_ENABLED_8

#define TD_FIBER_TRIGSRC_ENABLED_8   (1<<31)

◆ TD_FIBER_TRIGSRC_ENABLED_MASK

#define TD_FIBER_TRIGSRC_ENABLED_MASK   0xFF000000

◆ TD_FIBER_TRIGSRC_ENABLED_TI

#define TD_FIBER_TRIGSRC_ENABLED_TI (   x)    (1<<(x+23))

Referenced by tdGStatus(), tdSlaveStatus(), and tdStatus().

◆ TD_FIBERALIGNMENT_HFBR1_IODELAY_MASK

#define TD_FIBERALIGNMENT_HFBR1_IODELAY_MASK   0x000000FF

◆ TD_FIBERALIGNMENT_HFBR1_SYNCDELAY_MASK

#define TD_FIBERALIGNMENT_HFBR1_SYNCDELAY_MASK   0x0000FF00

◆ TD_FIBERALIGNMENT_HFBR5_IODELAY_MASK

#define TD_FIBERALIGNMENT_HFBR5_IODELAY_MASK   0x00FF0000

◆ TD_FIBERALIGNMENT_HFBR5_SYNCDELAY_MASK

#define TD_FIBERALIGNMENT_HFBR5_SYNCDELAY_MASK   0xFF000000

◆ TD_FIBERLATENCYMEASUREMENT_CARRYCHAIN_MASK

#define TD_FIBERLATENCYMEASUREMENT_CARRYCHAIN_MASK   0x0000FFFF

◆ TD_FIBERLATENCYMEASUREMENT_DATA_MASK

#define TD_FIBERLATENCYMEASUREMENT_DATA_MASK   0xFF000000

◆ TD_FIBERLATENCYMEASUREMENT_IODELAY_MASK

#define TD_FIBERLATENCYMEASUREMENT_IODELAY_MASK   0x00FF0000

◆ TD_FIRMWARE_ID_MASK

#define TD_FIRMWARE_ID_MASK   0xFFFF0000

Referenced by tdInit().

◆ TD_FIRMWARE_MAJOR_VERSION_MASK

#define TD_FIRMWARE_MAJOR_VERSION_MASK   0x00000FF0

Referenced by tdInit().

◆ TD_FIRMWARE_TYPE_MASK

#define TD_FIRMWARE_TYPE_MASK   0x0000F000

Referenced by tdInit().

◆ TD_FIRMWARE_TYPE_P

#define TD_FIRMWARE_TYPE_P   3

◆ TD_FIRMWARE_TYPE_PROD

#define TD_FIRMWARE_TYPE_PROD   1

◆ TD_FIRWMARE_MINOR_VERSION_MASK

#define TD_FIRWMARE_MINOR_VERSION_MASK   0x0000000F

Referenced by tdInit().

◆ TD_I2C_8BIT_DATA_MASK

#define TD_I2C_8BIT_DATA_MASK   0x000000ff

◆ TD_I2C_DATA_MASK

#define TD_I2C_DATA_MASK   0x0000ffff

◆ TD_ID_BLOCKLEVEL_MASK

#define TD_ID_BLOCKLEVEL_MASK   0x00FF0000

◆ TD_ID_CRATEID_MASK

#define TD_ID_CRATEID_MASK   0x0000FF00

Referenced by tdGetCrateID(), and tdSlaveStatus().

◆ TD_ID_TRIGSRC_ENABLE_MASK

#define TD_ID_TRIGSRC_ENABLE_MASK   0x000000FF

Referenced by tdGetPortTrigSrcEnabled().

◆ TD_INIT_NO_INIT

#define TD_INIT_NO_INIT   (1<<0)

Referenced by tdInit().

◆ TD_INIT_SKIP_FIRMWARE_CHECK

#define TD_INIT_SKIP_FIRMWARE_CHECK   (1<<2)

Referenced by tdInit().

◆ TD_INIT_USE_ADDR_LIST

#define TD_INIT_USE_ADDR_LIST   (1<<3)

Referenced by tdInit().

◆ TD_INT_LEVEL

#define TD_INT_LEVEL   5

◆ TD_INT_VEC

#define TD_INT_VEC   0xc8

◆ TD_INTSETUP_ENABLE

#define TD_INTSETUP_ENABLE   (1<<16)

◆ TD_INTSETUP_LEVEL_MASK

#define TD_INTSETUP_LEVEL_MASK   0x00000F00

◆ TD_INTSETUP_VECTOR_MASK

#define TD_INTSETUP_VECTOR_MASK   0x000000FF

◆ TD_MAX_FIBER_PORTS

#define TD_MAX_FIBER_PORTS   8

◆ TD_MAX_PORTNAME_CHARS

#define TD_MAX_PORTNAME_CHARS   20

◆ TD_MAX_VME_SLOTS

#define TD_MAX_VME_SLOTS   21

◆ TD_NBLOCKS_BLOCK_COUNT_MASK

#define TD_NBLOCKS_BLOCK_COUNT_MASK   0x00FFFFFF

◆ TD_OUTPUT_BLOCKS_READY_MASK

#define TD_OUTPUT_BLOCKS_READY_MASK   0x00FF0000

◆ TD_OUTPUT_EVENTS_IN_BLOCK_MASK

#define TD_OUTPUT_EVENTS_IN_BLOCK_MASK   0xFF000000

◆ TD_OUTPUT_MASK

#define TD_OUTPUT_MASK   0x0000FFFF

◆ TD_RESET_AUTOALIGN_HFBR1_SYNC

#define TD_RESET_AUTOALIGN_HFBR1_SYNC   (1<<11)

◆ TD_RESET_AUTOALIGN_HFBR5_SYNC

#define TD_RESET_AUTOALIGN_HFBR5_SYNC   (1<<12)

◆ TD_RESET_AUTOALIGN_P0_SYNC

#define TD_RESET_AUTOALIGN_P0_SYNC   (1<<11)

Referenced by tdAutoAlignSync().

◆ TD_RESET_BLOCK_READOUT

#define TD_RESET_BLOCK_READOUT   (1<<17)

◆ TD_RESET_BUSYACK

#define TD_RESET_BUSYACK   (1<<7)

◆ TD_RESET_CLK125

#define TD_RESET_CLK125   (1<<9)

◆ TD_RESET_CLK200

#define TD_RESET_CLK200   (1<<8)

◆ TD_RESET_CLK250

#define TD_RESET_CLK250   (1<<8)

◆ TD_RESET_FIBER_AUTO_ALIGN

#define TD_RESET_FIBER_AUTO_ALIGN   (1<<13)

◆ TD_RESET_I2C

#define TD_RESET_I2C   (1<<1)

◆ TD_RESET_IODELAY

#define TD_RESET_IODELAY   (1<<14)

Referenced by tdAutoAlignSync().

◆ TD_RESET_JTAG

#define TD_RESET_JTAG   (1<<2)

◆ TD_RESET_LATCH_TIMERS

#define TD_RESET_LATCH_TIMERS   (1<<24)

Referenced by tdLatchTimers().

◆ TD_RESET_MEASURE_LATENCY

#define TD_RESET_MEASURE_LATENCY   (1<<15)

◆ TD_RESET_MGT

#define TD_RESET_MGT   (1<<10)

Referenced by tdResetMGT().

◆ TD_RESET_MGT_RX_RESET

#define TD_RESET_MGT_RX_RESET   (1<<22)

◆ TD_RESET_RAM_WRITE

#define TD_RESET_RAM_WRITE   (1<<12)

◆ TD_RESET_SFM

#define TD_RESET_SFM   (1<<3)

◆ TD_RESET_SOFT

#define TD_RESET_SOFT   (1<<4)

◆ TD_RESET_TAKE_TOKEN

#define TD_RESET_TAKE_TOKEN   (1<<16)

◆ TD_ROCENABLE_MASK

#define TD_ROCENABLE_MASK   0x000000FF

◆ TD_ROCENABLE_ROC

#define TD_ROCENABLE_ROC (   x)    (1<<(x))

◆ TD_ROCENABLE_SYNCRESET_REQUEST_ENABLE_MASK

#define TD_ROCENABLE_SYNCRESET_REQUEST_ENABLE_MASK   0x0007FC00

◆ TD_ROCENABLE_SYNCRESET_REQUEST_MONITOR_MASK

#define TD_ROCENABLE_SYNCRESET_REQUEST_MONITOR_MASK   0x1FF00000

◆ TD_RUNNINGMODE_DISABLE

#define TD_RUNNINGMODE_DISABLE   0x0

◆ TD_RUNNINGMODE_ENABLE

#define TD_RUNNINGMODE_ENABLE   0x71

◆ TD_SLAVE_1

#define TD_SLAVE_1   (1<<1)

◆ TD_SLAVE_2

#define TD_SLAVE_2   (1<<2)

◆ TD_SLAVE_3

#define TD_SLAVE_3   (1<<3)

◆ TD_SLAVE_4

#define TD_SLAVE_4   (1<<4)

◆ TD_SLAVE_5

#define TD_SLAVE_5   (1<<5)

◆ TD_SLAVE_6

#define TD_SLAVE_6   (1<<6)

◆ TD_SLAVE_7

#define TD_SLAVE_7   (1<<7)

◆ TD_SLAVE_8

#define TD_SLAVE_8   (1<<8)

◆ TD_SUPPORTED_FIRMWARE

#define TD_SUPPORTED_FIRMWARE   0x61

Referenced by tdInit().

◆ TD_SUPPORTED_TYPE

#define TD_SUPPORTED_TYPE   TD_FIRMWARE_TYPE_P

Referenced by tdInit().

◆ TD_SYNC_FP

#define TD_SYNC_FP   (1<<3)

Referenced by tdGStatus(), and tdStatus().

◆ TD_SYNC_HFBR1

#define TD_SYNC_HFBR1   (1<<1)

Referenced by tdGStatus(), and tdStatus().

◆ TD_SYNC_HFBR5

#define TD_SYNC_HFBR5   (1<<2)

Referenced by tdGStatus(), and tdStatus().

◆ TD_SYNC_LOOPBACK

#define TD_SYNC_LOOPBACK   (1<<4)

◆ TD_SYNC_MONITOR_MASK

#define TD_SYNC_MONITOR_MASK   0xFFFF0000

◆ TD_SYNC_P0

#define TD_SYNC_P0   (1<<0)

Referenced by tdGStatus(), tdInit(), and tdStatus().

◆ TD_SYNC_SOURCEMASK

#define TD_SYNC_SOURCEMASK   0x0000FFFF

◆ TD_SYNCCOMMAND_AD9510_RESYNC

#define TD_SYNCCOMMAND_AD9510_RESYNC   0x33

◆ TD_SYNCCOMMAND_CLK250_RESYNC

#define TD_SYNCCOMMAND_CLK250_RESYNC   0x22

◆ TD_SYNCCOMMAND_GTP_STATUSB_RESET

#define TD_SYNCCOMMAND_GTP_STATUSB_RESET   0x44

◆ TD_SYNCCOMMAND_SYNCCODE_MASK

#define TD_SYNCCOMMAND_SYNCCODE_MASK   0x000000FF

◆ TD_SYNCCOMMAND_SYNCRESET

#define TD_SYNCCOMMAND_SYNCRESET   0xDD

◆ TD_SYNCCOMMAND_TRIGGER_READY_RESET

#define TD_SYNCCOMMAND_TRIGGER_READY_RESET   0xAA

Referenced by tdTriggerReadyReset().

◆ TD_SYNCCOMMAND_TRIGGERLINK_DISABLE

#define TD_SYNCCOMMAND_TRIGGERLINK_DISABLE   0x77

◆ TD_SYNCCOMMAND_TRIGGERLINK_ENABLE

#define TD_SYNCCOMMAND_TRIGGERLINK_ENABLE   0x55

◆ TD_SYNCCOMMAND_VME_CLOCKRESET

#define TD_SYNCCOMMAND_VME_CLOCKRESET   0x11

◆ TD_SYNCDELAY_MASK

#define TD_SYNCDELAY_MASK   0x0000007F

◆ TD_SYNCWIDTH_LONGWIDTH_ENABLE

#define TD_SYNCWIDTH_LONGWIDTH_ENABLE   (1<<7)

◆ TD_SYNCWIDTH_MASK

#define TD_SYNCWIDTH_MASK   0x7F

◆ TD_TRIGDELAY_TRIG1_DELAY_MASK

#define TD_TRIGDELAY_TRIG1_DELAY_MASK   0x000000FF

◆ TD_TRIGDELAY_TRIG1_WIDTH_MASK

#define TD_TRIGDELAY_TRIG1_WIDTH_MASK   0x0000FF00

◆ TD_TRIGDELAY_TRIG2_DELAY_MASK

#define TD_TRIGDELAY_TRIG2_DELAY_MASK   0x00FF0000

◆ TD_TRIGDELAY_TRIG2_WIDTH_MASK

#define TD_TRIGDELAY_TRIG2_WIDTH_MASK   0xFF000000

◆ TD_TRIGSRC_ENABLE

#define TD_TRIGSRC_ENABLE   (1<<8)

Referenced by tdStatus().

◆ TD_TRIGSRC_FPTRG

#define TD_TRIGSRC_FPTRG   (1<<3)

Referenced by tdStatus().

◆ TD_TRIGSRC_HFBR1

#define TD_TRIGSRC_HFBR1   (1<<1)

Referenced by tdStatus().

◆ TD_TRIGSRC_LOOPBACK

#define TD_TRIGSRC_LOOPBACK   (1<<2)

Referenced by tdInit(), and tdStatus().

◆ TD_TRIGSRC_MONITOR_MASK

#define TD_TRIGSRC_MONITOR_MASK   0xFFFF0000

◆ TD_TRIGSRC_P0

#define TD_TRIGSRC_P0   (1<<0)

Referenced by tdInit(), and tdStatus().

◆ TD_TRIGSRC_P2BUSY

#define TD_TRIGSRC_P2BUSY   (1<<9)

◆ TD_TRIGSRC_PART_1

#define TD_TRIGSRC_PART_1   (1<<12)

◆ TD_TRIGSRC_PART_2

#define TD_TRIGSRC_PART_2   (1<<13)

◆ TD_TRIGSRC_PART_3

#define TD_TRIGSRC_PART_3   (1<<14)

◆ TD_TRIGSRC_PART_4

#define TD_TRIGSRC_PART_4   (1<<15)

◆ TD_TRIGSRC_PULSER

#define TD_TRIGSRC_PULSER   (1<<7)

Referenced by tdStatus().

◆ TD_TRIGSRC_SOURCEMASK

#define TD_TRIGSRC_SOURCEMASK   0x0000F3FF

Referenced by tdSetTriggerSource(), and tdStatus().

◆ TD_TRIGSRC_TSINPUTS

#define TD_TRIGSRC_TSINPUTS   (1<<5)

Referenced by tdStatus().

◆ TD_TRIGSRC_TSREV2

#define TD_TRIGSRC_TSREV2   (1<<6)

Referenced by tdStatus().

◆ TD_TRIGSRC_VME

#define TD_TRIGSRC_VME   (1<<4)

Referenced by tdStatus().

◆ TD_VMECONTROL_A32

#define TD_VMECONTROL_A32   (1<<4)

◆ TD_VMECONTROL_A32M

#define TD_VMECONTROL_A32M   (1<<3)

◆ TD_VMECONTROL_BERR

#define TD_VMECONTROL_BERR   (1<<0)

◆ TD_VMECONTROL_BUFFER_DISABLE

#define TD_VMECONTROL_BUFFER_DISABLE   (1<<15)

◆ TD_VMECONTROL_ERROR_INT

#define TD_VMECONTROL_ERROR_INT   (1<<7)

◆ TD_VMECONTROL_FIRST_BOARD

#define TD_VMECONTROL_FIRST_BOARD   (1<<10)

◆ TD_VMECONTROL_I2CDEV_HACK

#define TD_VMECONTROL_I2CDEV_HACK   (1<<8)

◆ TD_VMECONTROL_LAST_BOARD

#define TD_VMECONTROL_LAST_BOARD   (1<<11)

◆ TD_VMECONTROL_MBLK

#define TD_VMECONTROL_MBLK   (1<<2)

◆ TD_VMECONTROL_TOKEN

#define TD_VMECONTROL_TOKEN   (1<<1)

◆ TD_VMECONTROL_TOKEN_HI

#define TD_VMECONTROL_TOKEN_HI   (1<<9)

Function Documentation

◆ tdGetBusyStatus()

int tdGetBusyStatus ( int  id,
int  port,
int  pflag 
)