Device::Chip::Adapter::LinuxKernel - A Device::Chip::Adapter implementation
Device::Chip::Adapter::LinuxKernel
Device::Chip::Adapter
This class implements the Device::Chip::Adapter interface for the LinuxKernel, allowing an instance of Device::Chip driver to communicate with the actual chip hardware by using the Linux Kernel interfaces for GPIO, I2C (SMbus), and SPI. Suitble for use on any Linux system including Raspberry PI (RPI), Beaglebone, Banana PI or any other single board computer that exposes IO via the standard Linux Kernel interfaces.
$adapter = Device::Chip::Adapter::LinuxKernel->new( %args )
Returns a new instance of a Device::Chip::Adapter::LinuxKernel.
I'm going to release a companion module to this for Raspberry PI devices. It'll automatically detect which set of hardware you're on and select the appropriate busses for you. I'll also be working to add "interrupt" support for the GPIO so that you can use poll(2) or select(2) to get a trigger on edge detection on some GPIO devices.
poll(2)
select(2)
Ryan Voots <ryan@voots.org>
Stephen Cavilia <sac+cpan@atomicradi.us>
Paul "LeoNerd" Evans <pevans@cpan.org>
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Device::Chip::Adapter::LinuxKernel, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Device::Chip::Adapter::LinuxKernel
CPAN shell
perl -MCPAN -e shell install Device::Chip::Adapter::LinuxKernel
For more information on module installation, please visit the detailed CPAN module installation guide.