1 #ifndef _UART_PROFILE_H
2 #define _UART_PROFILE_H
3 
4 #include <aos/ble.h>
5 #include <stdio.h>
6 
7 #define YOC_UART_SERVICE_UUID UUID128_DECLARE(0x7e,0x31,0x35,0xd4,0x12,0xf3,0x11,0xe9, 0xab,0x14,0xd6,0x63,0xbd,0x87,0x3d,0x93)
8 #define YOC_UART_RX_UUID      UUID128_DECLARE(0x7e,0x31,0x35,0xd4,0x12,0xf3,0x11,0xe9,0xab,0x14,0xd6,0x63,0xbd,0x87,0x3d,0x94)
9 #define YOC_UART_TX_UUID      UUID128_DECLARE(0x7e,0x31,0x35,0xd4,0x12,0xf3,0x11,0xe9, 0xab,0x14,0xd6,0x63,0xbd,0x87,0x3d,0x95)
10 
11 #define RX_MAX_LEN 244
12 
13 typedef struct _bt_uart_send_cb {
14     void (*start)(int err, void *cb_data);
15     void (*end)(int err, void *cb_data);
16 } bt_uart_send_cb;
17 
18 //typedef void (*uart_service_init_cb)(int err);
19 typedef  int (*ble_event_cb)(ble_event_en, void *);
20 typedef  int (*uart_rx_data_cb)(const uint8_t *, int);
21 
22 typedef void *uart_handle_t;
23 
24 #endif