1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- #ifndef ZEPHYR_INCLUDE_DRIVERS_CONSOLE_UART_PIPE_H_
- #define ZEPHYR_INCLUDE_DRIVERS_CONSOLE_UART_PIPE_H_
- #include <stdlib.h>
- #ifdef __cplusplus
- extern "C" {
- #endif
- typedef uint8_t *(*uart_pipe_recv_cb)(uint8_t *buf, size_t *off);
- void uart_pipe_register(uint8_t *buf, size_t len, uart_pipe_recv_cb cb);
- int uart_pipe_send(const uint8_t *data, int len);
- #ifdef __cplusplus
- }
- #endif
- #endif
|