Constants¶
General¶
-
NDIGO6G12_API_VERSION 1¶
The current API version.
-
NDIGO6G12_TRIGGER_COUNT 16¶
The number of ADC and TDC triggers, including AUTO and ONE.
-
NDIGO6G12_ADC_CHANNEL_COUNT 4¶
The number of analog input channels.
-
NDIGO6G12_GATE_COUNT 4¶
The number of gating blocks.
-
NDIGO6G12_TDC_CHANNEL_COUNT 6¶
The number of high (TDC0-3) and low (TRG, GATE) resolution TDC input channels.
-
NDIGO6G12_BITSTREAM_DATE_LEN 20¶
Bitstream date format: YYYY-MM-DD hh:mm:ss
-
NDIGO6G12_CALIBRATION_DATE_LEN 20¶
Calibration date format: YYYY-MM-DD hh:mm
-
NDIGO6G12_FLASH_SIG_LEN 60¶
Length of Ndigo6G-12 flash signature
-
NDIGO6G12_FIFO_DEPTH 16374¶
ADC sample FIFO depth.
It is the maximum recording length in multiples of 5 ns.
-
NDIGO6G12_MAX_PRECURSOR 28¶
Maximum for ndigo6g12_trigger_block::precursor.
-
NDIGO6G12_MAX_MULTISHOT 65535¶
Maximum for ndigo6g12_trigger_block::multi_shot_count.
-
NDIGO6G12_MAX_AVRG_ITERATIONS 4096¶
Maximum amount of iterations.
Trigger and Gating Block Sources¶
Bitmasks for trigger sources.
Used for ndigo6g12_trigger_block::sources, ndigo6g12_gating_block::sources, ndigo6g12_tdc_gating_block::sources, and ndigo6g12_tdc_tiger_block::sources.
Defines
-
NDIGO6G12_TRIGGER_SOURCE_NONE 0x00000000¶
All trigger sources disabled.
-
NDIGO6G12_TRIGGER_SOURCE_A0 0x00000001¶
-
NDIGO6G12_TRIGGER_SOURCE_A1 0x00000002¶
-
NDIGO6G12_TRIGGER_SOURCE_B0 0x00000004¶
-
NDIGO6G12_TRIGGER_SOURCE_B1 0x00000008¶
-
NDIGO6G12_TRIGGER_SOURCE_C0 0x00000010¶
-
NDIGO6G12_TRIGGER_SOURCE_C1 0x00000020¶
-
NDIGO6G12_TRIGGER_SOURCE_D0 0x00000040¶
-
NDIGO6G12_TRIGGER_SOURCE_D1 0x00000080¶
-
NDIGO6G12_TRIGGER_SOURCE_TDC0 0x00000100¶
-
NDIGO6G12_TRIGGER_SOURCE_TDC1 0x00000200¶
-
NDIGO6G12_TRIGGER_SOURCE_TDC2 0x00000400¶
-
NDIGO6G12_TRIGGER_SOURCE_TDC3 0x00000800¶
-
NDIGO6G12_TRIGGER_SOURCE_TRG 0x00001000¶
-
NDIGO6G12_TRIGGER_SOURCE_GATE 0x00002000¶
-
NDIGO6G12_TRIGGER_SOURCE_AUTO 0x00004000¶
-
NDIGO6G12_TRIGGER_SOURCE_ONE 0x00008000¶
Trigger signal is active each clock cycle.
-
NDIGO6G12_TRIGGER_SOURCE_FPGA0 NDIGO6G12_TRIGGER_SOURCE_TRG¶
Deprecated. Alias for NDIGO6G12_TRIGGER_SOURCE_TRG.
-
NDIGO6G12_TRIGGER_SOURCE_FPGA1 NDIGO6G12_TRIGGER_SOURCE_GATE¶
Deprecated. Alias for NDIGO6G12_TRIGGER_SOURCE_GATE.
-
NDIGO6G12_TRIGGER_SOURCE_NONE 0x00000000¶
Function Return Values¶
Return codes of various functions.
All ERRORS must be positive integers, because the upper byte is used by crono_tools
Defines
-
CRONO_OK 0¶
-
CRONO_WINDRIVER_NOT_FOUND 1¶
-
CRONO_DEVICE_NOT_FOUND 2¶
-
CRONO_NOT_INITIALIZED 3¶
-
CRONO_WRONG_STATE 4¶
-
CRONO_INVALID_DEVICE 5¶
-
CRONO_BUFFER_ALLOC_FAILED 6¶
-
CRONO_TDC_NO_EDGE_FOUND 7¶
-
CRONO_INVALID_BUFFER_PARAMETERS 8¶
-
CRONO_INVALID_CONFIG_PARAMETERS 9¶
-
CRONO_WINDOW_CALIBRATION_FAILED 10¶
-
CRONO_HARDWARE_FAILURE 11¶
-
CRONO_INVALID_ADC_MODE 12¶
-
CRONO_SYNCHRONIZATION_FAILED 13¶
-
CRONO_DEVICE_OPEN_FAILED 14¶
-
CRONO_INTERNAL_ERROR 15¶
-
CRONO_CALIBRATION_FAILURE 16¶
-
CRONO_INVALID_ARGUMENTS 17¶
-
CRONO_INSUFFICIENT_DATA 18¶
-
CRONO_OK 0¶
PCIe Information¶
PCIe correctable error flags.
Only relevant when troubleshooting.
PCIe uncorrectable error flags.
Only relevant when troubleshooting.
Defines
-
CRONO_PCIE_UNC_UNDEFINED 1 << 0¶
-
CRONO_PCIE_UNC_DATA_LINK_PROTOCOL_ERROR 1 << 4¶
-
CRONO_PCIE_UNC_SURPRISE_DOWN_ERROR 1 << 5¶
-
CRONO_PCIE_UNC_POISONED_TLP 1 << 12¶
-
CRONO_PCIE_UNC_FLOW_CONTROL_PROTOCOL_ERROR 1 << 13¶
-
CRONO_PCIE_UNC_COMPLETION_TIMEOUT 1 << 14¶
-
CRONO_PCIE_UNC_COMPLETER_ABORT 1 << 15¶
-
CRONO_PCIE_UNC_UNEXPECTED_COMPLETION 1 << 16¶
-
CRONO_PCIE_UNC_RECEIVER_OVERFLOW_ERROR 1 << 17¶
-
CRONO_PCIE_UNC_MALFORMED_TLP 1 << 18¶
-
CRONO_PCIE_UNC_ECRC_ERROR 1 << 19¶
-
CRONO_PCIE_UNC_UNSUPPORED_REQUEST_ERROR 1 << 20¶
-
CRONO_PCIE_UNC_UNDEFINED 1 << 0¶