The Perl and Raku Conference 2025: Greenville, South Carolina - June 27-29 Learn more

NAME

Device::Chip::LTC2400 - chip driver for LTC2400

DESCRIPTION

This Device::Chip subclass provides specific communications to a Linear Technologies LTC2400 chip attached to a computer via an SPI adapter.

The reader is presumed to be familiar with the general operation of this chip; the documentation here will not attempt to explain or define chip-specific concepts or features, only the use of this module to access them.

METHODS

The following methods documented in an await expression return Future instances.

read_adc

$reading = await $chip->read_adc;

Returns a HASH reference containing the fields obtained after a successful conversion.

The following values will be stored in the hash:

EOC => 0 | 1
EXR => 0 | 1
SIG => 0 | 1
VALUE => (a 24bit integer)

If the EOC value is false, then a conversion is still in progress and no other fields will be provided.

AUTHOR

Paul Evans <leonerd@leonerd.org.uk>