Ltc2483Adc¶
Description¶
The Ltc2483Adc object implements a driver for the I2C-based LTC2483 16 bit ∆Σ ADC. The parent of a Ltc2483Adc object has to be a corresponding I2cBus object.
› Inherits: | I2cDevice |
---|
Properties¶
error¶
This property holds the most recently occurred error or Ltc2483Adc.NoError if no error occurred. If the same error occurs multiple times this property does not change. Use the errorOccurred() signal to detect multiple occurrences of the same error.
› Type: | Error |
---|---|
› Signal: | errorChanged() |
› Attributes: | Readonly |
Methods¶
Signals¶
Enumerations¶
Error¶
This enumeration describes all errors which can occur in Ltc2483Adc objects. The most recently occurred error is stored in the error property.
Name | Value | Description |
---|---|---|
Ltc2483Adc.NoError |
0 |
No error occurred or was detected. |
Ltc2483Adc.BusNotAvailable |
1 |
Parent is not an I2cBus object. |
Ltc2483Adc.ValueReadError |
2 |
Could not read value from ADC. |
Example¶
import InCore.Foundation 2.5
import InCore.IO 2.5
Application {
FtdiI2cBus {
Ltc2483Adc {
address: 0x17
Polling on value { interval: 250 }
onValueChanged: console.log(value)
}
}
}