Details | Last modification | View Log | SVN | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 29 | jimmy | 1 | #ifndef termio_h_ |
| 2 | #define termio_h_ |
||
| 3 | |||
| 4 | #include <avr/pgmspace.h> |
||
| 5 | |||
| 6 | /* |
||
| 7 | ** high byte error return code of term_getc() - from P. Fleury's lib. |
||
| 8 | */ |
||
| 9 | #define TERM_FRAME_ERROR 0x0800 /* Framing Error by UART */ |
||
| 10 | #define TERM_OVERRUN_ERROR 0x0400 /* Overrun condition by UART */ |
||
| 11 | #define TERM_BUFFER_OVERFLOW 0x0200 /* receive ringbuffer overflow */ |
||
| 12 | #define TERM_NO_DATA 0x0100 /* no receive data available */ |
||
| 13 | |||
| 14 | uint16_t term_getc(void); |
||
| 15 | |||
| 16 | void term_putc(const char c); |
||
| 17 | void term_puts(const char *tx_data); |
||
| 18 | void term_puts_p(const char *progmem_tx_data); |
||
| 19 | void term_puti(const int num); |
||
| 20 | void term_put_cr(void); |
||
| 21 | #define term_puts_P(s) term_puts_p(PSTR(s)) |
||
| 22 | void term_puthex_byte(const uint8_t val); |
||
| 23 | void term_putbin_byte(const uint8_t val); |
||
| 24 | |||
| 25 | |||
| 26 | extern unsigned char term_timeout_flag; |
||
| 27 | |||
| 28 | #endif |