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

errorString

This property holds the current human readable error string corresponding to the current value in the error property. It may include additional information such as failure reasons or locations.

› Type:String
› Signal:errorStringChanged()
› Attributes:Readonly

value

This property holds the last polled ADC value.

› Type:UnsignedInteger
› Signal:valueChanged()
› Attributes:Readonly, Requires Polling

Methods

pollValue()

This method polls the value property. It is called automatically when using a Polling property modifier on this property and usually does not have to be called manually.

Signals

errorOccurred()

This signal is emitted whenever an error has occurred, regardless of whether the error property has changed or not. In contrast to the change notification signal of the error property this signal is also emitted several times if a certain error occurs several times in succession.

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)
        }
    }
}