 |
Xyris
0.5
|
Go to the documentation of this file.
18 #define RS_232_COM1 0x3F8
19 #define RS_232_COM2 0x2F8
20 #define RS_232_COM3 0x3E8
21 #define RS_232_COM4 0x2E8
29 void init(uint16_t com_id);
38 size_t read(
char* buf,
size_t count);
47 size_t write(
const char* buf,
size_t count);
56 [[gnu::format (
printf, 1, 2)]]
57 int printf(
const char *format, ...);
67 [[gnu::format (
printf, 1, 0)]]
68 int vprintf(
const char* fmt, va_list args);
size_t write(const char *buf, size_t count)
Write bytes to the serial device.
size_t read(char *buf, size_t count)
Reads bytes from the serial buffer.
int vprintf(const char *fmt, va_list args)
Prints a formatted string to serial output using a va_list of arguments.
int close()
Closes the serial input buffer and frees all of the data contained within.
void init(uint16_t com_id)
Activates the RS232 serial driver.
int printf(const char *format,...)
Prints a formatted string to serial output.