Zephyr API Documentation
2.7.0-rc2
A Scalable Open Source RTOS
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 Sun Oct 9 2022 09:21:56 for Zephyr API Documentation by
1.9.4