📄 dm6430lib.h
字号:
descriptor refers to a file that is open but not for read access. Please see the ioctl(2) man page for information on other possible values errno may have in this case. ******************************************************************************/int ReadStatus6430(int descriptor, u_int16_t *status_p);/******************************************************************************IsADFIFOEmpty6430() Purpose: Determine whether or not a board's A/D FIFO is empty. Parameters: descriptor ======> File descriptor from OpenBoard6430() call. ad_fifo_empty_p => Address where FIFO empty flag should be stored. If the A/D FIFO is empty, a nonzero value will be stored here. Otherwise, 0 will be stored here. Return Value: 0 Success. -1 Failure with errno set as follows: EACCES descriptor refers to a file that is open but not for read access. ******************************************************************************/int IsADFIFOEmpty6430(int descriptor, int *ad_fifo_empty_p);/******************************************************************************IsADFIFOFull6430() Purpose: Determine whether or not a board's A/D FIFO is full. Parameters: descriptor ======> File descriptor from OpenBoard6430() call. ad_fifo_empty_p => Address where FIFO full flag should be stored. If the A/D FIFO is full, a nonzero value will be stored here. Otherwise, 0 will be stored here. Return Value: 0 Success. -1 Failure with errno set as follows: EACCES descriptor refers to a file that is open but not for read access. ******************************************************************************/int IsADFIFOFull6430(int descriptor, int *ad_fifo_full_p);/******************************************************************************IsADHalted6430() Purpose: Determine whether or not a board's A/D conversion has been stopped because the sample buffer is full. Parameters: descriptor ==> File descriptor from OpenBoard6430() call. ad_halted_p => Address where A/D halted flag should be stored. If A/D conversion has been stopped, a nonzero value will be stored here. Otherwise, 0 will be stored here. Return Value: 0 Success. -1 Failure with errno set as follows: EACCES descriptor refers to a file that is open but not for read access. ******************************************************************************/int IsADHalted6430(int descriptor, int *ad_halted_p);/******************************************************************************IsADConverting6430() Purpose: Determine whether or not a board's A/D converter is converting. Parameters: descriptor ======> File descriptor from OpenBoard6430() call. ad_converting_p => Address where A/D converting flag should be stored. If A/D conversion is occurring, a nonzero value will be stored here. Otherwise, 0 will be stored here. Return Value: 0 Success. -1 Failure with errno set as follows: EACCES descriptor refers to a file that is open but not for read access. ******************************************************************************/int IsADConverting6430(int descriptor, int *ad_converting_p);/******************************************************************************IsADDMADone6430() Purpose: Determine whether or not a board's A/D DMA transfer is complete. Parameters: descriptor ====> File descriptor from OpenBoard6430() call. ad_dma_done_p => Address where A/D DMA done flag should be stored. If A/D DMA is finished, a nonzero value will be stored here. Otherwise, 0 will be stored here. Return Value: 0 Success. -1 Failure with errno set as follows: EACCES descriptor refers to a file that is open but not for read access. ******************************************************************************/int IsADDMADone6430(int descriptor, int *ad_dma_done_p);/******************************************************************************IsFirstADDMADone6430() Purpose: Determine whether or not a board's A/D first DMA transfer is complete when in dual channel DMA mode. Parameters: descriptor ==========> File descriptor from OpenBoard6430() call. ad_first dma_done_p => Address where A/D first DMA done flag should be stored. If A/D first DMA is finished, a nonzero value will be stored here. Otherwise, 0 will be stored here. Return Value: 0 Success. -1 Failure with errno set as follows: EACCES descriptor refers to a file that is open but not for read access. ******************************************************************************/int IsFirstADDMADone6430(int descriptor, int *ad_first_dma_done_p);/******************************************************************************IsBurstClockOn6430() Purpose: Determine whether or not a board's A/D burst clock gate is on. Parameters: descriptor ==========> File descriptor from OpenBoard6430() call. ad_burst_clock_on_p => Address where A/D burst clock flag should be stored. If A/D burst clock gate is on, a nonzero value will be stored here. Otherwise, 0 will be stored here. Return Value: 0 Success. -1 Failure with errno set as follows: EACCES descriptor refers to a file that is open but not for read access. ******************************************************************************/int IsBurstClockOn6430(int descriptor, int *ad_burst_clock_on_p);/******************************************************************************IsPacerClockOn6430() Purpose: Determine whether or not a board's A/D pacer clock gate is on. Parameters: descriptor ==========> File descriptor from OpenBoard6430() call. ad_pacer_clock_on_p => Address where A/D pacer clock flag should be stored. If A/D pacer clock gate is on, a nonzero value will be stored here. Otherwise, 0 will be stored here. Return Value: 0 Success. -1 Failure with errno set as follows: EACCES descriptor refers to a file that is open but not for read access. ******************************************************************************/int IsPacerClockOn6430(int descriptor, int *ad_pacer_clock_on_p);/******************************************************************************IsAboutTrigger6430() Purpose: Determine whether or not a board's A/D about trigger has occurred. Parameters: descriptor =========> File descriptor from OpenBoard6430() call. ad_about_trigger_p => Address where A/D about trigger flag should be stored. If A/D about trigger has occurred, a nonzero value will be stored here. Otherwise, 0 will be stored here. Return Value: 0 Success. -1 Failure with errno set as follows: EACCES descriptor refers to a file that is open but not for read access. ******************************************************************************/int IsAboutTrigger6430(int descriptor, int *ad_about_trigger_p);/******************************************************************************IsDigitalIRQ6430() Purpose: Determine whether or not an advanced digital mode interrupt has occurred on a board. Parameters: descriptor ==========> File descriptor from OpenBoard6430() call. digital_interrupt_p => Address where digital interrupt flag should be stored. If an advanced digital interrupt has occurred, a nonzero value will be stored here. Otherwise, 0 will be stored here. Return Value: 0 Success. -1 Failure with errno set as follows: EACCES descriptor refers to a file that is open but not for read access. ******************************************************************************/int IsDigitalIRQ6430(int descriptor, int *digital_interrupt_p);/******************************************************************************IsDINFIFOEmpty6430() Purpose: Determine whether or not a board's digital input FIFO is empty. Parameters: descriptor ===========> File descriptor from OpenBoard6430() call. digital_fifo_empty_p => Address where digital fifo empty flag should be stored. If the digital fifo is empty, a nonzero value will be stored here. Otherwise, 0 will be stored here. Return Value: 0 Success. -1 Failure with errno set as follows: EACCES descriptor refers to a file that is open but not for read access. ******************************************************************************/int IsDINFIFOEmpty6430(int descriptor, int *digital_fifo_empty_p);/******************************************************************************IsDINFIFOHalf6430() Purpose: Determine whether or not a board's digital input FIFO is half full. Parameters: descriptor ===============> File descriptor from OpenBoard6430() call. digital_fifo_half_full_p => Address where digital fifo half full flag should be stored. If the digital fifo is half full, a nonzero value will be stored here. Otherwise, 0 will be stored here. Return Value: 0 Success. -1 Failure with errno set as follows: EACCES descriptor refers to a file that is open but not for read access. ******************************************************************************/int IsDINFIFOHalf6430(int descriptor, int *digital_fifo_half_full_p);/******************************************************************************IsDINFIFOFull6430() Purpose: Determine whether or not a board's digital input FIFO is full. Parameters: descriptor ==========> File descriptor from OpenBoard6430() call. digital_fifo_full_p => Address where digital fifo full flag should be stored. If the digital fifo is full, a nonzero value will be stored here. Otherwise, 0 will be stored here. Return Value: 0 Success. -1 Failure with errno set as follows: EACCES descriptor refers to a file that is open but not for read access. ******************************************************************************/int IsDINFIFOFull6430(int descriptor, int *digital_fifo_full_p);/******************************************************************************LoadControlRegister6430() Purpose: Load a value into a board's Control Register. Parameters: descriptor => File descriptor from OpenBoard6430() call. value ======> Data to write into Control Register. Return Value: 0 Success. -1 Failure with errno set as follows: EACCES descriptor refers to a file that is open but not for write access. Please see the ioctl(2) man page for information on other possible values errno may have in this case. ******************************************************************************/int LoadControlRegister6430(int descriptor, u_int16_t value);/******************************************************************************EnableTables6430() Purpose: Enable or disable the A/D and digital tables on a board. Parameters: descriptor ===========> File descriptor from OpenBoard6430() call. Enable_AD_Table ======> Flag to indicate whether the A/D table should be enabled. A value of 0 means disable the A/D table. A nonzero value means enable the A/D table. Enable_Digital_Table => Flag to indicate whether the digital table should be enabled. A value of 0 means disable the digital table. A nonzero value means enable the digital table. Return Value: 0 Success.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -