17 Oct 2021 23:46:56 UTC
- Distribution: Device-Chip
- Module version: 0.20
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (2)
- Testers (168 / 1 / 35)
- KwaliteeBus factor: 1
- 83.66% Coverage
- License: perl_5
- Perl: v5.26.0
- Activity24 month
- Download (33.94KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionPEVANS Paul Evans
Device::Chip::ProtocolBase::SPI- a role for implementing SPI protocols
This role (or abstract base class) provides some convenient wrapper methods for providing higher-level SPI protocol implementations, by using simpler lower-level ones. It can be used by implementation classes to help provide parts of the API.
await $protocol->write( $words );
A wrapper for "readwrite" that ignores the result.
$words = await $protocol->read( $len );
A wrapper for "readwrite" that sends unspecified data which the chip will ignore, returning the result.
This implementation currently sends all-bits-low.
A wrapper for "readwrite_no_ss" that ignores the result.
A wrapper for "readwrite_no_ss" that sends unspecified data which the chip will ignore, returning the result.
This implemention currenetly sends all-bits-low.
$words_in = await $protocol->readwrite( $words_out );
$words_in = await $protocol->write_then_read( $words_out, $len_in )
Paul Evans <email@example.com>