Device-Chip
view release on metacpan or search on metacpan
lib/Device/Chip/Adapter.pm view on Meta::CPAN
=back
=head2 readwrite
$words_in = await $spi->readwrite( $words_out );
Performs a complete SPI transaction; assert the SS pin, synchronously clock
the data given by the I<$words_out> out of the MOSI pin of the adapter while
simultaneously capturing the data coming in to the MISO pin, then release the
SS pin again. The values clocked in are eventually returned as the result of
the returned future.
=head2 write
await $spi->write( $words );
A variant of C<readwrite> where the caller does not intend to make use of the
data returned by the device, and so the adapter does not need to return it.
This may or may not make a material difference to the actual communication
with the adapter or device; it could be implemented simply by calling the
( run in 0.551 second using v1.01-cache-2.11-cpan-49f99fa48dc )