Groups | Search | Server Info | Login | Register
Groups > perl.module-authors > #3253
| Newsgroups | perl.module-authors |
|---|---|
| Date | 2015-10-21 18:54 +0100 |
| Subject | Module heirarchy naming for SPI/I²C device drivers |
| Message-ID | <20151021185438.50ac7052@shy.leonerd.org.uk> (permalink) |
| From | leonerd@leonerd.org.uk ("Paul \"LeoNerd\" Evans") |
[Multipart message — attachments visible in raw view] - view raw
[[Background
~~~~~~~~~~
I've been writing a bunch of modules to talk to specific kinds of
hardware chips (sensors, motor controllers, radio interfaces, etc...)
that are electrically SPI or I²C. There's likely hundreds or
thousands of possibles here.
Currently, they all live under the namespace
Device::BusPirate::Chip::*
because they're written to talk to the hardware device via a
particular piece of USB-attached hardware, called a Bus Pirate.
However, there's nothing specific about the operation of these SPI or
I²C devices, that relates to the Bus Pirate. In particular, there are
other computer <-> SPI or I²C adapters available, such as the GPIO
port built into a Raspberry Pi, or the FTDI FT232H chip.
]]
I'm considering how to name device drivers for talking to these
hardware chips in a way that's independent of how that chip is
ultimately connected to the computer, and provide an abstracted API
that the driver can use to communicate with the chip, regardless of
this mechanism.
Ultimately, it'd be cool to end up with lots of hardware chip drivers
on CPAN that can talk to all kinds of hardware, via whatever mechanism
people use to physically attach it.
But lets start with the name...
--
Paul "LeoNerd" Evans
leonerd@leonerd.org.uk
http://www.leonerd.org.uk/ | https://metacpan.org/author/PEVANS
Back to perl.module-authors | Previous | Next — Next in thread | Find similar
Module heirarchy naming for SPI/I²C device drivers leonerd@leonerd.org.uk ("Paul \"LeoNerd\" Evans") - 2015-10-21 18:54 +0100
Re: Module heirarchy naming for SPI/I²C device drivers mca@sanger.ac.uk (Matthew Astley) - 2015-10-22 11:39 +0100
Re: Module heirarchy naming for SPI/I²C device drivers leonerd@leonerd.org.uk ("Paul \"LeoNerd\" Evans") - 2015-10-22 12:42 +0100
Re: Module heirarchy naming for SPI/I²C device drivers leonerd@leonerd.org.uk ("Paul \"LeoNerd\" Evans") - 2015-10-22 18:15 +0100
Re: Module heirarchy naming for SPI/I²C device drivers aaron@priven.com (Aaron Priven) - 2015-10-22 12:52 -0700
Re: Module heirarchy naming for SPI/I²C device drivers dpchrist@holgerdanske.com (David Christensen) - 2015-10-22 18:20 -0700
csiph-web