Simple standard input/output (STDIO) abstraction for RIOT.
More...
Simple standard input/output (STDIO) abstraction for RIOT.
|
void | stdio_init (void) |
| initialize the module
|
|
ssize_t | stdio_read (void *buffer, size_t max_len) |
| read len bytes from stdio uart into buffer More...
|
|
ssize_t | stdio_write (const void *buffer, size_t len) |
| write len bytes from buffer into uart More...
|
|
◆ stdio_read()
ssize_t stdio_read |
( |
void * |
buffer, |
|
|
size_t |
max_len |
|
) |
| |
read len
bytes from stdio uart into buffer
- Parameters
-
[out] | buffer | buffer to read into |
[in] | max_len | nr of bytes to read |
- Returns
- nr of bytes read
-
<0 on error
◆ stdio_write()
ssize_t stdio_write |
( |
const void * |
buffer, |
|
|
size_t |
len |
|
) |
| |
write len
bytes from buffer
into uart
- Parameters
-
[in] | buffer | buffer to read from |
[in] | len | nr of bytes to write |
- Returns
- nr of bytes written
-
<0 on error