35 #define STMACH_FIFO_AES_TSLICE BIT(31)
36 #define STMACH_FIFO_AES_CH BIT(0)
38 #define STMACH_FIFO_TDC_TSLICE BIT(31)
39 #define STMACH_FIFO_TDC_CH_MASK MASK(31)
40 #define STMACH_FIFO_TDC_CH_SHIFT 0
56 bool stmachInit(uint32_t domId,
void * monbuf,
size_t monlen);
90 #define STMACH_FLUSH_OP_START 0x1
91 #define STMACH_FLUSH_OP_END 0x2
92 #define STMACH_FLUSH_OP_TOGGLE (STMACH_FLUSH_OP_START | STMACH_FLUSH_OP_END)
120 uint32_t stmachDomId ();
122 static inline uint32_t stmachDomId ()
uint32_t stmachEnabled()
Returns which state-machine channels are enabled.
bool stmachInit(uint32_t domId, void *monbuf, size_t monlen)
Initializes the state-machine with the DOM ID and the monitoring channel CPU data pointer...
bool stmachEnable(uint32_t enable)
Enables one or more STMACH channels.
static void stmachWaitForTSlices(int tslice)
Waits for at least the provided number of time-slices.
void _stmachOverflowEnd(uint32_t tdcFifo, uint32_t aesFifo)
Invoked when an AES or TDC fifo should be enabled again.
void stmachFlush(uint32_t flush, uint8_t op)
Flushes one or more state-machine channels.
void stmachMUCfg(uint32_t intervalMs)
Configure Monitor Update.
#define STMACH
State Machine base pointer.
void _stmachUpdateMonitor()
Stub function invoked when it is time to update the monitor channel.
uint32_t stmachTSliceCount()
Returns the number of timeslice IRQs since system start.
static void stmachSetRunNo(uint32_t runNo)
Sets the run-number.
void stmachFakeFull(uint32_t mask)
Debugging stuff, don't touch!
bool stmachConfig(uint32_t packSize, uint32_t duration)
Configures the stateMachine.
void _stmachOverflowBegin(uint32_t tdcFifo, uint32_t aesFifo)
Invoked when an AES or TDC fifo overflow occurs.
This file assigns all device structures to memory mapped structures.
#define CGT(A, B, BITS)
Cyclic comparison function Greater Than.
void stmachGetStCommit(uint16_t *tdc, uint16_t *aes)
Debug feature: Get TDC and AES state machine Fifo commits.