1 | /* |
---|
2 | * COPYRIGHT (c) 1989-2017. |
---|
3 | * On-Line Applications Research Corporation (OAR). |
---|
4 | * |
---|
5 | * The license and distribution terms for this file may be |
---|
6 | * found in the file LICENSE in this distribution or at |
---|
7 | * http://www.rtems.org/license/LICENSE. |
---|
8 | */ |
---|
9 | |
---|
10 | #ifndef TEST_TERMIOS_UTILITIES_H |
---|
11 | #define TEST_TERMIOS_UTILITIES_H |
---|
12 | |
---|
13 | #define TX_MAX 1024 |
---|
14 | |
---|
15 | extern void open_it(void); |
---|
16 | extern void close_it(void); |
---|
17 | extern void change_iflag(const char *desc, int mask, int new); |
---|
18 | extern void change_lflag(const char *desc, int mask, int new); |
---|
19 | extern void change_oflag(const char *desc, int mask, int new); |
---|
20 | extern void change_vmin_vtime( const char *desc, int min, int time ); |
---|
21 | extern void enable_non_blocking(bool enable); |
---|
22 | extern void write_helper(int fd, const char *c); |
---|
23 | extern void read_helper(int fd, const char *expected); |
---|
24 | extern void termios_test_driver_dump_tx(const char *c); |
---|
25 | extern int termios_test_driver_read_tx(void); |
---|
26 | extern void termios_test_driver_set_rx( const void *p, size_t len ); |
---|
27 | extern void termios_test_driver_set_rx_char( char ch ); |
---|
28 | |
---|
29 | extern int Test_fd; |
---|
30 | extern uint8_t read_helper_buffer[256]; |
---|
31 | extern uint8_t Tx_Buffer[TX_MAX]; |
---|
32 | |
---|
33 | #endif /* TEST_TERMIOS_UTILITIES_H */ |
---|