12 Jun 2020 15:24:48 UTC
- Distribution: Device-Chip-Adapter-UART
- Module version: 0.02
- Source (raw)
- Browse (raw)
- How to Contribute
- Testers (247 / 0 / 0)
- KwaliteeBus factor: 1
- 32.56% Coverage
- License: perl_5
- Activity24 month
- Download (11.12KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionPEVANS Paul Evans
Device::Chip::Adapterimplementation for serial devices
This class implements the Device::Chip::Adapter interface around a regular serial port, such as a USB UART adapter, allowing an instance of a Device::Chip driver to communicate with actual chip hardware using this adapter.
This adapter provides both the
GPIOprotocol wraps the modem control and handshaking lines. The
UARTprotocol adds access to the transmit and receive lines by adding the "write" and "read" methods.
$adapter = Device::Chip::Adapter::UART->new( %args )
Returns a new instance of a
Takes the following named arguments:
- dev => STRING
Path to the device node representing the UART; usually something like /dev/ttyUSB0 or /dev/ttyACM0.
Device::Chip::Adapterprotocol types are supported
Paul Evans <firstname.lastname@example.org>
Module Install Instructions
To install Device::Chip::Adapter::UART, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Device::Chip::Adapter::UART
For more information on module installation, please visit the detailed CPAN module installation guide.