Suggestion: Class interface for communication protocols

06 Aug 2011

First of all, and i'm going to keep this short... Thank you for bringing the mbed to earth :)

I'm developing a driver for the Orbital Matrix LCD's. Those LCD's can be connected by i²c / Serial / RS485 or Dallas.

While developing I noticed none of the protocols are interfaced as being communication protocol. It would be A 'nice to have' to have a constuctor where I can give A comm interface as argument type, so any communication protocol can be tossed in.

All comm. protocols currently have read & write functions so it wouldn't be hard to implement. A nice bonus to have would be A const char as public that define's the classname we are having (Cant use _name in base.h if I get the class as argument, can I?).

Regards, Henry