Home
last modified time | relevance | path

Searched full:bipolar (Results 1 – 25 of 59) sorted by relevance

123

/linux/Documentation/devicetree/bindings/iio/adc/
H A Dadi,ad7606.yaml185 Each channel can be configured as a bipolar differential channel.
189 Since the configuration is bipolar differential, the 'bipolar'
195 bipolar:
198 * Bipolar single-ended
200 * Bipolar differential
202 'unipolar single-ended'. So for the other configurations the 'bipolar'
204 considered a bipolar differential channel. Otherwise it is bipolar
209 - bipolar
389 bipolar;
394 bipolar;
[all …]
H A Dxilinx-xadc.txt82 * xlnx,bipolar: If set the channel is used in bipolar
121 xlnx,bipolar;
138 xlnx,bipolar;
H A Dxlnx,zynqmp-ams.yaml175 xlnx,bipolar:
179 If the set channel is used in bipolar mode.
224 xlnx,bipolar;
231 xlnx,bipolar;
H A Dmicrochip,pac1934.yaml108 bipolar;
115 bipolar;
H A Dadi,max11410.yaml107 bipolar: true
165 bipolar;
H A Dadi,ad4130.yaml79 adi,bipolar:
80 description: Specify if the device should be used in bipolar mode.
/linux/drivers/iio/adc/
H A Dad7606.c284 bool *bipolar, bool *differential) in ad7606_get_chan_config() argument
291 *bipolar = false; in ad7606_get_chan_config()
312 *bipolar = fwnode_property_read_bool(child, "bipolar"); in ad7606_get_chan_config()
325 if (*differential && !*bipolar) { in ad7606_get_chan_config()
327 "'bipolar' must be added for diff channel %d\n", in ad7606_get_chan_config()
343 bool bipolar, differential; in ad7606c_18bit_chan_scale_setup() local
353 ret = ad7606_get_chan_config(indio_dev, chan->scan_index, &bipolar, in ad7606c_18bit_chan_scale_setup()
362 /* Bipolar differential ranges start at 8 (b1000) */ in ad7606c_18bit_chan_scale_setup()
373 if (bipolar) { in ad7606c_18bit_chan_scale_setup()
377 /* Bipolar single-ended ranges start at 0 (b0000) */ in ad7606c_18bit_chan_scale_setup()
[all …]
H A Dad7124.c156 bool bipolar;
315 bool bipolar; in ad7124_find_similar_live_cfg()
332 cfg->bipolar == cfg_aux->bipolar && in ad7124_find_similar_live_cfg()
404 val = FIELD_PREP(AD7124_CONFIG_BIPOLAR, cfg->bipolar) | in ad7124_write_config()
606 if (st->channels[chan->address].cfg.bipolar) in ad7124_read_raw()
636 if (st->channels[chan->address].cfg.bipolar) in ad7124_read_raw()
695 if (st->channels[chan->address].cfg.bipolar) in ad7124_write_raw()
1063 cfg->bipolar = fwnode_property_read_bool(child, "bipolar"); in ad7124_parse_channel_config()
1089 .bipolar = true, in ad7124_parse_channel_config()
1100 * You might find it strange that a bipolar in ad7124_parse_channel_config()
H A Dad7173.c206 bool bipolar;
578 bool bipolar; in ad7173_find_live_config()
588 cfg->bipolar == cfg_aux->bipolar && in ad7173_find_live_config()
629 if (cfg->bipolar) in ad7173_load_config()
1120 *val2 = chan->scan_type.realbits - !!(ch->cfg.bipolar); in ad7173_read_raw()
1128 *val2 = chan->scan_type.realbits - ch->cfg.bipolar; in ad7173_read_raw()
1527 BIT(chan->scan_type.realbits - !!(chan_st_priv->cfg.bipolar)) in ad7173_calc_openwire_thrsh_raw()
1580 chan_st_priv->cfg.bipolar = false; in ad7173_fw_parse_channel_config()
1652 chan_st_priv->cfg.bipolar = fwnode_property_read_bool(child, "bipolar"); in ad7173_fw_parse_channel_config()
1653 if (chan_st_priv->cfg.bipolar) in ad7173_fw_parse_channel_config()
H A Dmax11410.c128 bool bipolar; member
371 FIELD_PREP(MAX11410_CTRL_UNIPOLAR_BIT, cfg.bipolar ? 0 : 1); in max11410_configure_channel()
447 if (cfg.bipolar) in max11410_get_scale()
467 if (cfg.bipolar) in max11410_read_raw()
771 cfg->bipolar = fwnode_property_read_bool(child, "bipolar"); in max11410_parse_channels()
H A Dad4695.c126 bool bipolar; member
613 val = FIELD_PREP(AD4695_REG_CONFIG_IN_MODE, cfg->bipolar ? 1 : 0); in ad4695_write_chn_cfg()
1557 chan_cfg->bipolar = fwnode_property_read_bool(child, "bipolar"); in ad4695_parse_channel_cfg()
1599 if (chan_cfg->bipolar && in ad4695_parse_channel_cfg()
1602 "bipolar mode is not available for inputs paired with REFGND (%s).\n", in ad4695_parse_channel_cfg()
1605 if (chan_cfg->bipolar) in ad4695_parse_channel_cfg()
1777 if (cfg->bipolar) { in ad4695_probe_spi_offload()
/linux/drivers/comedi/drivers/
H A Ddt2815.c22 * [2] - Voltage unipolar/bipolar configuration
24 * 1 == bipolar 5V (-5V -- +5V)
118 * options[2] Voltage unipolar/bipolar configuration
120 * 1 == bipolar 5V (-5V -- +5V)
H A Dni_daq_700.c31 * 0 for -10 to 10V bipolar
32 * 1 for -5 to 5V bipolar
33 * 2 for -2.5 to 2.5V bipolar
175 /* Bipolar Offset Binary: 0 to 4095 for -10 to +10 */ in daq700_ai_rinsn()
H A Ddas1800.c66 * Unipolar and bipolar ranges cannot be mixed in the channel/gain list.
145 BIP_RANGE(5), /* bipolar gain = 1 */
146 BIP_RANGE(1), /* bipolar gain = 10 */
147 BIP_RANGE(0.1), /* bipolar gain = 50 */
148 BIP_RANGE(0.02), /* bipolar gain = 250 */
158 BIP_RANGE(10), /* bipolar gain = 1 */
159 BIP_RANGE(5), /* bipolar gain = 2 */
160 BIP_RANGE(2.5), /* bipolar gain = 4 */
161 BIP_RANGE(1.25), /* bipolar gain = 8 */
624 "unipolar and bipolar ranges cannot be mixed in the chanlist\n"); in das1800_ai_check_chanlist()
H A Dcb_pcimdda.c25 * 5 Volt unipolar, 5V bipolar, 10 Volt unipolar or 10V bipolar.
H A Dadq12b.c32 * [1] - Analog Input unipolar/bipolar selection
34 * bipolar 0 2-3 (factory default)
H A Damplc_pci224.c133 /* (r/w) Polarity (PCI224 only, PCI234 always bipolar!). */
276 RANGE_ext(-1, 1), /* bipolar [-Vext,+Vext] */
315 RANGE_ext(-2, 2), /* bipolar [-2*Vext,+2*Vext] */
317 RANGE_ext(-1, 1), /* bipolar [-Vext,+Vext] */
402 * - bipolar: 16-bit 2's complement in pci224_ao_set_data()
926 /* Channels will be all bipolar or all unipolar. */ in pci224_ao_munge()
932 /* Bipolar */ in pci224_ao_munge()
H A Damplc_pci230.c107 * bipolar (ranges 0 to 3) or all unipolar (ranges 4 to 6). The channel
231 #define PCI230_DAC_OR_BIP PCI230_DAC_OR(1) /* Output bipolar */
310 #define PCI230_ADC_IR_BIP PCI230_ADC_IR(1) /* Input bipolar */
492 unsigned int ai_bipolar:1; /* Flag AI range is bipolar */
493 unsigned int ao_bipolar:1; /* Flag AO range is bipolar */
543 * If a bipolar range was specified, mangle it in pci230_ai_read()
564 * If a bipolar range was specified, mangle it in pci230_ao_mangle_datum()
833 * 1 => bipolar +/-10V range scale in pci230_ao_insn_write()
1316 * 1 => bipolar +/-10V range scale in pci230_ao_cmd()
1419 bool bipolar = comedi_range_is_bipolar(s, range); in pci230_ai_check_chanlist() local
[all …]
H A Daddi_apci_3501.c119 * 14-bit bipolar: 0-10V in apci3501_ao_insn_write()
283 /* Default all analog outputs to 0V (bipolar) */ in apci3501_reset()
H A Dicp_multi.c44 #define ICP_MULTI_ADC_CSR_BI BIT(4) /* Bipolar input range */
53 #define ICP_MULTI_DAC_CSR_BI BIT(4) /* Bipolar output range */
/linux/include/linux/comedi/
H A Dcomedidev.h634 * comedi_range_is_bipolar() - Test if subdevice range is bipolar
638 * Tests whether a range is bipolar by checking whether its minimum value
645 * %true if the range is bipolar.
667 * %false if the range is bipolar.
697 * comedi_chan_range_is_bipolar() - Test if channel-specific range is bipolar
702 * Tests whether a range is bipolar by checking whether its minimum value
709 * %true if the range is bipolar.
733 * %false if the range is bipolar.
755 * %true if the range is bipolar.
/linux/include/linux/platform_data/
H A Dad7791.h10 * bipolar mode.
H A Dad7793.h92 * bipolar mode.
/linux/Documentation/devicetree/bindings/iio/addac/
H A Dadi,ad74115.yaml178 adi,dac-bipolar:
368 adi,dac-bipolar;
/linux/Documentation/hwmon/
H A Dmax197.rst50 3 BIP Unipolar or Bipolar conversion mode

123