[Tinyos Core WG] Serial Control Interface

Ralph Kling rkling at xbow.com
Wed Feb 7 17:25:26 PST 2007


Hi Martin,

Thanks for pointing out the TEP 113 and 117 similarities. I am
shepherding 117 and will bring this concern to the authors.

Best,

Ralph


-----Original Message-----
From: tinyos-2.0wg-bounces at Mail.Millennium.Berkeley.EDU
[mailto:tinyos-2.0wg-bounces at Mail.Millennium.Berkeley.EDU] On Behalf Of
Martin Leopold
Sent: Wednesday, February 07, 2007 4:24 PM
To: tinyos-2.0wg at Mail.Millennium.Berkeley.EDU
Subject: [Tinyos Core WG] Serial Control Interface

Hi All.
Before x-mas we talked about a serial control interface, and I was
suppose to come up with a suggestion. I believe that many UARTs are
similar enough to try and come up with a joint interface. I don't have
any particular preference, but here is one suggestion (an alternative
would be doing it the posix way and stuffing all the configurations into
a struct). Any comments would be appreciated.

On a different note I noticed one thing looking at TEP113 and TEP117 -
as far as I can tell both claim to be "the UART HIL" without mentioning
the other. Is this by intention to have two high level UART interfaces
in different TEPs?

enum ser_rate_t {
   B50,
   B75,
   ...
};

enum ser_parity_t {
...

enum ser_data_bits_t {
...

enum ser_stop_bits_t {
...

interface SerialControl {
  async command error_t setFlow(bool f);
  async command bool getFlow();

  async command error_t setRate(ser_rate_t b);
  async command ser_rate_t getRate();

  async command error_t setParity(ser_parity_t);
  async command ser_parity_t getParity();

  async command error_t setDataBits(ser_data_bits_t);
  async command ser_data_bits_t getDataBits();

  async command error_t setStopBits(ser_stop_bits_t);
  async command ser_stop_bits_t getStopBits();
}



-- 
Regards Martin Leopold.
Dept. of Computer Science, University of Copenhagen
http://www.diku.dk/~leopold



_______________________________________________
Tinyos-2.0wg mailing list
Tinyos-2.0wg at Mail.Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-2.0
wg



More information about the Tinyos-2.0wg mailing list