The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Device::Chip::DAC75xx - common chip driver for DAC75xx-family DACs

DESCRIPTION

This Device::Chip subclass provides a base class for specific chip drivers for chips in the Texas Instruments DAC 75xx family.

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.

write_dac

   await $chip->write_dac( $dac, $powerdown );

Writes a new value for the DAC output and powerdown state.

$powerdown is optional and will default to normal if not provided. Must be one of the following four values

   normal 1k 100k hiZ

write_dac_ratio

   await $chip->write_dac_ratio( $ratio );

Writes a new value for the DAC output as a scaled ratio between 0.0 and 1.0.

AUTHOR

Paul Evans <leonerd@leonerd.org.uk>