:orphan: ADS1256 ======= **From:** `Texas Instruments `_ **Class:** :py:class:`herosdevices.hardware.texas_instruments.ads1256.ADS1256` **Driver Quality Index:** alpha Interfacing the ADS1256 SPI ADC (as e.g. used on the Waveshare high-precision AD-DA board). .. tabs:: .. tab:: Arguments Bold arguments are mandatory. For more information on the listed arguments refer to the class documentation: :py:class:`herosdevices.hardware.texas_instruments.ads1256.ADS1256` If parameters appear in this list but not in the class definition, please recursively check the linked base classes for the definition of the parameter. .. list-table:: :widths: 50 50 50 100 :header-rows: 1 * - Argument - Type - Default Value - Description * - spi_bus - - 0 - Number of the SPI bus the ADS1256 is attached to * - spi_device - - 0 - Device number at the SPI bus the ADS1256 is attached to * - cs_pin - - 22 - Pin number of the chip select pin * - rst_pin - - 18 - pin number of the reset pin * - drdy_pin - - 17 - pin number of the data ready pin * - spi - - None - optional spidev device. If this is given, spi_bus and spi_device are ignored. * - gpio_device - - /dev/gpiochip0 - full path to kernel character device that holds the needed gpios. Typically "/dev/gpiochip0" * - default_gain - - ADS1256_GAIN.GAIN_1 - default gain to set when initializing the device * - default_drate - - ADS1256_DRATE.DRATE_30000SPS - default data rate to set when initializing the device .. tab:: Example JSON for BOSS The following JSON strings can be used to start a HERO device representation of :py:class:`ADS1256 ` using `BOSS `_. .. code-block:: json { "_id": "my_ADS1256", "classname": "herosdevices.hardware.texas_instruments.ads1256.ADS1256", "arguments": { "spi_bus": 0, "spi_device": 0, "cs_pin": 22, "rst_pin": 18, "drdy_pin": 17, "spi": null, "gpio_device": "/dev/gpiochip0", "default_gain": 0, "default_drate": 240 } } :sup:`generated from signature` .. tab:: Inheritance .. inheritance-diagram:: herosdevices.hardware.texas_instruments.ads1256.ADS1256