50 #ifndef _SL_PROTOCOL_TYPES_H_ 51 #define _SL_PROTOCOL_TYPES_H_ 71 #define H2N_SYNC_PATTERN {0xBBDDEEFF,0x4321,0x34,0x12} 72 #define H2N_CNYS_PATTERN {0xBBDDEEFF,0x8765,0x78,0x56} 74 #define H2N_DUMMY_PATTERN (_u32)0xFFFFFFFF 75 #define N2H_SYNC_PATTERN (_u32)0xABCDDCBA 76 #define SYNC_PATTERN_LEN (_u32)sizeof(_u32) 77 #define UART_SET_MODE_MAGIC_CODE (_u32)0xAA55AA55 78 #define SPI_16BITS_BUG(pattern) (_u32)((_u32)pattern & (_u32)0xFFFF7FFF) 79 #define SPI_8BITS_BUG(pattern) (_u32)((_u32)pattern & (_u32)0xFFFFFF7F) 105 _u16 SocketTXFailure;
106 _u16 SocketNonBlocking;
109 #define _SL_RESP_SPEC_HDR_SIZE (sizeof(_SlResponseHeader_t) - sizeof(_SlGenericHeader_t)) 110 #define _SL_RESP_HDR_SIZE sizeof(_SlResponseHeader_t) 111 #define _SL_CMD_HDR_SIZE sizeof(_SlCommandHeader_t) 113 #define _SL_RESP_ARGS_START(_pMsg) (((_SlResponseHeader_t *)(_pMsg)) + 1) 118 _SlCommandHeader_t sl_hdr;
123 #define _SL_DEV_STATUS_BIT_WLAN_CONN 0x01 124 #define _SL_DEV_STATUS_BIT_DROPPED_EVENTS 0x02 125 #define _SL_DEV_STATUS_BIT_LOCKED 0x04 126 #define _SL_DEV_STATUS_BIT_PROVISIONING_ACTIVE 0x08 127 #define _SL_DEV_STATUS_BIT_PROVISIONING_USER_INITIATED 0x10 128 #define _SL_DEV_STATUS_BIT_PRESERVATION 0x20 129 #define _SL_DEV_STATUS_BIT_PROVISIONING_ENABLE_API 0x40 133 #define _SL_DRV_STATUS_BIT_RESTART_REQUIRED 0x100 134 #define _SL_DRV_STATUS_BIT_DEVICE_STARTED 0x200 135 #define _SL_DRV_STATUS_BIT_STOP_IN_PROGRESS 0x400 136 #define _SL_DRV_STATUS_BIT_START_IN_PROGRESS 0x800 141 #define SL_IPV4_IPV6_OFFSET ( 9 ) 142 #define SL_OPCODE_IPV4 ( 0x0 << SL_IPV4_IPV6_OFFSET ) 143 #define SL_OPCODE_IPV6 ( 0x1 << SL_IPV4_IPV6_OFFSET ) 145 #define SL_SYNC_ASYNC_OFFSET ( 10 ) 146 #define SL_OPCODE_SYNC (0x1 << SL_SYNC_ASYNC_OFFSET ) 147 #define SL_OPCODE_SILO_OFFSET ( 11 ) 148 #define SL_OPCODE_SILO_MASK ( 0xF << SL_OPCODE_SILO_OFFSET ) 149 #define SL_OPCODE_SILO_DEVICE ( 0x0 << SL_OPCODE_SILO_OFFSET ) 150 #define SL_OPCODE_SILO_WLAN ( 0x1 << SL_OPCODE_SILO_OFFSET ) 151 #define SL_OPCODE_SILO_SOCKET ( 0x2 << SL_OPCODE_SILO_OFFSET ) 152 #define SL_OPCODE_SILO_NETAPP ( 0x3 << SL_OPCODE_SILO_OFFSET ) 153 #define SL_OPCODE_SILO_FS ( 0x4 << SL_OPCODE_SILO_OFFSET ) 154 #define SL_OPCODE_SILO_NETCFG ( 0x5 << SL_OPCODE_SILO_OFFSET ) 155 #define SL_OPCODE_SILO_NETUTIL ( 0x6 << SL_OPCODE_SILO_OFFSET ) 157 #define SL_FAMILY_SHIFT (0x4) 158 #define SL_FLAGS_MASK (0xF) 160 #define SL_OPCODE_DEVICE_INITCOMPLETE 0x0008 161 #define SL_OPCODE_DEVICE_ABORT 0x000C 162 #define SL_OPCODE_DEVICE_STOP_COMMAND 0x8473 163 #define SL_OPCODE_DEVICE_STOP_RESPONSE 0x0473 164 #define SL_OPCODE_DEVICE_STOP_ASYNC_RESPONSE 0x0073 165 #define SL_OPCODE_DEVICE_DEVICEASYNCDUMMY 0x0063 167 #define SL_OPCODE_DEVICE_VERSIONREADCOMMAND 0x8470 168 #define SL_OPCODE_DEVICE_VERSIONREADRESPONSE 0x0470 169 #define SL_OPCODE_DEVICE_DEVICE_ASYNC_GENERAL_ERROR 0x0078 170 #define SL_OPCODE_DEVICE_FLOW_CTRL_ASYNC_EVENT 0x0079 172 #define SL_OPCODE_WLAN_WLANCONNECTCOMMAND 0x8C80 173 #define SL_OPCODE_WLAN_WLANCONNECTRESPONSE 0x0C80 174 #define SL_OPCODE_WLAN_STA_ASYNCCONNECTEDRESPONSE 0x0880 175 #define SL_OPCODE_WLAN_P2PCL_ASYNCCONNECTEDRESPONSE 0x0892 177 #define SL_OPCODE_WLAN_WLANDISCONNECTCOMMAND 0x8C81 178 #define SL_OPCODE_WLAN_WLANDISCONNECTRESPONSE 0x0C81 179 #define SL_OPCODE_WLAN_STA_ASYNCDISCONNECTEDRESPONSE 0x0881 180 #define SL_OPCODE_WLAN_P2PCL_ASYNCDISCONNECTEDRESPONSE 0x0894 182 #define SL_OPCODE_WLAN_ASYNC_STA_ADDED 0x082E 183 #define SL_OPCODE_WLAN_ASYNC_P2PCL_ADDED 0x0896 184 #define SL_OPCODE_WLAN_ASYNC_STA_REMOVED 0x082F 185 #define SL_OPCODE_WLAN_ASYNC_P2PCL_REMOVED 0x0898 187 #define SL_OPCODE_WLAN_P2P_DEV_FOUND 0x0830 188 #define SL_OPCODE_WLAN_P2P_CONNECTION_FAILED 0x0831 189 #define SL_OPCODE_WLAN_P2P_NEG_REQ_RECEIVED 0x0832 191 #define SL_OPCODE_WLAN_WLANCONNECTEAPCOMMAND 0x8C82 192 #define SL_OPCODE_WLAN_WLANCONNECTEAPCRESPONSE 0x0C82 193 #define SL_OPCODE_WLAN_PROFILEADDCOMMAND 0x8C83 194 #define SL_OPCODE_WLAN_PROFILEADDRESPONSE 0x0C83 195 #define SL_OPCODE_WLAN_PROFILEGETCOMMAND 0x8C84 196 #define SL_OPCODE_WLAN_PROFILEGETRESPONSE 0x0C84 197 #define SL_OPCODE_WLAN_PROFILEDELCOMMAND 0x8C85 198 #define SL_OPCODE_WLAN_PROFILEDELRESPONSE 0x0C85 199 #define SL_OPCODE_WLAN_POLICYSETCOMMAND 0x8C86 200 #define SL_OPCODE_WLAN_POLICYSETRESPONSE 0x0C86 201 #define SL_OPCODE_WLAN_POLICYGETCOMMAND 0x8C87 202 #define SL_OPCODE_WLAN_POLICYGETRESPONSE 0x0C87 203 #define SL_OPCODE_WLAN_FILTERADD 0x8C88 204 #define SL_OPCODE_WLAN_FILTERADDRESPONSE 0x0C88 205 #define SL_OPCODE_WLAN_FILTERGET 0x8C89 206 #define SL_OPCODE_WLAN_FILTERGETRESPONSE 0x0C89 207 #define SL_OPCODE_WLAN_FILTERDELETE 0x8C8A 208 #define SL_OPCODE_WLAN_FILTERDELETERESPOSNE 0x0C8A 209 #define SL_OPCODE_WLAN_WLANGETSTATUSCOMMAND 0x8C8F 210 #define SL_OPCODE_WLAN_WLANGETSTATUSRESPONSE 0x0C8F 211 #define SL_OPCODE_WLAN_STARTTXCONTINUESCOMMAND 0x8CAA 212 #define SL_OPCODE_WLAN_STARTTXCONTINUESRESPONSE 0x0CAA 213 #define SL_OPCODE_WLAN_STOPTXCONTINUESCOMMAND 0x8CAB 214 #define SL_OPCODE_WLAN_STOPTXCONTINUESRESPONSE 0x0CAB 215 #define SL_OPCODE_WLAN_STARTRXSTATCOMMAND 0x8CAC 216 #define SL_OPCODE_WLAN_STARTRXSTATRESPONSE 0x0CAC 217 #define SL_OPCODE_WLAN_STOPRXSTATCOMMAND 0x8CAD 218 #define SL_OPCODE_WLAN_STOPRXSTATRESPONSE 0x0CAD 219 #define SL_OPCODE_WLAN_GETRXSTATCOMMAND 0x8CAF 220 #define SL_OPCODE_WLAN_GETRXSTATRESPONSE 0x0CAF 221 #define SL_OPCODE_WLAN_POLICYSETCOMMANDNEW 0x8CB0 222 #define SL_OPCODE_WLAN_POLICYSETRESPONSENEW 0x0CB0 223 #define SL_OPCODE_WLAN_POLICYGETCOMMANDNEW 0x8CB1 224 #define SL_OPCODE_WLAN_POLICYGETRESPONSENEW 0x0CB1 226 #define SL_OPCODE_WLAN_PROVISIONING_PROFILE_ADDED_ASYNC_RESPONSE 0x08B2 227 #define SL_OPCODE_WLAN_SET_MODE 0x8CB4 228 #define SL_OPCODE_WLAN_SET_MODE_RESPONSE 0x0CB4 229 #define SL_OPCODE_WLAN_CFG_SET 0x8CB5 230 #define SL_OPCODE_WLAN_CFG_SET_RESPONSE 0x0CB5 231 #define SL_OPCODE_WLAN_CFG_GET 0x8CB6 232 #define SL_OPCODE_WLAN_CFG_GET_RESPONSE 0x0CB6 233 #define SL_OPCODE_WLAN_EAP_PROFILEADDCOMMAND 0x8C67 234 #define SL_OPCODE_WLAN_EAP_PROFILEADDCOMMAND_RESPONSE 0x0C67 236 #define SL_OPCODE_SOCKET_SOCKET 0x9401 237 #define SL_OPCODE_SOCKET_SOCKETRESPONSE 0x1401 238 #define SL_OPCODE_SOCKET_CLOSE 0x9402 239 #define SL_OPCODE_SOCKET_CLOSERESPONSE 0x1402 240 #define SL_OPCODE_SOCKET_ACCEPT 0x9403 241 #define SL_OPCODE_SOCKET_ACCEPTRESPONSE 0x1403 242 #define SL_OPCODE_SOCKET_ACCEPTASYNCRESPONSE 0x1003 243 #define SL_OPCODE_SOCKET_ACCEPTASYNCRESPONSE_V6 0x1203 244 #define SL_OPCODE_SOCKET_BIND 0x9404 245 #define SL_OPCODE_SOCKET_BIND_V6 0x9604 246 #define SL_OPCODE_SOCKET_BINDRESPONSE 0x1404 247 #define SL_OPCODE_SOCKET_LISTEN 0x9405 248 #define SL_OPCODE_SOCKET_LISTENRESPONSE 0x1405 249 #define SL_OPCODE_SOCKET_CONNECT 0x9406 250 #define SL_OPCODE_SOCKET_CONNECT_V6 0x9606 251 #define SL_OPCODE_SOCKET_CONNECTRESPONSE 0x1406 252 #define SL_OPCODE_SOCKET_CONNECTASYNCRESPONSE 0x1006 253 #define SL_OPCODE_SOCKET_SELECT 0x9407 254 #define SL_OPCODE_SOCKET_SELECTRESPONSE 0x1407 255 #define SL_OPCODE_SOCKET_SELECTASYNCRESPONSE 0x1007 256 #define SL_OPCODE_SOCKET_SETSOCKOPT 0x9408 257 #define SL_OPCODE_SOCKET_SETSOCKOPTRESPONSE 0x1408 258 #define SL_OPCODE_SOCKET_GETSOCKOPT 0x9409 259 #define SL_OPCODE_SOCKET_GETSOCKOPTRESPONSE 0x1409 260 #define SL_OPCODE_SOCKET_RECV 0x940A 261 #define SL_OPCODE_SOCKET_RECVASYNCRESPONSE 0x100A 262 #define SL_OPCODE_SOCKET_RECVFROM 0x940B 263 #define SL_OPCODE_SOCKET_RECVFROMASYNCRESPONSE 0x100B 264 #define SL_OPCODE_SOCKET_RECVFROMASYNCRESPONSE_V6 0x120B 265 #define SL_OPCODE_SOCKET_SEND 0x940C 266 #define SL_OPCODE_SOCKET_SENDTO 0x940D 267 #define SL_OPCODE_SOCKET_SENDTO_V6 0x960D 268 #define SL_OPCODE_SOCKET_TXFAILEDASYNCRESPONSE 0x100E 269 #define SL_OPCODE_SOCKET_SOCKETASYNCEVENT 0x100F 270 #define SL_OPCODE_SOCKET_SOCKETCLOSEASYNCEVENT 0x1010 271 #define SL_OPCODE_NETAPP_START_COMMAND 0x9C0A 272 #define SL_OPCODE_NETAPP_START_RESPONSE 0x1C0A 273 #define SL_OPCODE_NETAPP_NETAPPSTARTRESPONSE 0x1C0A 274 #define SL_OPCODE_NETAPP_STOP_COMMAND 0x9C61 275 #define SL_OPCODE_NETAPP_STOP_RESPONSE 0x1C61 276 #define SL_OPCODE_NETAPP_NETAPPSET 0x9C0B 277 #define SL_OPCODE_NETAPP_NETAPPSETRESPONSE 0x1C0B 278 #define SL_OPCODE_NETAPP_NETAPPGET 0x9C27 279 #define SL_OPCODE_NETAPP_NETAPPGETRESPONSE 0x1C27 280 #define SL_OPCODE_NETAPP_DNSGETHOSTBYNAME 0x9C20 281 #define SL_OPCODE_NETAPP_DNSGETHOSTBYNAMERESPONSE 0x1C20 282 #define SL_OPCODE_NETAPP_DNSGETHOSTBYNAMEASYNCRESPONSE 0x1820 283 #define SL_OPCODE_NETAPP_DNSGETHOSTBYNAMEASYNCRESPONSE_V6 0x1A20 284 #define SL_OPCODE_NETAPP_NETAPP_MDNS_LOOKUP_SERVICE 0x9C71 285 #define SL_OPCODE_NETAPP_NETAPP_MDNS_LOOKUP_SERVICE_RESPONSE 0x1C72 286 #define SL_OPCODE_NETAPP_MDNSREGISTERSERVICE 0x9C34 287 #define SL_OPCODE_NETAPP_MDNSREGISTERSERVICERESPONSE 0x1C34 288 #define SL_OPCODE_NETAPP_MDNSGETHOSTBYSERVICE 0x9C35 289 #define SL_OPCODE_NETAPP_MDNSGETHOSTBYSERVICERESPONSE 0x1C35 290 #define SL_OPCODE_NETAPP_MDNSGETHOSTBYSERVICEASYNCRESPONSE 0x1835 291 #define SL_OPCODE_NETAPP_MDNSGETHOSTBYSERVICEASYNCRESPONSE_V6 0x1A35 292 #define SL_OPCODE_NETAPP_DNSGETHOSTBYADDR 0x9C26 293 #define SL_OPCODE_NETAPP_DNSGETHOSTBYADDR_V6 0x9E26 294 #define SL_OPCODE_NETAPP_DNSGETHOSTBYADDRRESPONSE 0x1C26 295 #define SL_OPCODE_NETAPP_DNSGETHOSTBYADDRASYNCRESPONSE 0x1826 296 #define SL_OPCODE_NETAPP_PINGSTART 0x9C21 297 #define SL_OPCODE_NETAPP_PINGSTART_V6 0x9E21 298 #define SL_OPCODE_NETAPP_PINGSTARTRESPONSE 0x1C21 299 #define SL_OPCODE_NETAPP_PINGREPORTREQUEST 0x9C22 300 #define SL_OPCODE_NETAPP_PINGREPORTREQUESTRESPONSE 0x1822 301 #define SL_OPCODE_NETAPP_ARPFLUSH 0x9C24 302 #define SL_OPCODE_NETAPP_ARPFLUSHRESPONSE 0x1C24 303 #define SL_OPCODE_NETAPP_IPACQUIRED 0x1825 304 #define SL_OPCODE_NETAPP_IPV4_LOST 0x1832 305 #define SL_OPCODE_NETAPP_DHCP_IPV4_ACQUIRE_TIMEOUT 0x1833 306 #define SL_OPCODE_NETAPP_IPACQUIRED_V6 0x1A25 307 #define SL_OPCODE_NETAPP_IPV6_LOST_V6 0x1A32 308 #define SL_OPCODE_NETAPP_IPERFSTARTCOMMAND 0x9C28 309 #define SL_OPCODE_NETAPP_IPERFSTARTRESPONSE 0x1C28 310 #define SL_OPCODE_NETAPP_IPERFSTOPCOMMAND 0x9C29 311 #define SL_OPCODE_NETAPP_IPERFSTOPRESPONSE 0x1C29 312 #define SL_OPCODE_NETAPP_CTESTSTARTCOMMAND 0x9C2A 313 #define SL_OPCODE_NETAPP_CTESTSTARTRESPONSE 0x1C2A 314 #define SL_OPCODE_NETAPP_CTESTASYNCRESPONSE 0x182A 315 #define SL_OPCODE_NETAPP_CTESTSTOPCOMMAND 0x9C2B 316 #define SL_OPCODE_NETAPP_CTESTSTOPRESPONSE 0x1C2B 317 #define SL_OPCODE_NETAPP_IP_LEASED 0x182C 318 #define SL_OPCODE_NETAPP_IP_RELEASED 0x182D 319 #define SL_OPCODE_NETAPP_HTTPGETTOKENVALUE 0x182E 320 #define SL_OPCODE_NETAPP_HTTPSENDTOKENVALUE 0x9C2F 321 #define SL_OPCODE_NETAPP_HTTPPOSTTOKENVALUE 0x1830 322 #define SL_OPCODE_NETAPP_IP_COLLISION 0x1831 324 #define SL_OPCODE_NETAPP_REQUEST 0x1878 325 #define SL_OPCODE_NETAPP_RESPONSE 0x9C78 326 #define SL_OPCODE_NETAPP_SEND 0x9C79 327 #define SL_OPCODE_NETAPP_SENDRESPONSE 0x1C79 328 #define SL_OPCODE_NETAPP_RECEIVEREQUEST 0x9C7A 329 #define SL_OPCODE_NETAPP_RECEIVE 0x187B 331 #define SL_OPCODE_NVMEM_FILEOPEN 0xA43C 332 #define SL_OPCODE_NVMEM_FILEOPENRESPONSE 0x243C 333 #define SL_OPCODE_NVMEM_FILECLOSE 0xA43D 334 #define SL_OPCODE_NVMEM_FILECLOSERESPONSE 0x243D 335 #define SL_OPCODE_NVMEM_FILEREADCOMMAND 0xA440 336 #define SL_OPCODE_NVMEM_FILEREADRESPONSE 0x2440 337 #define SL_OPCODE_NVMEM_FILEWRITECOMMAND 0xA441 338 #define SL_OPCODE_NVMEM_FILEWRITERESPONSE 0x2441 339 #define SL_OPCODE_NVMEM_FILEGETINFOCOMMAND 0xA442 340 #define SL_OPCODE_NVMEM_FILEGETINFORESPONSE 0x2442 341 #define SL_OPCODE_NVMEM_FILEDELCOMMAND 0xA443 342 #define SL_OPCODE_NVMEM_FILEDELRESPONSE 0x2443 343 #define SL_OPCODE_NVMEM_NVMEMFORMATCOMMAND 0xA444 344 #define SL_OPCODE_NVMEM_NVMEMFORMATRESPONSE 0x2444 345 #define SL_OPCODE_NVMEM_NVMEMGETFILELISTCOMMAND 0xA448 346 #define SL_OPCODE_NVMEM_NVMEMGETFILELISTRESPONSE 0x2448 348 #define SL_OPCODE_NVMEM_NVMEMFSPROGRAMMINGCOMMAND 0xA44A 349 #define SL_OPCODE_NVMEM_NVMEMFSPROGRAMMINGRESPONSE 0x244A 350 #define SL_OPCODE_NVMEM_NVMEMFILESYSTEMCONTROLCOMMAND 0xA44B 351 #define SL_OPCODE_NVMEM_NVMEMFILESYSTEMCONTROLRESPONSE 0x244B 352 #define SL_OPCODE_NVMEM_NVMEMBUNDLECONTROLCOMMAND 0xA44C 353 #define SL_OPCODE_NVMEM_NVMEMBUNDLECONTROLRESPONSE 0x244C 356 #define SL_OPCODE_DEVICE_SETDEBUGLEVELCOMMAND 0x846A 357 #define SL_OPCODE_DEVICE_SETDEBUGLEVELRESPONSE 0x046A 359 #define SL_OPCODE_DEVICE_NETCFG_SET_COMMAND 0x8432 360 #define SL_OPCODE_DEVICE_NETCFG_SET_RESPONSE 0x0432 361 #define SL_OPCODE_DEVICE_NETCFG_GET_COMMAND 0x8433 362 #define SL_OPCODE_DEVICE_NETCFG_GET_RESPONSE 0x0433 364 #define SL_OPCODE_DEVICE_SETUARTMODECOMMAND 0x846B 365 #define SL_OPCODE_DEVICE_SETUARTMODERESPONSE 0x046B 366 #define SL_OPCODE_DEVICE_SSISIZESETCOMMAND 0x846B 367 #define SL_OPCODE_DEVICE_SSISIZESETRESPONSE 0x046B 370 #define SL_OPCODE_DEVICE_EVENTMASKSET 0x8464 371 #define SL_OPCODE_DEVICE_EVENTMASKSETRESPONSE 0x0464 372 #define SL_OPCODE_DEVICE_EVENTMASKGET 0x8465 373 #define SL_OPCODE_DEVICE_EVENTMASKGETRESPONSE 0x0465 375 #define SL_OPCODE_DEVICE_DEVICEGET 0x8466 376 #define SL_OPCODE_DEVICE_DEVICEGETRESPONSE 0x0466 377 #define SL_OPCODE_DEVICE_DEVICESET 0x84B7 378 #define SL_OPCODE_DEVICE_DEVICESETRESPONSE 0x04B7 380 #define SL_OPCODE_WLAN_SCANRESULTSGETCOMMAND 0x8C8C 381 #define SL_OPCODE_WLAN_SCANRESULTSGETRESPONSE 0x0C8C 382 #define SL_OPCODE_WLAN_SMARTCONFIGOPTSET 0x8C8D 383 #define SL_OPCODE_WLAN_SMARTCONFIGOPTSETRESPONSE 0x0C8D 384 #define SL_OPCODE_WLAN_SMARTCONFIGOPTGET 0x8C8E 385 #define SL_OPCODE_WLAN_SMARTCONFIGOPTGETRESPONSE 0x0C8E 387 #define SL_OPCODE_WLAN_PROVISIONING_COMMAND 0x8C98 388 #define SL_OPCODE_WLAN_PROVISIONING_RESPONSE 0x0C98 389 #define SL_OPCODE_DEVICE_RESET_REQUEST_ASYNC_EVENT 0x0099 390 #define SL_OPCODE_WLAN_PROVISIONING_STATUS_ASYNC_EVENT 0x089A 392 #define SL_OPCODE_FREE_BSD_RECV_BUFFER 0xCCCB 393 #define SL_OPCODE_FREE_NON_BSD_READ_BUFFER 0xCCCD 397 #define SL_OPCODE_WLAN_WLANRXFILTERADDCOMMAND 0x8C6C 398 #define SL_OPCODE_WLAN_WLANRXFILTERADDRESPONSE 0x0C6C 399 #define SL_OPCODE_WLAN_WLANRXFILTERGETSTATISTICSINFOCOMMAND 0x8C6E 400 #define SL_OPCODE_WLAN_WLANRXFILTERGETSTATISTICSINFORESPONSE 0x0C6E 401 #define SL_OPCODE_WLAN_WLANRXFILTERGETINFO 0x8C70 402 #define SL_OPCODE_WLAN_WLANRXFILTERGETINFORESPONSE 0x0C70 403 #define SL_OPCODE_WLAN_RX_FILTER_ASYNC_RESPONSE 0x089D 406 #define SL_OPCODE_NETUTIL_SET 0xB4BE 407 #define SL_OPCODE_NETUTIL_SETRESPONSE 0x34BE 408 #define SL_OPCODE_NETUTIL_GET 0xB4C0 409 #define SL_OPCODE_NETUTIL_GETRESPONSE 0x34C0 410 #define SL_OPCODE_NETUTIL_COMMAND 0xB4C1 411 #define SL_OPCODE_NETUTIL_COMMANDRESPONSE 0x34C1 412 #define SL_OPCODE_NETUTIL_COMMANDASYNCRESPONSE 0x30C1 417 typedef _u32 InitStatus_t;
492 _u16 MinTxPayloadSize;
499 _u8 FlowControlEnable;
515 #define MAXIMAL_PASSWORD_LENGTH (64) 520 _u8 RequestedRoleAfterSuccess;
521 _u16 InactivityTimeoutSec;
532 #define SSID_STRING(pCmd) (_i8 *)((SlWlanConnectCommon_t *)(pCmd) + 1) 533 #define PASSWORD_STRING(pCmd) (SSID_STRING(pCmd) + ((SlWlanConnectCommon_t *)(pCmd))->SsidLen) 543 #define EAP_SSID_STRING(pCmd) (_i8 *)((SlWlanConnectEapCommand_t *)(pCmd) + 1) 544 #define EAP_PASSWORD_STRING(pCmd) (EAP_SSID_STRING(pCmd) + ((SlWlanConnectEapCommand_t *)(pCmd))->Common.SsidLen) 545 #define EAP_USER_STRING(pCmd) (EAP_PASSWORD_STRING(pCmd) + ((SlWlanConnectEapCommand_t *)(pCmd))->Common.PasswordLen) 546 #define EAP_ANON_USER_STRING(pCmd) (EAP_USER_STRING(pCmd) + ((SlWlanConnectEapCommand_t *)(pCmd))->UserLen) 559 _u32 NumProbeResponse;
560 _u32 G_Channels_mask;
564 _u16 IntervalList[16];
585 #define PROFILE_SSID_STRING(pCmd) ((_i8 *)((SlWlanAddGetProfile_t *)(pCmd) + 1)) 586 #define PROFILE_PASSWORD_STRING(pCmd) (PROFILE_SSID_STRING(pCmd) + ((SlWlanAddGetProfile_t *)(pCmd))->SsidLen) 588 #define EAP_PROFILE_SSID_STRING(pCmd) (_i8 *)((SlWlanAddGetEapProfile_t *)(pCmd) + 1) 589 #define EAP_PROFILE_PASSWORD_STRING(pCmd) (EAP_PROFILE_SSID_STRING(pCmd) + ((SlWlanAddGetEapProfile_t *)(pCmd))->Common.SsidLen) 590 #define EAP_PROFILE_USER_STRING(pCmd) (EAP_PROFILE_PASSWORD_STRING(pCmd) + ((SlWlanAddGetEapProfile_t *)(pCmd))->Common.PasswordLen) 591 #define EAP_PROFILE_ANON_USER_STRING(pCmd) (EAP_PROFILE_USER_STRING(pCmd) + ((SlWlanAddGetEapProfile_t *)(pCmd))->UserLen) 637 SlWlanRxFilterRuleType_t RuleType;
638 SlWlanRxFilterFlags_u Flags;
639 SlWlanRxFilterID_t FilterId;
648 SlWlanRxFilterID_t FilterId;
662 _u16 OutputBufferLength;
805 #ifdef SL_SUPPORT_IPV6 813 #ifdef SL_SUPPORT_IPV6 924 _u8 TokenName[SL_NETAPP_MAX_TOKEN_NAME_LEN];
1010 CTST_BSD_TCP_SERVER_BI_DIR,
1011 CTST_BSD_TCP_CLIENT_BI_DIR,
1012 CTST_BSD_UDP_BI_DIR,
1015 CTST_BSD_RAW_BI_DIR,
1016 CTST_BSD_SECURED_TCP_TX,
1017 CTST_BSD_SECURED_TCP_RX,
1018 CTST_BSD_SECURED_TCP_SERVER_BI_DIR,
1019 CTST_BSD_SECURED_TCP_CLIENT_BI_DIR,
1020 CTST_BSD_UDP_TX_IPV6,
1021 CTST_BSD_UDP_RX_IPV6,
1022 CTST_BSD_TCP_TX_IPV6,
1023 CTST_BSD_TCP_RX_IPV6,
1024 CTST_BSD_TCP_SERVER_BI_DIR_IPV6,
1025 CTST_BSD_TCP_CLIENT_BI_DIR_IPV6,
1026 CTST_BSD_UDP_BI_DIR_IPV6,
1027 CTST_BSD_RAW_TX_IPV6,
1028 CTST_BSD_RAW_RX_IPV6,
1029 CTST_BSD_RAW_BI_DIR_IPV6,
1030 CTST_BSD_SECURED_TCP_TX_IPV6,
1031 CTST_BSD_SECURED_TCP_RX_IPV6,
1032 CTST_BSD_SECURED_TCP_SERVER_BI_DIR_IPV6,
1033 CTST_BSD_SECURED_TCP_CLIENT_BI_DIR_IPV6,
1061 _u32 OutOfOrderPackets;
1072 _u32 NumSuccsessPings;
1086 ACQUIRED_IPV6_LOCAL = 1,
1087 ACQUIRED_IPV6_GLOBAL
1088 }IpV6AcquiredType_e;
1132 _u32 CertificFileNameLength;
1147 _u32 FileStorageSize;
1148 _u32 FileWriteCounter;
1181 _u32 FileNameLength;
1194 _u16 IncludeFileFilters;
1229 _i32 NumOfEntriesOrError;
1231 _u32 OutputBufferLength;
1237 #define SL_ASYNC_MAX_PAYLOAD_LEN 120 1239 #if defined(slcb_NetAppHttpServerHdlr) || defined(EXT_LIB_REGISTERED_HTTP_SERVER_EVENTS) || defined(slcb_NetAppRequestHdlr) || defined(EXT_LIB_REGISTERED_NETAPP_REQUEST_EVENTS) 1240 #define SL_ASYNC_MAX_PAYLOAD_LEN 1600 1242 #define SL_ASYNC_MAX_PAYLOAD_LEN 220 1246 #define SL_ASYNC_MAX_MSG_LEN (_SL_RESP_HDR_SIZE + SL_ASYNC_MAX_PAYLOAD_LEN) 1248 #define RECV_ARGS_SIZE (sizeof(SlSocketResponse_t)) 1249 #define RECVFROM_IPV4_ARGS_SIZE (sizeof(SlSocketAddrAsyncIPv4Response_t)) 1250 #define RECVFROM_IPV6_ARGS_SIZE (sizeof(SlSocketAddrAsyncIPv6Response_t)) 1252 #define SL_IPV4_ADDRESS_SIZE (sizeof(_u32)) 1253 #define SL_IPV6_ADDRESS_SIZE (4 * sizeof(_u32))