XWOS API
4.0
XWOS C/C++ API参考手册
载入中...
搜索中...
未找到
uart.h
浏览该文件的文档.
1
21
#ifndef __xwem_vm_lua_xwlua_xwds_uart_h__
22
#define __xwem_vm_lua_xwlua_xwds_uart_h__
23
24
#include <
xwos/standard.h
>
25
#include <
xwcd/ds/uart/controller.h
>
26
#include "xwem/vm/lua/src/lauxlib.h"
27
37
struct
xwlua_uart
{
38
struct
xwds_uartc
*
uartc
;
39
xwsq_t
tik
;
40
};
41
48
void
xwlua_uart_register
(lua_State * L,
const
char
* name,
struct
xwds_uartc
* uartc);
49
55
void
xwlua_uart_unregister
(lua_State * L,
const
char
* name);
56
61
#endif
/* xwem/vm/lua/xwlua/xwds/uart.h */
xwlua_uart_register
void xwlua_uart_register(lua_State *L, const char *name, struct xwds_uartc *uartc)
注册UART控制器对象
xwlua_uart_unregister
void xwlua_uart_unregister(lua_State *L, const char *name)
删除UART控制器对象
xwsq_t
unsigned long xwsq_t
Definition
type.h:445
xwds_uartc
UART控制器
Definition
controller.h:193
xwlua_uart
XWLUA UART控制器对象
Definition
uart.h:37
xwlua_uart::tik
xwsq_t tik
Definition
uart.h:39
xwlua_uart::uartc
struct xwds_uartc * uartc
Definition
uart.h:38
controller.h
玄武设备栈:UART控制器
standard.h
XWOS的标准头文件
xwem
vm
lua
xwlua
xwds
uart.h
制作者
1.9.7