| 1 | // This file is part of SmallBASIC |
|---|---|
| 2 | // |
| 3 | // serial I/O, driver |
| 4 | // |
| 5 | // This program is distributed under the terms of the GPL v2.0 or later |
| 6 | // Download the GNU Public License (GPL) from www.gnu.org |
| 7 | // |
| 8 | // Copyright(C) 2000 Nicholas Christopoulos |
| 9 | |
| 10 | #if !defined(_sbfs_serial_h) |
| 11 | #define _sbfs_serial_h |
| 12 | |
| 13 | #include "common/sys.h" |
| 14 | #include "common/device.h" |
| 15 | |
| 16 | int serial_open(dev_file_t *f); |
| 17 | int serial_close(dev_file_t *f); |
| 18 | int serial_write(dev_file_t *f, byte *data, uint32_t size); |
| 19 | int serial_read(dev_file_t *f, byte *data, uint32_t size); |
| 20 | uint32_t serial_length(dev_file_t *f); |
| 21 | uint32_t serial_eof(dev_file_t *f); |
| 22 | |
| 23 | #endif |
| 24 |