📄 dm7520_library.h
字号:
FIFO is not full, zero will be stored here. If the FIFO is full, a nonzero value will be stored here. Nothing is written to this memory location if the function fails. Return Value: 0 Success. -1 Failure. Please see the description of GetFifoStatus7520() for information on possible values errno may have in this case. ******************************************************************************/int IsDAC2FifoFull7520(int board, uint8_t *full_p);/******************************************************************************IsDAC2FifoHalfFull7520() Purpose: Determine whether or not a board's D/A 2 FIFO is half full. Parameters: board =======> File descriptor of board. half_full_p => Address where D/A 2 FIFO half full flag will be stored. If the FIFO is not half full, zero will be stored here. If the FIFO is half full, a nonzero value will be stored here. Nothing is written to this memory location if the function fails. Return Value: 0 Success. -1 Failure. Please see the description of GetFifoStatus7520() for information on possible values errno may have in this case. ******************************************************************************/int IsDAC2FifoHalfFull7520(int board, uint8_t *half_full_p);/******************************************************************************IsDINFifoEmpty7520() Purpose: Determine whether or not a board's high speed digital input FIFO is empty. Parameters: board ===> File descriptor of board. empty_p => Address where digital input FIFO empty flag will be stored. If the FIFO is not empty, zero will be stored here. If the FIFO is empty, a nonzero value will be stored here. Nothing is written to this memory location if the function fails. Return Value: 0 Success. -1 Failure. Please see the description of GetFifoStatus7520() for information on possible values errno may have in this case. ******************************************************************************/int IsDINFifoEmpty7520(int board, uint8_t *empty_p);/******************************************************************************IsDINFifoFull7520() Purpose: Determine whether or not a board's high speed digital input FIFO is full. Parameters: board ==> File descriptor of board. full_p => Address where digital input FIFO full flag will be stored. If the FIFO is not full, zero will be stored here. If the FIFO is full, a nonzero value will be stored here. Nothing is written to this memory location if the function fails. Return Value: 0 Success. -1 Failure. Please see the description of GetFifoStatus7520() for information on possible values errno may have in this case. ******************************************************************************/int IsDINFifoFull7520(int board, uint8_t *full_p);/******************************************************************************IsDINFifoHalfFull7520() Purpose: Determine whether or not a board's high speed digital input FIFO is half full. Parameters: board =======> File descriptor of board. half_full_p => Address where digital input FIFO half full flag will be stored. If the FIFO is not half full, zero will be stored here. If the FIFO is half full, a nonzero value will be stored here. Nothing is written to this memory location if the function fails. Return Value: 0 Success. -1 Failure. Please see the description of GetFifoStatus7520() for information on possible values errno may have in this case. ******************************************************************************/int IsDINFifoHalfFull7520(int board, uint8_t *half_full_p);/******************************************************************************LoadAcnt7520() Purpose: Load a value into a board's A/D About Counter. Parameters: board =======> File descriptor of board. num_samples => Number of samples to acquire. Return Value: 0 Success. -1 Failure. Please see the description of the internal function dm7520_writereg() for information on possible values errno may have in this case. NOTE: Because of the way the About Counter works in the hardware, the value it contains is actually one less than the number of samples. This function internally adjusts for this so that the counter is loaded correctly based upon the number of samples you wish to acquire. For example, if you wish to acquire 1000 samples, then you would pass the value 1000 into this function as the second argument. ******************************************************************************/int LoadAcnt7520(int board, uint16_t num_samples);/******************************************************************************LoadAdcnt7520() Purpose: Load a value into a board's A/D Sample Counter. Parameters: board =======> File descriptor of board. num_samples => Number of samples to acquire. Return Value: 0 Success. -1 Failure. Please see the description of the internal function dm7520_writereg() for information on possible values errno may have in this case. ******************************************************************************/int LoadAdcnt7520(int board, uint16_t num_samples);/******************************************************************************LoadDAC17520() Purpose: Load a value into a board's D/A converter 1 FIFO. Parameters: board => File descriptor of board. value => Value to write to converter. Return Value: 0 Success. -1 Failure. Please see the description of the internal function dm7520_writereg() for information on possible values errno may have in this case. NOTE: This function does not trigger an update of the converter output but merely loads a new value which will be updated when the appropriate event occurs. ******************************************************************************/int LoadDAC17520(int board, int value);/******************************************************************************LoadDAC27520() Purpose: Load a value into a board's D/A converter 2 FIFO. Parameters: board => File descriptor of board. value => Value to write to converter. Return Value: 0 Success. -1 Failure. Please see the description of the internal function dm7520_writereg() for information on possible values errno may have in this case. NOTE: This function does not trigger an update of the converter output but merely loads a new value which will be updated when the appropriate event occurs. ******************************************************************************/int LoadDAC27520(int board, int value);/******************************************************************************LoadDcnt7520() Purpose: Load a value into a board's A/D Delay Counter. Parameters: board ===> File descriptor of board. divisor => Value to load into A/D Delay Counter. Return Value: 0 Success. -1 Failure. Please see the description of the internal function dm7520_writereg() for information on possible values errno may have in this case. ******************************************************************************/int LoadDcnt7520(int board, uint16_t divisor);/******************************************************************************LoadUcnt17520() Purpose: Load a value into a board's D/A 1 Update Counter. Parameters: board ===> File descriptor of board. divisor => Value to load into Update Counter. Return Value: 0 Success. -1 Failure. Please see the description of the internal function dm7520_writereg() for information on possible values errno may have in this case. ******************************************************************************/int LoadUcnt17520(int board, uint16_t divisor);/******************************************************************************LoadUcnt27520() Purpose: Load a value into a board's D/A 2 Update Counter. Parameters: board ===> File descriptor of board. divisor => Value to load into Update Counter. Return Value: 0 Success. -1 Failure. Please see the description of the internal function dm7520_writereg() for information on possible values errno may have in this case. ******************************************************************************/int LoadUcnt27520(int board, uint16_t divisor);/******************************************************************************McBSPADControl7520() Purpose: Enable or disable A/D FIFO data send to McBSP on a board. Parameters: board ==> File descriptor of board. enable => Flag indicating whether or not data send should be enabled. A value of zero means disable A/D FIFO data send. Any other value means enable A/D FIFO data send. Return Value: 0 Success. -1 Failure. Please see the description of the internal function dm7520_writereg() for information on possible values errno may have in this case. ******************************************************************************/int McBSPADControl7520(int board, int enable);/******************************************************************************McBSPDAControl7520() Purpose: Enable or disable McBSP data write to D/A 1 and D/A 2 FIFOs on a board. Parameters: board ==> File descriptor of board. enable => Flag indicating whether or not data write should be enabled. A value of zero means disable McBSP data write. Any other value means enable McBSP data write. Return Value: 0 Success. -1 Failure. Please see the description of the internal function dm7520_writereg() for information on possible values errno may have in this case. ******************************************************************************/int McBSPDAControl7520(int board, int enable);/******************************************************************************PollDIO07520() Purpose: Return a board's digital I/O port 0 status. This status consists of: - Bit direction mask. - Digital interrupt mask. - Digital interrupt mode. - Compare Register contents. - Clock source. - Digital interrupt enabled flag. - Digital interrupt status. Parameters: board =====> File descriptor of board. direction => Address where bit direction mask will be stored. A zero in a bit position means the bit is set to input. A one in a bit position means the bit is set to output. Nothing is written to this memory location if the function fails. mask ======> Address where digital interrupt mask will be stored. A zero in a bit position means the bit can generate a digital interrupt. A one in a bit position means the bit cannot cause an interrupt. Nothing is written to this memory location if the function fails. mode ======> Address where digital interrupt mode will be stored. Zero will be stored here if digital interrupts are in event mode. One will be stored here if digital interrupts are in match mode. Nothing is written to this memory location if the function fails. compare ===> Address where Compare Register contents will be stored. Nothing is written to this memory location if the function fails. cl
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -