Menu Toggle
v1.5.0
driver.h
1
/*
2
* Copyright (c) 2020 Raspberry Pi (Trading) Ltd.
3
*
4
* SPDX-License-Identifier: BSD-3-Clause
5
*/
6
7
#ifndef _PICO_STDIO_DRIVER_H
8
#define _PICO_STDIO_DRIVER_H
9
10
#include "
pico/stdio.h
"
11
12
struct
stdio_driver
{
13
void (*out_chars)(
const
char
*buf,
int
len);
14
void (*out_flush)(void);
15
int (*in_chars)(
char
*buf,
int
len);
16
void (*set_chars_available_callback)(void (*fn)(
void
*),
void
*param);
17
stdio_driver_t
*next;
18
#if PICO_STDIO_ENABLE_CRLF_SUPPORT
19
bool
last_ended_with_cr;
20
bool
crlf_enabled;
21
#endif
22
};
23
24
#endif
stdio_driver
Definition:
driver.h:12
stdio.h