|
static bool_t | ADFIFO_RunMenu (int32_t cardIndex, int32_t module, uint32_t modid) |
| RunMenu illustrates the channel configuration and prepares the menu which will handle user command requests. Returns NAI_TRUE if the user enters the Quit Command at any point within its scope.
|
|
static void | ADFIFO_displayChannelCfg (int32_t cardIndex, int32_t module, int32_t MAX_CHANNELS) |
| AD_displayChannelCfg display each channel's settings and values for: words in fifo, high threshold, low threshold, sample delay, size of fifo, sample rate, buffer control, trigger control, and the status register.
|
|
static nai_status_t | ADFIFO_SwTrigger (int32_t paramCount, int32_t *p_params) |
| AD_SwTrigger calls the SoftwareTrigger API which causes the FIFO to start sampling.
|
|
static nai_status_t | ADFIFO_PrintSamplesInFifoSingleStepping (int32_t paramCount, int32_t *p_params) |
|
static nai_status_t | ADFIFO_PrintSamplesInFifo (int32_t paramCount, int32_t *p_params) |
|
static nai_status_t | ADFIFO_DisplayFifoStatus (int32_t paramCount, int32_t *p_params) |
| AD_DisplayFifoStatus illustrates which of the following flags have been raised: Sample Done, FIFO Full, High Limit, Low Limit, Empty.
|
|
static nai_status_t | ADFIFO_ClearFifo (int32_t paramCount, int32_t *p_params) |
| AD_ClearFifo empties the specified channel's FIFO buffer.
|
|
static nai_status_t | ADFIFO_ConfigChannel (int32_t paramCount, int32_t *p_params) |
| AD_configChannel initiates all the channels for writing and handles the user requests to configure the channels.
|
|
static void | ADFIFO_printBufferRequest () |
|
static void | ADFIFO_printTriggerCtrlRequest () |
|
static void | ADFIFO_GetSamplesInFifo (int32_t cardIndex, int32_t module, int32_t channel, uint32_t count, uint32_t *samplesInFifo) |
|
static void | ADFIFO_GetBufferControls (int32_t cardIndex, int32_t module, int32_t channel, bool_t Buffer_Controls[]) |
|
static void | ADFIFO_GetFifoReadInfo (int32_t cardIndex, int32_t module, int32_t channel, uint32_t *p_outsamplesToRead, bool_t *p_outbufferControls) |
| AD_ReadFifo handles the user request to read a certain number of samples from the FIFO.
|
|
int32_t | AD_FifoMenu (void) |
| The purpose of the AD_FifoMenu is to illustrate the methods to call in the naibrd library to perform FIFO operations with the AD modules for configuration setup and reading the channels.
|
|
static void ADFIFO_displayChannelCfg |
( |
int32_t | cardIndex, |
|
|
int32_t | module, |
|
|
int32_t | MAX_CHANNELS ) |
|
static |
AD_displayChannelCfg display each channel's settings and values for: words in fifo, high threshold, low threshold, sample delay, size of fifo, sample rate, buffer control, trigger control, and the status register.