xpci3xxx
1.00.00
|
Macros | |
#define | CMD_xpci3xxx_GetHardwareInformation _IOR(xpci3xxx_MAGIC, 1,long) |
Returns the informations of base address, IRQ to the user. More... | |
#define | CMD_xpci3xxx_TestInterrupt _IOR(xpci3xxx_MAGIC, 2,long) |
Retrieve information about the older event in the event FIFO. More... | |
#define | CMD_xpci3xxx_SetTTLPortConfiguration _IOR(xpci3xxx_MAGIC, 3,long) |
Configures the bidirectional TTL I/O. More... | |
#define | CMD_xpci3xxx_ReadEepromHeader_SerialNumber _IOR(xpci3xxx_MAGIC, 4,long) |
Read the serial number from the Eeprom Header. More... | |
#define | CMD_xpci3xxx_GetFirmwareVersion _IOR(xpci3xxx_MAGIC, 5,long) |
Read the firmware version from the FPGA. More... | |
#define CMD_xpci3xxx_GetFirmwareVersion _IOR(xpci3xxx_MAGIC, 5,long) |
Read the firmware version from the FPGA.
[out] | uint32_t | arg Firmware version of the board |
0 | Success |
-1 | Error |
Definition at line 428 of file xpci3xxx.h.
#define CMD_xpci3xxx_GetHardwareInformation _IOR(xpci3xxx_MAGIC, 1,long) |
Returns the informations of base address, IRQ to the user.
[out] | (struct | xpci3xxx_USER_str_BoardInformations) |
Definition at line 349 of file xpci3xxx.h.
#define CMD_xpci3xxx_ReadEepromHeader_SerialNumber _IOR(xpci3xxx_MAGIC, 4,long) |
Read the serial number from the Eeprom Header.
[out] | uint32_t | arg Serial Number of the board |
0 | Success |
-1 | Error |
Definition at line 419 of file xpci3xxx.h.
#define CMD_xpci3xxx_SetTTLPortConfiguration _IOR(xpci3xxx_MAGIC, 3,long) |
Configures the bidirectional TTL I/O.
TTL I/O are grouped in three ports:
This command allows to configure each TTL I/O of port 3 in either input or output.
[in] | uint8_t*arg | = 0 input (default) | 1 : output |
0 | : Success |
1 | : Internal error |
2 | : TTL functionality not supported |
Definition at line 410 of file xpci3xxx.h.
#define CMD_xpci3xxx_TestInterrupt _IOR(xpci3xxx_MAGIC, 2,long) |
Retrieve information about the older event in the event FIFO.
Events such as interrupts are stored in a FIFO of size ADDIDATA_MAX_EVENT_COUNTER. This function retrieve the older information present in the FIFO and frees the corresponding slot.
[out] | uint32_t[1 | + ADDIDATA_MAX_AI + 1 + ADDIDATA_MAX_INTERRUPT_ANALOG_INPUT_VALUE] |
index 0 of the array contains the source of the interrupt. It may take the following values:
0xfffffffe FIFO is Empty 0xffffffff FIFO is Full 0x1 Analog input with DMA 0x2 Analog input without DMA 0x4 Analog input FIFO Overflow 0x10 TimerCounterWatchdog 0 0x20 TimerCounterWatchdog 1 0x40 TimerCounterWatchdog 2 0x100 TimerCounterWatchdog 0 0x200 TimerCounterWatchdog 1 0x400 TimerCounterWatchdog 2 0x1000 TimerCounterWatchdog 0 0x2000 TimerCounterWatchdog 1 0x4000 TimerCounterWatchdog 2
If the interrupt has been generated by analog input, without DMA (0x2), then the array index from 1 to (ADDIDATA_MAX_AI+1) is filled with the values acquired. Only the indexes corresponding to actual inputs are significant.
If the interrupt has been generated by analog input using DMA (0x1), then the array index from (ADDIDATA_MAX_AI+2) to (ADDIDATA_MAX_AI+2+ADDIDATA_MAX_INTERRUPT_ANALOG_INPUT_VALUE) is filled with the values acquired. Only the indexes corresponding to actual inputs are significant.
0 | success |
-1 | an error happened and errno is set appropriately. |
Definition at line 388 of file xpci3xxx.h.