Rev 263 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
63 | chrv | 1 | #ifndef RS232_H |
2 | #define RS232_H |
||
3 | |||
4 | void rs232_init(void); |
||
5 | void rs232_transmit(UBYTE data); |
||
6 | |||
71 | chrv | 7 | //#define LOGENABLE |
63 | chrv | 8 | #ifdef LOGENABLE |
9 | void to_log(char* ptr); |
||
10 | #endif |
||
11 | |||
263 | chrv | 12 | /** |
13 | * ZX write to Kondratiev's rs232 registers. |
||
14 | * @param index [in] - index of Kondratiev's rs232 register |
||
15 | * @param byte [in] - data |
||
16 | */ |
||
17 | void rs232_zx_write(UBYTE index, UBYTE data); |
||
18 | |||
19 | /** |
||
20 | * ZX read from Kondratiev's rs232 registers. |
||
21 | * @return registers data |
||
22 | * @param index [in] - index of Kondratiev's rs232 register |
||
23 | */ |
||
24 | UBYTE rs232_zx_read(UBYTE index); |
||
25 | |||
374 | chrv | 26 | /** RS232 task. */ |
27 | void rs232_task(void); |
||
28 | |||
63 | chrv | 29 | #endif //RS232_H |