Device::Chip::Adapter::UART - a Device::Chip::Adapter implementation for serial devices
Device::Chip::Adapter::UART
Device::Chip::Adapter
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 GPIO and UART protocols. The GPIO protocol wraps the modem control and handshaking lines. The UART protocol adds access to the transmit and receive lines by adding the "write" and "read" methods.
GPIO
UART
$adapter = Device::Chip::Adapter::UART->new( %args )
Returns a new instance of a Device::Chip::Adapter::UART.
Takes the following named arguments:
Path to the device node representing the UART; usually something like /dev/ttyUSB0 or /dev/ttyACM0.
The following Device::Chip::Adapter protocol types are supported
Paul Evans <leonerd@leonerd.org.uk>
To install Device::Chip::Adapter::UART, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Device::Chip::Adapter::UART
CPAN shell
perl -MCPAN -e shell install Device::Chip::Adapter::UART
For more information on module installation, please visit the detailed CPAN module installation guide.