WS63 SDK 文档
7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
at_msg.h
浏览该文件的文档.
1
7
#ifndef AT_MSG_H
8
#define AT_MSG_H
9
10
#include "
at_product.h
"
11
12
typedef
enum
{
13
AT_CMD_MSG
= 0x0,
14
AT_CMD_RESULT_MSG
= 0x1,
15
AT_CMD_INTERACTIVITY_MSG
= 0x2,
16
AT_CMD_TIMEOUT_MSG
= 0x3,
17
AT_CMD_URC_REPORT_MSG
= 0x4
18
}
at_msg_type_t
;
19
20
typedef
struct
{
21
uint16_t
channel_id
;
22
uint16_t
len
;
23
}
at_cmd_msg_t
;
24
25
typedef
struct
{
26
uint16_t
err_code
;
27
uint16_t
cmd_id
;
28
}
at_result_msg_t
;
29
30
typedef
struct
{
31
uint16_t
urc_type
;
32
}
at_urc_report_msg_t
;
33
34
typedef
struct
{
35
uint16_t
type
;
36
uint16_t
cmd_id
;
37
}
at_timeout_msg_t
;
38
39
typedef
struct
{
40
at_msg_type_t
type
;
41
union
{
42
at_cmd_msg_t
cmd
;
43
at_result_msg_t
result
;
44
at_urc_report_msg_t
urc
;
45
at_timeout_msg_t
timeout
;
46
at_cmd_msg_t
interactivity
;
47
} sub_msg;
48
}
at_msg_block_t
;
49
50
errcode_t
at_msg_send
(
at_msg_block_t
*msg);
51
52
void
at_msg_process
(
at_msg_block_t
*msg);
53
#endif
at_msg_type_t
at_msg_type_t
Definition
at_msg.h:12
AT_CMD_TIMEOUT_MSG
@ AT_CMD_TIMEOUT_MSG
Definition
at_msg.h:16
AT_CMD_URC_REPORT_MSG
@ AT_CMD_URC_REPORT_MSG
Definition
at_msg.h:17
AT_CMD_INTERACTIVITY_MSG
@ AT_CMD_INTERACTIVITY_MSG
Definition
at_msg.h:15
AT_CMD_RESULT_MSG
@ AT_CMD_RESULT_MSG
Definition
at_msg.h:14
AT_CMD_MSG
@ AT_CMD_MSG
Definition
at_msg.h:13
at_msg_send
errcode_t at_msg_send(at_msg_block_t *msg)
Definition
at_msg.c:46
at_msg_process
void at_msg_process(at_msg_block_t *msg)
Definition
at_msg.c:19
at_product.h
errcode_t
uint32_t errcode_t
Definition of error code.
Definition
errcode.h:30
at_cmd_msg_t
Definition
at_msg.h:20
at_cmd_msg_t::len
uint16_t len
Definition
at_msg.h:22
at_cmd_msg_t::channel_id
uint16_t channel_id
Definition
at_msg.h:21
at_msg_block_t
Definition
at_msg.h:39
at_msg_block_t::timeout
at_timeout_msg_t timeout
Definition
at_msg.h:45
at_msg_block_t::result
at_result_msg_t result
Definition
at_msg.h:43
at_msg_block_t::type
at_msg_type_t type
Definition
at_msg.h:40
at_msg_block_t::urc
at_urc_report_msg_t urc
Definition
at_msg.h:44
at_msg_block_t::interactivity
at_cmd_msg_t interactivity
Definition
at_msg.h:46
at_msg_block_t::cmd
at_cmd_msg_t cmd
Definition
at_msg.h:42
at_result_msg_t
Definition
at_msg.h:25
at_result_msg_t::err_code
uint16_t err_code
Definition
at_msg.h:26
at_result_msg_t::cmd_id
uint16_t cmd_id
Definition
at_msg.h:27
at_timeout_msg_t
Definition
at_msg.h:34
at_timeout_msg_t::type
uint16_t type
Definition
at_msg.h:35
at_timeout_msg_t::cmd_id
uint16_t cmd_id
Definition
at_msg.h:36
at_urc_report_msg_t
Definition
at_msg.h:30
at_urc_report_msg_t::urc_type
uint16_t urc_type
Definition
at_msg.h:31
src
middleware
utils
at
at
src
at_msg.h
由
William Goodspeed
维护 | E-mail: gongzl@stu.hebust.edu.cn | Wechat: a23333344 | ALSO CHECKOUT
WS63FLASH
!
生成于 2025年 一月 4日 星期六 17:47:12 , 为 WS63 SDK 文档使用
1.9.8