xt-sdk 文档 v1.0.3
xt-sdk 嵌入式 SDK API 参考
载入中...
搜索中...
未找到
xt_uart.h 文件参考

XTINY UART 事件封装接口 更多...

#include "xt_task.h"
#include "xt_sys_event.h"
#include "xt_hal.h"

浏览该文件的源代码.

类型定义

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 事件封装接口

作者
your name (you@d.nosp@m.omai.nosp@m.n.com)
版本
0.1
日期
2025-07-01

SPDX-FileCopyrightText: 2025 深圳市天工聚创科技有限公司 SPDX-License-Identifier: Apache-2.0

在文件 xt_uart.h 中定义.

类型定义说明

◆ xt_uart_cb_t

UART 事件回调函数类型(复用 HAL 层定义)

在文件 xt_uart.h 第 33 行定义.

函数说明

◆ xt_uart_init()

void xt_uart_init ( void )

初始化 UART 事件模块

◆ xt_uart_setup()

void xt_uart_setup ( uint8_t uart_id,
xt_uart_cb_t cb )

配置 UART 事件监听

参数
uart_idUART 索引
cb回调函数,见 xt_uart_cb_t