Lines Matching +full:adc +full:- +full:sample +full:- +full:hold +full:- +full:time

1 /* SPDX-License-Identifier: GPL-2.0+ */
6 * COMEDI - Linux Control and Measurement Device Interface
10 * Copyright (C) 2002-2004 Sensoray Co., Inc.
24 * Number of extended-capability
36 #define S626_RANGE_5V 0x10 /* +/-5V range */
37 #define S626_RANGE_10V 0x00 /* +/-10V range */
39 #define S626_EOPL 0x80 /* End of ADC poll list marker. */
60 * ADC DMA buffer must hold 16 samples,
65 * sample.
107 * (used by ADC).
122 * ADC's RPS program.
141 #define S626_SBA_RPS_A0 0x27 /* Time of RPS0 busy, in PCI clocks. */
180 * Shut down all MC1-controlled
198 #define S626_MC2_RPSSIG0 0x0800 /* RPS signal 0 (ADC RPS busy). */
200 #define S626_MC2_ADC_RPS S626_MC2_RPSSIG0 /* ADC RPS busy. */
231 #define S626_P_RPS0_TOUT 0x00D4 /* RPS0 time-out. */
232 #define S626_P_RPS1_TOUT 0x00D8 /* RPS1 time-out. */
234 #define S626_P_GPIO 0x00E0 /* General-purpose I/O. */
253 #define S626_P_TSL1 0x0180 /* Audio time slot list 1. */
254 #define S626_P_TSL2 0x01C0 /* Audio time slot list 2. */
259 #define S626_LP_GSEL 0x0084 /* Write ADC gain. */
260 #define S626_LP_ISEL 0x0086 /* Write ADC channel select. */
316 #define S626_A1_SWAP 0x00200000 /* Use big-endian for A1. */
317 #define S626_A2_SWAP 0x00100000 /* Use big-endian for A2. */
320 * WS1-WS4 = CS* outputs.
334 * Start ADC: run A1
342 #define S626_A1_CLKSRC_BCLK1 0x00000000 /* A1 bit rate = BCLK1 (ADC). */
359 * active-low bits.
385 /* Select parallel-to-serial converter's data source: */
414 * then tri-state.
429 * Worst case time, in msec,
478 /* 4-bit field that specifies DEBI timeout value in PCI clock cycles: */
484 /* 2-bit field that specifies Endian byte lane steering: */
486 * Straight - don't swap any
489 #define S626_DEBI_CFG_SWAP_2 0x00100000 /* 2-byte swap (Motorola). */
490 #define S626_DEBI_CFG_SWAP_4 0x00200000 /* 4-byte swap. */
493 * 16-bit cycles.
596 /* Sanity-check limits for parameters. */
612 #define S626_MAKE(x, w, p) (((x) & ((1 << (w)) - 1)) << (p))
613 #define S626_UNMAKE(v, w, p) (((v) >> (p)) & ((1 << (w)) - 1))