Interface: tos.interfaces.HPLUART
interface HPLUART
The byte-level interface to the UART, which can send and receive
simultaneously.
This interface, as it directly abstracts hardware, follows the
hardware interface convention of not maintaining state. Therefore,
some conditions that could be understood by a higher layer to be
errors execute properly; for example, one can call
txBit
when in receive mode. A higher level interface
must provide the checks for conditions such as this.
- Author:
-
Jason Hill
-
David Gay
-
Philip Levis
Commands
command result_t init()
command result_t put(uint8_t data)
command result_t stop()
Events
event result_t get(uint8_t data)
event result_t putDone()
Commands - Details
init
command result_t init()
- Returns:
-
SUCCESS always.
put
command result_t put(uint8_t data)
- Returns:
-
SUCCESS always.
stop
command result_t stop()
- Returns:
-
SUCCESS always
Events - Details
get
event result_t get(uint8_t data)
- Returns:
-
SUCCESS always.
putDone
event result_t putDone()
- Returns:
-
SUCCESS always.