Interface: tos.interfaces.UartByte
interface UartByte
- Author:
-
Jonathan Hui <jhui@archedrock.com>
- Version:
-
$Revision: 1.5 $ $Date: 2008/06/04 03:00:35 $
Commands
command error_t receive(uint8_t *byte, uint8_t timeout)
command error_t send(uint8_t byte)
Commands - Details
receive
command error_t receive(uint8_t *byte, uint8_t timeout)
- Parameters:
-
'uint8_t* ONE byte' Where to place received byte.
-
timeout - How long in byte times to wait.
- Returns:
-
SUCCESS if a byte was received, FAIL if timed out.
send
command error_t send(uint8_t byte)
- Parameters:
-
byte - The byte to send.
- Returns:
-
SUCCESS if byte was sent, FAIL otherwise.