WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
at_wifi_ccpriv_table.h
浏览该文件的文档.
1/*
2 * Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2019-2020. All rights reserved.
3 * Description: struction of AT command and public function
4 */
5
6#if ! defined (AT_WIFI_CCPRIV_AT_CMD_TALBE_H)
7#define AT_WIFI_CCPRIV_AT_CMD_TALBE_H
8
9#include "at.h"
10typedef struct {
11 uint32_t para_map;
12 const uint8_t *para1;
13 const uint8_t *para2; /* Optional. */
14 const uint8_t *para3; /* Optional. Length: 32 */
15 const uint8_t *para4; /* Optional. Length: 32 */
16 const uint8_t *para5; /* Optional. */
18
19typedef struct {
20 uint32_t para_map;
21 const uint8_t *para1;
22 const uint8_t *para2; /* Optional. */
23 const uint8_t *para3; /* Optional. Length: 32 */
24 const uint8_t *para4; /* Optional. Length: 32 */
26
27typedef struct {
28 uint32_t para_map;
29 const uint8_t *para1; /* Length: 32 */
30 const uint8_t *para2; /* Optional. Length: 32 */
31 const uint8_t *para3; /* Optional. Length: 32 */
32 const uint8_t *para4; /* Optional. Length: 32 */
33 const uint8_t *para5; /* Optional. Length: 32 */
34 const uint8_t *para6; /* Optional. Length: 32 */
35 const uint8_t *para7; /* Optional. Length: 32 */
36 const uint8_t *para8; /* Optional. Length: 32 */
37 const uint8_t *para9; /* Optional. Length: 32 */
38 const uint8_t *para10; /* Optional. Length: 32 */
39 const uint8_t *para11; /* Optional. Length: 32 */
40 const uint8_t *para12; /* Optional. Length: 32 */
41 const uint8_t *para13; /* Optional. Length: 32 */
42 const uint8_t *para14; /* Optional. Length: 32 */
43 const uint8_t *para15; /* Optional. Length: 32 */
45
46typedef struct {
47 uint32_t para_map;
49
50typedef struct {
51 uint32_t para_map;
52 int32_t para1; /* Range: 0..1 */
54
55typedef struct {
56 uint32_t para_map;
57 const uint8_t *para1; /* Length: 32 */
58 const uint8_t *para2; /* Length: 32 */
60
61typedef struct {
62 uint32_t para_map;
63 const uint8_t *para1; /* Length: 32 */
65
66typedef struct {
67 uint32_t para_map;
68 const uint8_t *para1; /* Length: 5 */
69 const uint8_t *para2; /* Length: 5 */
70 const uint8_t *para3; /* Length: 5 */
72
73typedef struct {
74 uint32_t para_map;
75 const uint8_t *para1; /* Length: 1 */
76 const uint8_t *para2; /* Length: 6 */
78
88
89/* AT Command ALRX */
91
92/* AT Command ALTX */
94
95/* AT Command CCPRIV */
97
98/* AT Command RXINFO */
100/* AT+ARLOG */
102
103/* AT+USRINFO */
105
106/* AT+VAPINFO */
108
109/* AT+SETRPWR */
111
112/* AT+CALTONE */
114
115const uint8_t * const alrx_para1_values[] = {
116 (uint8_t *)"0",
117 (uint8_t *)"1"
118};
119const uint8_t * const alrx_para2_values[] = {
120 (uint8_t *)"0",
121 (uint8_t *)"1",
122 (uint8_t *)"2",
123 (uint8_t *)"3",
124 (uint8_t *)"4",
125 (uint8_t *)"5",
126 (uint8_t *)"6"
127};
128const uint8_t * const alrx_para5_values[] = {
129 (uint8_t *)"0",
130 (uint8_t *)"1"
131};
133 {
135 .attribute = AT_SYNTAX_ATTR_LIST_VALUE,
136 .entry.string_list = {2, alrx_para1_values},
137 .offset = offsetof(alrx_args_t, para1)
138 },
139 {
140 .type = AT_SYNTAX_TYPE_STRING,
142 .entry.string_list = {7, alrx_para2_values},
143 .offset = offsetof(alrx_args_t, para2)
144 },
145 {
146 .type = AT_SYNTAX_TYPE_STRING,
148 .entry.string.max_length = 32,
149 .offset = offsetof(alrx_args_t, para3)
150 },
151 {
152 .type = AT_SYNTAX_TYPE_STRING,
154 .entry.string.max_length = 32,
155 .offset = offsetof(alrx_args_t, para4)
156 },
157 {
158 .type = AT_SYNTAX_TYPE_STRING,
159 .last = true,
161 .entry.string_list = {2, alrx_para5_values},
162 .offset = offsetof(alrx_args_t, para5)
163 },
164};
165
166const uint8_t * const altx_para1_values[] = {
167 (uint8_t *)"0",
168 (uint8_t *)"1",
169 (uint8_t *)"2"
170};
171const uint8_t * const altx_para2_values[] = {
172 (uint8_t *)"0",
173 (uint8_t *)"1",
174 (uint8_t *)"2",
175 (uint8_t *)"3",
176 (uint8_t *)"4",
177 (uint8_t *)"5",
178 (uint8_t *)"6"
179};
181 {
183 .attribute = AT_SYNTAX_ATTR_LIST_VALUE,
184 .entry.string_list = {3, altx_para1_values},
185 .offset = offsetof(altx_args_t, para1)
186 },
187 {
188 .type = AT_SYNTAX_TYPE_STRING,
190 .entry.string_list = {7, altx_para2_values},
191 .offset = offsetof(altx_args_t, para2)
192 },
193 {
194 .type = AT_SYNTAX_TYPE_STRING,
196 .entry.string.max_length = 32,
197 .offset = offsetof(altx_args_t, para3)
198 },
199 {
200 .type = AT_SYNTAX_TYPE_STRING,
201 .last = true,
203 .entry.string.max_length = 32,
204 .offset = offsetof(altx_args_t, para4)
205 },
206};
207
209 {
212 .entry.string.max_length = 32,
213 .offset = offsetof(ccpriv_args_t, para1)
214 },
215 {
216 .type = AT_SYNTAX_TYPE_STRING,
218 .entry.string.max_length = 32,
219 .offset = offsetof(ccpriv_args_t, para2)
220 },
221 {
222 .type = AT_SYNTAX_TYPE_STRING,
224 .entry.string.max_length = 32,
225 .offset = offsetof(ccpriv_args_t, para3)
226 },
227 {
228 .type = AT_SYNTAX_TYPE_STRING,
230 .entry.string.max_length = 32,
231 .offset = offsetof(ccpriv_args_t, para4)
232 },
233 {
234 .type = AT_SYNTAX_TYPE_STRING,
236 .entry.string.max_length = 32,
237 .offset = offsetof(ccpriv_args_t, para5)
238 },
239 {
240 .type = AT_SYNTAX_TYPE_STRING,
242 .entry.string.max_length = 32,
243 .offset = offsetof(ccpriv_args_t, para6)
244 },
245 {
246 .type = AT_SYNTAX_TYPE_STRING,
248 .entry.string.max_length = 32,
249 .offset = offsetof(ccpriv_args_t, para7)
250 },
251 {
252 .type = AT_SYNTAX_TYPE_STRING,
254 .entry.string.max_length = 32,
255 .offset = offsetof(ccpriv_args_t, para8)
256 },
257 {
258 .type = AT_SYNTAX_TYPE_STRING,
260 .entry.string.max_length = 32,
261 .offset = offsetof(ccpriv_args_t, para9)
262 },
263 {
264 .type = AT_SYNTAX_TYPE_STRING,
266 .entry.string.max_length = 32,
267 .offset = offsetof(ccpriv_args_t, para10)
268 },
269 {
270 .type = AT_SYNTAX_TYPE_STRING,
272 .entry.string.max_length = 32,
273 .offset = offsetof(ccpriv_args_t, para11)
274 },
275 {
276 .type = AT_SYNTAX_TYPE_STRING,
278 .entry.string.max_length = 32,
279 .offset = offsetof(ccpriv_args_t, para12)
280 },
281 {
282 .type = AT_SYNTAX_TYPE_STRING,
284 .entry.string.max_length = 32,
285 .offset = offsetof(ccpriv_args_t, para13)
286 },
287 {
288 .type = AT_SYNTAX_TYPE_STRING,
290 .entry.string.max_length = 32,
291 .offset = offsetof(ccpriv_args_t, para14)
292 },
293 {
294 .type = AT_SYNTAX_TYPE_STRING,
295 .last = true,
297 .entry.string.max_length = 32,
298 .offset = offsetof(ccpriv_args_t, para15)
299 },
300};
301
303 {
305 .last = true,
307 .entry.int_range.min_val = 0,
308 .entry.int_range.max_val = 1,
309 .offset = offsetof(arlog_args_t, para1)
310 },
311};
312
314 {
317 .entry.string.max_length = 32,
318 .offset = offsetof(usrinfo_args_t, para1)
319 },
320 {
321 .type = AT_SYNTAX_TYPE_STRING,
322 .last = true,
323 .attribute = AT_SYNTAX_ATTR_MAX_LENGTH,
324 .entry.string.max_length = 32,
325 .offset = offsetof(usrinfo_args_t, para2)
326 },
327};
328
330 {
332 .last = true,
334 .entry.string.max_length = 32,
335 .offset = offsetof(vapinfo_args_t, para1)
336 },
337};
339 {
341 .attribute = AT_SYNTAX_ATTR_MAX_LENGTH,
342 .entry.string.max_length = 5,
343 .offset = offsetof(setrpwr_args_t, para1)
344 },
345 {
346 .type = AT_SYNTAX_TYPE_STRING,
347 .attribute = AT_SYNTAX_ATTR_MAX_LENGTH,
348 .entry.string.max_length = 5,
349 .offset = offsetof(setrpwr_args_t, para2)
350 },
351 {
352 .type = AT_SYNTAX_TYPE_STRING,
353 .last = true,
354 .attribute = AT_SYNTAX_ATTR_MAX_LENGTH,
355 .entry.string.max_length = 5,
356 .offset = offsetof(setrpwr_args_t, para3)
357 },
358};
360 {
362 .attribute = AT_SYNTAX_ATTR_MAX_LENGTH,
363 .entry.string.max_length = 1,
364 .offset = offsetof(caltone_args_t, para1)
365 },
366 {
367 .type = AT_SYNTAX_TYPE_STRING,
368 .last = true,
369 .attribute = AT_SYNTAX_ATTR_MAX_LENGTH,
370 .entry.string.max_length = 6,
371 .offset = offsetof(caltone_args_t, para2)
372 },
373};
374
376 {
377 "ALRX",
378 6,
379 0,
381 NULL,
383 NULL,
384 NULL,
385 },
386 {
387 "ALTX",
388 7,
389 0,
391 NULL,
393 NULL,
394 NULL,
395 },
396 {
397 "RXINFO",
398 9,
399 0,
400 NULL,
403 NULL,
404 NULL,
405 },
406 {
407 "ARLOG",
408 16,
409 0,
411 NULL,
413 NULL,
414 NULL,
415 },
416 {
417 "USRINFO",
418 15,
419 0,
421 NULL,
423 NULL,
424 NULL,
425 },
426 {
427 "VAPINFO",
428 14,
429 0,
431 NULL,
433 NULL,
434 NULL,
435 },
436 {
437 "SETRPWR",
438 18,
439 0,
441 NULL,
443 NULL,
444 NULL,
445 },
446 {
447 "CALTONE",
448 19,
449 0,
451 NULL,
453 NULL,
454 NULL,
455 },
456};
457
459 {
460 "CCPRIV",
461 8,
462 0,
464 NULL,
466 NULL,
467 NULL,
468 }
469};
470#endif /* AT_WIFI_CCPRIV_AT_CMD_TALBE_H */
471
const at_para_parse_syntax_t alrx_syntax[]
Definition at_wifi_ccpriv_table.h:132
const at_cmd_entry_t at_wifi_mfg_parse_table[]
Definition at_wifi_ccpriv_table.h:375
const at_para_parse_syntax_t setrpwr_syntax[]
Definition at_wifi_ccpriv_table.h:338
const at_para_parse_syntax_t ccpriv_syntax[]
Definition at_wifi_ccpriv_table.h:208
at_ret_t at_los_wifi_al_rx(const alrx_args_t *args)
Definition at_ccpriv.c:77
at_ret_t at_los_wifi_cal_tone(const caltone_args_t *args)
Definition at_ccpriv.c:170
const uint8_t *const altx_para1_values[]
Definition at_wifi_ccpriv_table.h:166
const uint8_t *const alrx_para5_values[]
Definition at_wifi_ccpriv_table.h:128
at_ret_t at_los_wifi_get_vap_info(const vapinfo_args_t *args)
Definition at_ccpriv.c:137
const at_para_parse_syntax_t altx_syntax[]
Definition at_wifi_ccpriv_table.h:180
const at_para_parse_syntax_t usrinfo_syntax[]
Definition at_wifi_ccpriv_table.h:313
const at_para_parse_syntax_t caltone_syntax[]
Definition at_wifi_ccpriv_table.h:359
at_ret_t at_los_wifi_set_rate_power(const setrpwr_args_t *args)
Definition at_ccpriv.c:159
at_ret_t at_los_wifi_get_usr_info(const usrinfo_args_t *args)
Definition at_ccpriv.c:148
at_ret_t at_los_wifi_set_arlog(const arlog_args_t *args)
Definition at_ccpriv.c:126
at_ret_t at_los_wifi_ccpriv(const ccpriv_args_t *args)
Definition at_ccpriv.c:100
const uint8_t *const altx_para2_values[]
Definition at_wifi_ccpriv_table.h:171
const at_para_parse_syntax_t arlog_syntax[]
Definition at_wifi_ccpriv_table.h:302
const uint8_t *const alrx_para2_values[]
Definition at_wifi_ccpriv_table.h:119
at_ret_t at_los_wifi_rx_info(void)
Definition at_ccpriv.c:88
const at_para_parse_syntax_t vapinfo_syntax[]
Definition at_wifi_ccpriv_table.h:329
const uint8_t *const alrx_para1_values[]
Definition at_wifi_ccpriv_table.h:115
at_ret_t at_los_wifi_al_tx(const altx_args_t *args)
Definition at_ccpriv.c:66
const at_cmd_entry_t at_wifi_ccpriv_parse_table[]
Definition at_wifi_ccpriv_table.h:458
#define NULL
Definition common_def.h:21
#define offsetof(type, member)
Definition list.h:66
at_ret_t(* at_set_func_t)(const void *arg)
声明AT命令设置函数类型。
Definition at.h:133
at_ret_t
定义AT错误码。
Definition at.h:46
@ AT_SYNTAX_ATTR_MAX_LENGTH
Definition at.h:301
@ AT_SYNTAX_ATTR_AT_MAX_VALUE
Definition at.h:293
@ AT_SYNTAX_ATTR_OPTIONAL
Definition at.h:285
@ AT_SYNTAX_ATTR_AT_MIN_VALUE
Definition at.h:289
@ AT_SYNTAX_ATTR_FIX_CASE
Definition at.h:309
@ AT_SYNTAX_ATTR_LIST_VALUE
Definition at.h:297
@ AT_SYNTAX_TYPE_STRING
Definition at.h:264
@ AT_SYNTAX_TYPE_INT
Definition at.h:263
Definition at_wifi_ccpriv_table.h:10
uint32_t para_map
Definition at_wifi_ccpriv_table.h:11
const uint8_t * para3
Definition at_wifi_ccpriv_table.h:14
const uint8_t * para5
Definition at_wifi_ccpriv_table.h:16
const uint8_t * para2
Definition at_wifi_ccpriv_table.h:13
const uint8_t * para4
Definition at_wifi_ccpriv_table.h:15
const uint8_t * para1
Definition at_wifi_ccpriv_table.h:12
Definition at_wifi_ccpriv_table.h:19
uint32_t para_map
Definition at_wifi_ccpriv_table.h:20
const uint8_t * para3
Definition at_wifi_ccpriv_table.h:23
const uint8_t * para4
Definition at_wifi_ccpriv_table.h:24
const uint8_t * para2
Definition at_wifi_ccpriv_table.h:22
const uint8_t * para1
Definition at_wifi_ccpriv_table.h:21
Definition at_wifi_ccpriv_table.h:50
int32_t para1
Definition at_wifi_ccpriv_table.h:52
uint32_t para_map
Definition at_wifi_ccpriv_table.h:51
定义AT命令实体。
Definition at.h:346
定义AT命令某个参数校验结构。
Definition at.h:323
uint32_t type
Definition at.h:324
Definition at_wifi_ccpriv_table.h:73
uint32_t para_map
Definition at_wifi_ccpriv_table.h:74
const uint8_t * para2
Definition at_wifi_ccpriv_table.h:76
const uint8_t * para1
Definition at_wifi_ccpriv_table.h:75
Definition at_wifi_ccpriv_table.h:27
const uint8_t * para13
Definition at_wifi_ccpriv_table.h:41
const uint8_t * para2
Definition at_wifi_ccpriv_table.h:30
const uint8_t * para10
Definition at_wifi_ccpriv_table.h:38
const uint8_t * para4
Definition at_wifi_ccpriv_table.h:32
const uint8_t * para6
Definition at_wifi_ccpriv_table.h:34
const uint8_t * para1
Definition at_wifi_ccpriv_table.h:29
const uint8_t * para14
Definition at_wifi_ccpriv_table.h:42
const uint8_t * para9
Definition at_wifi_ccpriv_table.h:37
uint32_t para_map
Definition at_wifi_ccpriv_table.h:28
const uint8_t * para12
Definition at_wifi_ccpriv_table.h:40
const uint8_t * para7
Definition at_wifi_ccpriv_table.h:35
const uint8_t * para8
Definition at_wifi_ccpriv_table.h:36
const uint8_t * para3
Definition at_wifi_ccpriv_table.h:31
const uint8_t * para5
Definition at_wifi_ccpriv_table.h:33
const uint8_t * para11
Definition at_wifi_ccpriv_table.h:39
const uint8_t * para15
Definition at_wifi_ccpriv_table.h:43
Definition at_wifi_ccpriv_table.h:46
uint32_t para_map
Definition at_wifi_ccpriv_table.h:47
Definition at_wifi_ccpriv_table.h:66
const uint8_t * para3
Definition at_wifi_ccpriv_table.h:70
const uint8_t * para1
Definition at_wifi_ccpriv_table.h:68
uint32_t para_map
Definition at_wifi_ccpriv_table.h:67
const uint8_t * para2
Definition at_wifi_ccpriv_table.h:69
Definition at_wifi_ccpriv_table.h:55
const uint8_t * para2
Definition at_wifi_ccpriv_table.h:58
uint32_t para_map
Definition at_wifi_ccpriv_table.h:56
const uint8_t * para1
Definition at_wifi_ccpriv_table.h:57
Definition at_wifi_ccpriv_table.h:61
const uint8_t * para1
Definition at_wifi_ccpriv_table.h:63
uint32_t para_map
Definition at_wifi_ccpriv_table.h:62
Definition at_wifi_ccpriv_table.h:79
alrx_args_t alrx
Definition at_wifi_ccpriv_table.h:80
vapinfo_args_t vapinfo
Definition at_wifi_ccpriv_table.h:86
usrinfo_args_t usrinfo
Definition at_wifi_ccpriv_table.h:85
arlog_args_t arlog
Definition at_wifi_ccpriv_table.h:84
altx_args_t altx
Definition at_wifi_ccpriv_table.h:81
ccpriv_args_t ccpriv
Definition at_wifi_ccpriv_table.h:82
rxinfo_args_t rxinfo
Definition at_wifi_ccpriv_table.h:83