[Tinyos-devel] Proposed UART Changes
Philip Levis
pal at cs.stanford.edu
Fri Jun 19 10:16:29 PDT 2009
On Jun 18, 2009, at 9:41 PM, Eric Decker wrote:
> So does enableRX/enableTX enable interrupts? Or does it simply set
> things up for byte send/receive etc.
>
> So is the intent something like:
>
> call xxx.enableRX()
> call UartByte.receive()
>
> call xxx.enableTX()
> call UartByte.send(uint8_t byte)
>
> eric
It's at the same level as SerialByteComm; so transmits are split-phase
operations, receives are events.
It's probably more helpful to think of the interface in terms of its
effects on interface state machines, rather than an implementation.
E.g., I would assume that disableRx() would prevent future get()
events, while disableTx() would cause put() calls to return EOFF or
some other error code.
Phil
More information about the Tinyos-devel
mailing list