• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2022 Winner Microelectronics Co., Ltd. All rights reserved.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 /*****************************************************************************
17 *
18 * File Name : tls_param.h
19 *
20 * Description: param manager Module
21 *
22 * Copyright (c) 2014 Winner Micro Electronic Design Co., Ltd.
23 * All rights reserved.
24 *
25 * Author : dave
26 *
27 * Date : 2014-6-12
28 *****************************************************************************/
29 #ifndef TLS_PARAM_H
30 #define TLS_PARAM_H
31 #include "wm_type_def.h"
32 
33 struct tls_param_quick_connect {
34     bool quick_connect_en;
35     u8 chanId;
36 };
37 
38 struct tls_sys_param {
39     struct tls_param_hardware_version hardware_version;
40 
41     struct tls_param_bssid bssid;
42     struct tls_param_ssid ssid;
43     u8 channel_enable;
44     u8 channel;
45     u8 wireless_region;
46     u8 encry;
47     u8 wireless_protocol;
48     u8 auto_create_adhoc;
49     u8 auto_retrycnt;
50     u8 auto_roam;
51     u8 auto_powersave;
52     u8 ssid_broadcast_enable;
53     u16 channellist;
54     struct tls_param_key key;
55     struct tls_param_bgr wbgr;
56     struct tls_param_wps wps;
57 
58     struct tls_param_ip ipcfg;
59 
60     u8 local_dnsname[32];
61     u8 local_device_name[32];
62 
63     struct tls_param_oray_client oray_client_setting;
64 
65     u8 upnp_enable;
66 
67     u8 always_online;
68 
69     u8 user_port_mode;
70 
71     u8 res_2;
72 
73     struct tls_param_uart uart_cfg;
74 
75     u8 auto_mode;
76     u8 res_3;
77     u16 transparent_trigger_length;
78     u16 transparent_trigger_period;
79 
80     struct tls_param_socket remote_socket_cfg;
81 
82     u32 debug_mode;
83     u32 res_4[2];  /* reserv and mark the end */
84 
85     /* escape char */
86     u8  EscapeChar;
87     u8  EscReserved;
88     u16 EscapePeriod; /* unit: ms */
89 
90     u8 IoMode;
91     u8 CmdMode;
92     u8 PassWord[6];
93 
94     struct tls_webs_cfg WebsCfg;
95     u8 oneshotflag;
96     u8 oneshotres[2];
97     struct tls_param_sha1 psk;
98     struct tls_param_original_key original_key;
99     struct tls_param_ssid original_ssid;
100     u8 auto_reconnect;
101     u8 res_5[3];
102 
103     struct tls_param_quick_connect quick_connect;
104 
105     u8 key_changed;
106     u8 ssid_changed;
107 
108     struct tls_param_ssid apsta_ssid;
109     struct tls_param_sha1 apsta_psk;
110     u8 res_6[1];
111     u8 channel4softap;
112     u8 encry4softap;
113     struct tls_param_key key4softap;
114     struct tls_param_ip ipcfg4softap;
115     struct tls_param_bgr wbgr4softap;
116 
117     char sntp_service1[32];
118     char sntp_service2[32];
119     char sntp_service3[32];
120     struct tls_param_tem_offset params_tem;
121 
122     bt_adapter_t adapter_t;
123     bt_remote_device_t remote_device1;
124     bt_remote_device_t remote_device2;
125     bt_remote_device_t remote_device3;
126     bt_remote_device_t remote_device4;
127     bt_remote_device_t remote_device5;
128 };
129 
130 struct tls_param_flash {
131     u32 magic;
132     u16 partition_num;
133     u16 modify_count;
134     u32 resv_1;
135     u16 resv_2;
136     u16 length;
137     struct tls_sys_param parameters;
138     u32 crc32;
139 };
140 
141 #endif /* WM_PARAM_H */
142 
143