Zephyr API Documentation 4.0.99
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
20extern "C" {
21#endif
22
35typedef uint8_t *(*uart_pipe_recv_cb)(uint8_t *buf, size_t *off);
36
45void uart_pipe_register(uint8_t *buf, size_t len, uart_pipe_recv_cb cb);
46
56int 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_ */
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_TYPE__ uint8_t
Definition stdint.h:88
void uart_pipe_register(uint8_t *buf, size_t len, uart_pipe_recv_cb cb)
Register UART application.
int uart_pipe_send(const uint8_t *data, int len)
Send data over UART.
uint8_t *(* uart_pipe_recv_cb)(uint8_t *buf, size_t *off)
Received data callback.
Definition uart_pipe.h:35