| 123456789101112131415161718192021 |
- #pragma once
- #include "libs/shark_libs.h"
- #include "libs/byte_queue.h"
- #define CH_START 0xF5
- #define CH_END 0xF6
- #define CH_ESC 0xF7
- #define CH_ESC_START 0x05
- #define CH_ESC_END 0x06
- #define CH_ESC_ESC 0x07
- #define SHARK_UART_TX_MEM_SIZE 512
- #define SHARK_UART_RX_MEM_SIZE 512
- void shark_uart_init(void);
- void shark_uart_tx_start(void);
- void shark_uart_tx_continue(const void *buff, u16 length);
- void shark_uart_tx_end(void);
- bool shark_uart_tx_frame(u32 efid, const void *data);
- bool shark_uart_tx_command(u8 command, const void *args, u16 length);
|