Zephyr Project API
3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
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_UART_PIPE_H_
15
#define ZEPHYR_INCLUDE_DRIVERS_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_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:88
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
zephyr
drivers
uart_pipe.h
Generated on Sun Sep 15 2024 17:01:30 for Zephyr Project API by
1.9.8