Zephyr API Documentation
3.0.0
A Scalable Open Source RTOS
3.0.0
Toggle main menu visibility
Main Page
Related Pages
Modules
Data Structures
Data Structures
Data Structure Index
Data Fields
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
Files
File List
Globals
All
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Macros
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
uart_pipe.h
Go to the documentation of this file.
1
8
/*
9
* Copyright (c) 2015 Intel Corporation
10
*
11
* SPDX-License-Identifier: Apache-2.0
12
*/
13
14
#ifndef ZEPHYR_INCLUDE_DRIVERS_CONSOLE_UART_PIPE_H_
15
#define ZEPHYR_INCLUDE_DRIVERS_CONSOLE_UART_PIPE_H_
16
17
#include <
stdlib.h
>
18
19
#ifdef __cplusplus
20
extern
"C"
{
21
#endif
22
35
typedef
uint8_t
*(*uart_pipe_recv_cb)(
uint8_t
*buf,
size_t
*
off
);
36
45
void
uart_pipe_register
(
uint8_t
*buf,
size_t
len,
uart_pipe_recv_cb
cb);
46
56
int
uart_pipe_send
(
const
uint8_t
*
data
,
int
len);
57
58
#ifdef __cplusplus
59
}
60
#endif
61
62
#endif
/* ZEPHYR_INCLUDE_DRIVERS_CONSOLE_UART_PIPE_H_ */
off
irp nz macro MOVR cc s mov cc s endm endr irp aw macro LDR aa off
Definition:
asm-macro-32-bit-gnu.h:17
uint8_t
__UINT8_TYPE__ uint8_t
Definition:
stdint.h:58
stdlib.h
data
static fdata_t data[2]
Definition:
test_fifo_contexts.c:15
uart_pipe_register
void uart_pipe_register(uint8_t *buf, size_t len, uart_pipe_recv_cb cb)
Register UART application.
uart_pipe_send
int uart_pipe_send(const uint8_t *data, int len)
Send data over UART.
uart_pipe_recv_cb
uint8_t *(* uart_pipe_recv_cb)(uint8_t *buf, size_t *off)
Received data callback.
Definition:
uart_pipe.h:35
include
drivers
console
uart_pipe.h
Generated on Mon Feb 21 2022 22:43:01 for Zephyr API Documentation by
1.9.2