wm_param.h 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. /*****************************************************************************
  2. *
  3. * File Name : tls_param.h
  4. *
  5. * Description: param manager Module
  6. *
  7. * Copyright (c) 2014 Winner Micro Electronic Design Co., Ltd.
  8. * All rights reserved.
  9. *
  10. * Author : dave
  11. *
  12. * Date : 2014-6-12
  13. *****************************************************************************/
  14. #ifndef TLS_PARAM_H
  15. #define TLS_PARAM_H
  16. #include "wm_type_def.h"
  17. struct tls_param_quick_connect{
  18. bool quick_connect_en;
  19. u8 chanId;
  20. };
  21. struct tls_sys_param {
  22. struct tls_param_hardware_version hardware_version;
  23. struct tls_param_bssid bssid;
  24. struct tls_param_ssid ssid;
  25. u8 channel_enable;
  26. u8 channel;
  27. u8 wireless_region;
  28. u8 encry;
  29. u8 wireless_protocol;
  30. u8 auto_create_adhoc;
  31. u8 auto_retrycnt;
  32. u8 auto_roam;
  33. u8 auto_powersave;
  34. u8 ssid_broadcast_enable;
  35. u16 channellist;
  36. struct tls_param_key key;
  37. struct tls_param_bgr wbgr;
  38. struct tls_param_wps wps;
  39. struct tls_param_ip ipcfg;
  40. u8 local_dnsname[32];
  41. u8 local_device_name[32];
  42. struct tls_param_oray_client oray_client_setting;
  43. u8 upnp_enable;
  44. u8 always_online;
  45. u8 user_port_mode;
  46. u8 res_2;
  47. struct tls_param_uart uart_cfg;
  48. u8 auto_mode;
  49. u8 res_3;
  50. u16 transparent_trigger_length;
  51. u16 transparent_trigger_period;
  52. struct tls_param_socket remote_socket_cfg;
  53. u32 debug_mode;
  54. u32 res_4[2]; /* reserv and mark the end */
  55. /*escape char*/
  56. u8 EscapeChar;
  57. u8 EscReserved;
  58. u16 EscapePeriod; /* unit: ms */
  59. u8 IoMode;
  60. u8 CmdMode;
  61. u8 PassWord[6];
  62. struct tls_webs_cfg WebsCfg;
  63. u8 oneshotflag;
  64. u8 oneshotres[2];
  65. struct tls_param_sha1 psk;
  66. struct tls_param_original_key original_key;
  67. struct tls_param_ssid original_ssid;
  68. u8 auto_reconnect;
  69. u8 res_5[3];
  70. struct tls_param_quick_connect quick_connect;
  71. u8 key_changed;
  72. u8 ssid_changed;
  73. struct tls_param_ssid apsta_ssid;
  74. struct tls_param_sha1 apsta_psk;
  75. u8 res_6[1];
  76. u8 channel4softap;
  77. u8 encry4softap;
  78. struct tls_param_key key4softap;
  79. struct tls_param_ip ipcfg4softap;
  80. struct tls_param_bgr wbgr4softap;
  81. char sntp_service1[32];
  82. char sntp_service2[32];
  83. char sntp_service3[32];
  84. struct tls_param_tem_offset params_tem;
  85. bt_adapter_t adapter_t;
  86. bt_remote_device_t remote_device1;
  87. bt_remote_device_t remote_device2;
  88. bt_remote_device_t remote_device3;
  89. bt_remote_device_t remote_device4;
  90. bt_remote_device_t remote_device5;
  91. #if 0
  92. bt_remote_device_t remote_device6;
  93. bt_remote_device_t remote_device7;
  94. bt_remote_device_t remote_device8;
  95. bt_remote_device_t remote_device9;
  96. bt_remote_device_t remote_device10;
  97. #endif
  98. };
  99. struct tls_param_flash {
  100. u32 magic;
  101. u16 partition_num;
  102. u16 modify_count;
  103. u32 resv_1;
  104. u16 resv_2;
  105. u16 length;
  106. struct tls_sys_param parameters;
  107. u32 crc32;
  108. };
  109. #endif /* WM_PARAM_H */