|
xt-sdk 文档 v1.0.3
xt-sdk 嵌入式 SDK API 参考
|
XTINY UART 事件封装接口 更多...
类型定义 | |
| typedef xt_hal_uart_cb_t | xt_uart_cb_t |
| UART 事件回调函数类型(复用 HAL 层定义) | |
函数 | |
| void | xt_uart_init (void) |
| 初始化 UART 事件模块 | |
| void | xt_uart_setup (uint8_t uart_id, xt_uart_cb_t cb) |
| 配置 UART 事件监听 | |
XTINY UART 事件封装接口
SPDX-FileCopyrightText: 2025 深圳市天工聚创科技有限公司 SPDX-License-Identifier: Apache-2.0
在文件 xt_uart.h 中定义.
| typedef xt_hal_uart_cb_t xt_uart_cb_t |
| void xt_uart_init | ( | void | ) |
初始化 UART 事件模块
| void xt_uart_setup | ( | uint8_t | uart_id, |
| xt_uart_cb_t | cb ) |
配置 UART 事件监听
| uart_id | UART 索引 |
| cb | 回调函数,见 xt_uart_cb_t |