On 11 February 2012 16:31, Kirk Wallace <kwall...@wallacecompany.com> wrote:
> What I am thinking about is to have two sets of components, one set for > Modbus slaves such as for VFD's, PLC's, pendants, etcetera, then a set > for ports /dev/ttyS0, S1, eth0, etcetera. The slave components create > packet data, the port components add routing and handle the port > control. I need to connect these components together. I suppose I could > use a HAL pin for each packet word, but I would need an enormous amount > of pins. I had a similar problem writing the BSPI driver for Hostmot2, though I am not sure that my solution fits here. Why not make the slaves export functions? You might find some useful pointers in the way that Seb's Hostmot2 driver manages to write to both PCI and Parallel port devices in the same software interface. -- atp The idea that there is no such thing as objective truth is, quite simply, wrong. ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers