[Tinyos-devel] Proposed UART Changes

Philip Levis pal at cs.stanford.edu
Thu Jul 2 16:47:08 PDT 2009


On Jun 26, 2009, at 11:09 AM, Philip Levis wrote:

>
> 2 major changes: async operations and comments.
>
> Comments/feedback welcome.
>
> interface UartControl {

In the recent core call, Vlado suggested that

enableRx()
disableRx()
rxEnabled()

enableTx()
disableTx()
txEnabled()

be replaced by

// TOS_DUPLEX_OFF, TOS_DUPLEX_RONLY, TOS_DUPLEX_TONLY, TOS_DUPLEX_FULL
error_t setDuplexMode(tos_duplex_t d)
tos_duplex_t getDuplexMode();

Thoughts? With the enums, we can check at compile time whether a  
particular mode is supported.

Phil


More information about the Tinyos-devel mailing list