-
Notifications
You must be signed in to change notification settings - Fork 0
Home
- SPI bus (busio object)
- start pin (board pin object)
- reset pin (board pin object)
- SPI bus frequency (int)
None
This method sets up the ADS1248 bus for all ADCs.
- Chip select pin (board pin object)
- DRDY pin (board pin object)
- Voltage reference to be used in calculations (float or int)
ADS1248 object
This is the initialization method for an ADS1248 object, when a variable is set equal to this, the variable becomes an ADS1248 object.
- ADC (ADS1248 object)
None
The wakeup method will send the wakeup command to the ADC.
The wakeup command enables the ADC and allows for other commands to be received.
- ADC (ADS1248 object)
None
The sleep method will send the sleep command to the ADC.
The sleep command puts the ADC in a low power state, meaning it will not respond to most commands.
Note that the sleep command will not disable the internal voltage reference.
- ADC (ADS1248 object)
None
The rst method will send the reset command to the ADC.
The reset command will reset the registers to defaults and reset the digital filter.
The reset command will not reset the serial interface.
- ADC (ADS1248 object)
- Register address (int or hex)
- Number of registers to read (int)
Array of register values as integers.
The rreg method will send the rreg command to the ADC, then receive the register values and return them as an array of integers.
- ADC (ADS1248 object)
- Register address (int or hex)
- Array of data to be written (List of ints or hex)
None
The wreg method will send the wreg command to the ADC along with the provided list of register values.
- ADC (ADS1248 object)
None
The selfOffset method will send the selfocal command to the ADC.
The selfocal command initiates an internal offset calibration of the ADC.
The OFC register will store the value that will be subtracted from all future conversion results.
- ADC (ADS1248 object)
- AIN pin to be referenced to (int)
- Inputs to be measured (List of ints)
- Return calculated voltage or binary (Boolean)
Differential voltages of inputs and ref (List of floats or binary)
The fetch method will configure the ADC to measure each input in the inputs list in relation to the ref pin and then append the result to an array that will be returned after all inputs have been measured.
None
None
The wakeupAll method will send the wakeup command to all ADCs.
The wakeup command enables the ADC and allows for other commands to be received.
None
None
The sleepAll method will send the sleep command to all ADCs.
The sleep command puts the ADC in a low power state, meaning it will not respond to most commands.
Note that the sleep command will not disable the internal voltage reference.
None
None
The rstAll method will send the reset command to all ADCs.
The reset command will reset the registers to defaults and reset the digital filter.
The reset command will not reset the serial interface.
- Register address (int or hex)
- Number of registers to read (int)
Array of arrays of register values as integers.
The rregAll method will send the rreg command to all ADCs, then receive the register values and return them as an array of arrays containing register values as integers.
- Register address (int or hex)
- Array of data to be written (List of ints or hex)
None
The wregAll method will send the wreg command to all ADCs along with the provided list of register values.
None
None
The selfOffsetAll method will send the selfocal command to all ADCs.
The selfocal command initiates an internal offset calibration of the ADC.
The OFC register will store the value that will be subtracted from all future conversion results.
- AIN pin to be referenced to (int)
- Inputs to be measured (List of ints)
- Return calculated voltage or binary (Boolean)
Differential voltages of inputs and ref (List of floats or binary)
The fetchAll method will configure all ADCs to measure each input in the inputs list in relation to the ref pin and then append the result to an array that will be returned after all inputs have been measured.