|
Contiki 3.x
|
Generic serial I/O process header filer waits for timeout. More...
#include "contiki.h"Go to the source code of this file.
Functions | |
| int | serial_timeout_input_byte (unsigned char c) |
| Get one byte of input from the serial driver. More... | |
Variables | |
| process_event_t | serial_timeout_event_message |
| Event posted when a timeout has expired after the end of data recieving. | |
Generic serial I/O process header filer waits for timeout.
Definition in file serial-timeout.h.
| int serial_timeout_input_byte | ( | unsigned char | c | ) |
Get one byte of input from the serial driver.
This function is to be called from the actual RS232 driver to get one byte of serial data input.
For systems using low-power CPU modes, the return value of the function can be used to determine if the CPU should be woken up or not. If the function returns non-zero, the CPU should be powered up. If the function returns zero, the CPU can continue to be powered down.
| c | The data that is received. |
Definition at line 71 of file serial-timeout.c.
References process_poll(), and RTIMER_NOW.
1.8.6