m2m_types.h
Go to the documentation of this file.
1 
35 #ifndef __M2M_WIFI_TYPES_H__
36 #define __M2M_WIFI_TYPES_H__
37 
38 
39 /*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
40 INCLUDES
41 *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*/
42 
43 #ifndef _BOOT_
44 #ifndef _FIRMWARE_
46 #else
47 #include "m2m_common.h"
48 #endif
49 #endif
50 
51 
52 /*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
53 MACROS
54 *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*/
63 /*
64  Layout of HIF_LEVEL fields
65  | x x x x x x | x x x x x x x x |
66  | 13:8 | 7:0 |
67  | HIF_MAJOR | HIF_MINOR |
68  | HIF_LEVEL |
69 
70  HIF compatibility (checked by driver after wifi boot).
71 
72  Check Firmware HIF_MAJOR
73  |___
74  | Does not match Driver - Recommend either:
75  | > checking compatibility of Cortus image stored in inactive partition
76  | (m2m_wifi_check_ota_rb()) then swapping to it using OTA rollback or switch.
77  | > updating Host with out of band method.
78  |___
79  Matches Driver - All APIs can be attempted.
80  | - Cortus image can be updated (OTA download)
81  | - New Host image can be retrieved (socket recv)
82  |
83  Check Firmware HIF_MINOR
84  |___
85  | Less than Driver - Driver may refuse to execute some APIs (API would return M2M_ERR_SEND).
86  | - Recommend updating Cortus image using OTA download to use newer Firmware.
87  |___
88  | Equal to Driver - Driver supports all APIs.
89  |___
90  Greater than Driver - Driver supports all APIs.
91  - Recommend reviewing potential benefit of updating Host to use newer Driver.
92 
93  When an OTA update involving HIF_MAJOR change is required, the following order is recommended:
94  1. m2m_ota_start_update() to store new Cortus image in inactive partition.
95  2. Socket recv() to retrieve new Host image (including new WINC Driver).
96  3. Application code to make Host image available in host flash.
97  4. m2m_ota_switch_firmware() to switch active/inactive partition (will take effect after system_reset()).
98  5. system_reset() to restart with new WINC Driver / Firmware.
99  Note that in the event of (unintentional) system reset after step (3), the remaining steps (4) and (5) should still be
100  run after the reset.
101 */
102 /* Selection of HIF_INFO
103 */
104 #define M2M_HIF_INFO_SHIFT (0)
105 #define M2M_HIF_INFO_MASK (0xffff)
106 /* Subdivision of HIF_INFO
107 */
108 #define M2M_HIF_BLOCK_SHIFT (14)
109 #define M2M_HIF_BLOCK_MASK (0x3)
110 #define M2M_HIF_LEVEL_SHIFT (0)
111 #define M2M_HIF_LEVEL_MASK (0x3fff)
112 /* Subdivision of HIF_LEVEL
113 */
114 #define M2M_HIF_MAJOR_SHIFT (8)
115 #define M2M_HIF_MAJOR_MASK (0x3f)
116 #define M2M_HIF_MINOR_SHIFT (0)
117 #define M2M_HIF_MINOR_MASK (0xff)
118 
119 #define M2M_GET_HIF_INFO(hif_ver) ((uint16)(((hif_ver) >> M2M_HIF_INFO_SHIFT) & M2M_HIF_INFO_MASK))
120 #define M2M_GET_HIF_BLOCK(hif_info) ((uint8)(((hif_info) >> M2M_HIF_BLOCK_SHIFT) & M2M_HIF_BLOCK_MASK))
121 #define M2M_GET_HIF_LEVEL(hif_info) ((uint16)(((hif_info) >> M2M_HIF_LEVEL_SHIFT) & M2M_HIF_LEVEL_MASK))
122 #define M2M_GET_HIF_MAJOR(hif_info) ((uint8)(((hif_info) >> M2M_HIF_MAJOR_SHIFT) & M2M_HIF_MAJOR_MASK))
123 #define M2M_GET_HIF_MINOR(hif_info) ((uint8)(((hif_info) >> M2M_HIF_MINOR_SHIFT) & M2M_HIF_MINOR_MASK))
124 
125 #define M2M_MAKE_HIF_INFO(hif_level) ( \
126  (((uint16)(hif_level) & M2M_HIF_LEVEL_MASK) << M2M_HIF_LEVEL_SHIFT) | \
127  (((uint16)M2M_HIF_BLOCK_VALUE & M2M_HIF_BLOCK_MASK) << M2M_HIF_BLOCK_SHIFT) )
128 
129 /*======*======*======*======*
130  HIF LEVEL
131  *======*======*======*======*/
132 
133 #define M2M_HIF_BLOCK_VALUE (2)
134 
136 #define M2M_HIF_MAJOR_VALUE (1)
137 
139 #define M2M_HIF_MINOR_VALUE (3)
140 
142 #define M2M_HIF_LEVEL ( \
143  ((M2M_HIF_MAJOR_VALUE & M2M_HIF_MAJOR_MASK) << M2M_HIF_MAJOR_SHIFT) | \
144  ((M2M_HIF_MINOR_VALUE & M2M_HIF_MINOR_MASK) << M2M_HIF_MINOR_SHIFT) \
145  )
146 
149 /*======*======*======*======*
150  DRIVER VERSION NO INFO
151  *======*======*======*======*/
152 
153 #define M2M_DRIVER_VERSION_MAJOR_NO (1)
154 
156 #define M2M_DRIVER_VERSION_MINOR_NO (0)
157 
159 #define M2M_DRIVER_VERSION_PATCH_NO (8)
160 
170 #define M2M_BUFFER_MAX_SIZE (1600UL - 4)
171 
175 #define M2M_MAC_ADDRES_LEN 6
176 
179 #define M2M_ETHERNET_HDR_OFFSET 34
180 
184 #define M2M_ETHERNET_HDR_LEN 14
185 
189 #define M2M_MAX_SSID_LEN 33
190 
194 #define M2M_MAX_PSK_LEN 65
195 
198 #define M2M_DEVICE_NAME_MAX 48
199 
203 #define M2M_LISTEN_INTERVAL 1
204 
210 #define M2M_1X_USR_NAME_MAX 21
211 
217 #define M2M_1X_PWD_MAX 41
218 
223 #define M2M_CUST_IE_LEN_MAX 252
224 
228 #define M2M_CONFIG_CMD_BASE 1
229 
231 #define M2M_STA_CMD_BASE 40
232 
234 #define M2M_AP_CMD_BASE 70
235 
237 #define M2M_P2P_CMD_BASE 90
238 
240 #define M2M_OTA_CMD_BASE 100
241 
243 #define M2M_SERVER_CMD_BASE 120
244 
248 #define WEP_40_KEY_STRING_SIZE ((uint8)10)
249 
252 #define WEP_104_KEY_STRING_SIZE ((uint8)26)
253 
255 #define WEP_KEY_MAX_INDEX ((uint8)4)
256 
258 #define M2M_SCAN_DEFAULT_NUM_SLOTS (2)
259 
261 #define M2M_SCAN_DEFAULT_SLOT_TIME (20)
262 
264 #define M2M_SCAN_DEFAULT_PASSIVE_SLOT_TIME (300)
265 
267 #define M2M_SCAN_DEFAULT_NUM_PROBE (2)
268 
270 #define M2M_FASTCONNECT_DEFAULT_RSSI_THRESH (-45)
271 
273 #define M2M_SCAN_FAIL ((uint8)1)
274 
276 #define M2M_JOIN_FAIL ((uint8)2)
277 
279 #define M2M_AUTH_FAIL ((uint8)3)
280 
282 #define M2M_ASSOC_FAIL ((uint8)4)
283 
286 #define M2M_SCAN_ERR_WIFI ((sint8)-2)
287 
289 #define M2M_SCAN_ERR_IP ((sint8)-3)
290 
292 #define M2M_SCAN_ERR_AP ((sint8)-4)
293 
295 #define M2M_SCAN_ERR_P2P ((sint8)-5)
296 
298 #define M2M_SCAN_ERR_WPS ((sint8)-6)
299 
302 /*======*======*======*======*
303  MONTIORING MODE DEFINITIONS
304  *======*======*======*======*/
305 
306 #define M2M_WIFI_FRAME_TYPE_ANY 0xFF
307 
309 #define M2M_WIFI_FRAME_SUB_TYPE_ANY 0xFF
310 
313 /*======*======*======*======*
314  TLS DEFINITIONS
315  *======*======*======*======*/
316 #define TLS_FILE_NAME_MAX 48
317 
319 #define TLS_SRV_SEC_MAX_FILES 8
320 
322 #define TLS_SRV_SEC_START_PATTERN_LEN 8
323 
331  /* @{ */
332 
333 /*======*======*======*======*
334  OTA DEFINITIONS
335  *======*======*======*======*/
336 
337 #define OTA_STATUS_VALID (0x12526285)
338 
341 #define OTA_STATUS_INVALID (0x23987718)
342 
345 #define OTA_MAGIC_VALUE (0x1ABCDEF9)
346 
349 #define OTA_SHA256_DIGEST_SIZE (32)
350 
355 #define OTA_SUCCESS (0)
356 
359 #define OTA_ERR_WORKING_IMAGE_LOAD_FAIL ((sint8)-1)
360 
363 #define OTA_ERR_INVAILD_CONTROL_SEC ((sint8)-2)
364 
367 #define M2M_ERR_OTA_SWITCH_FAIL ((sint8)-3)
368 
371 #define M2M_ERR_OTA_START_UPDATE_FAIL ((sint8)-4)
372 
376 #define M2M_ERR_OTA_ROLLBACK_FAIL ((sint8)-5)
377 
380 #define M2M_ERR_OTA_INVAILD_FLASH_SIZE ((sint8)-6)
381 
384 #define M2M_ERR_OTA_INVAILD_ARG ((sint8)-7)
385 
401 typedef enum{
410 
417 typedef enum{
419  M2M_REQ_DATA_PKT = 0x80 /*BIT7*/
421 
429 typedef enum {
439 
447 typedef enum {
457 
458 
466 typedef enum {
478 
479 
487 typedef enum {
493 
501 typedef enum {
502  PWR_AUTO = ((uint8) 1),
511 
519 typedef enum {
527 
536 typedef enum {
616 
624 typedef enum {
671 } tenuM2mStaCmd;
672 
680 typedef enum {
686 }tenuM2mApCmd;
687 
695 typedef enum {
709 
710 
718 typedef enum {
727 
728 
729 
730 
738 typedef enum {
745 } tenuM2mIpCmd;
746 
754 typedef enum {
778 
786 typedef enum{
796 
797 
805 typedef enum {
813 
821 typedef enum {
833 
834 
842 typedef enum {
848 
856 typedef enum {
887 
895 typedef enum {
896  REG_CH_1 = ((uint16) 1 << 0),
898  REG_CH_2 = ((uint16) 1 << 1),
900  REG_CH_3 = ((uint16) 1 << 2),
902  REG_CH_4 = ((uint16) 1 << 3),
904  REG_CH_5 = ((uint16) 1 << 4),
906  REG_CH_6 = ((uint16) 1 << 5),
908  REG_CH_7 = ((uint16) 1 << 6),
910  REG_CH_8 = ((uint16) 1 << 7),
912  REG_CH_9 = ((uint16) 1 << 8),
914  REG_CH_10 = ((uint16) 1 << 9),
916  REG_CH_11 = ((uint16) 1 << 10),
918  REG_CH_12 = ((uint16) 1 << 11),
920  REG_CH_13 = ((uint16) 1 << 12),
922  REG_CH_14 = ((uint16) 1 << 13),
924  REG_CH_ALL = ((uint16) 0x3FFF),
926  NORTH_AMERICA = ((uint16) 0x7FF),
928  EUROPE = ((uint16) 0x1FFF),
930  ASIA = ((uint16) 0x3FFF)
933 
934 
942 typedef enum {
959 
967 typedef enum {
975 
983 typedef enum{
989 
997 typedef enum{
1012 typedef struct {
1015  uint8 __PAD24__[3];
1018 
1026 typedef struct {
1029  uint8 __PAD24__[3];
1032 
1040 typedef struct {
1043  uint8 __PAD24__[3];
1046 
1054 typedef struct {
1055  //Note: on SAMD D21 the size of double is 8 Bytes
1058  uint8 __PAD16__[2];
1061 
1069 typedef struct{
1076  uint8 __PAD24__[3];
1079 
1080 
1088 typedef struct{
1091  uint8 au8Passwd[M2M_1X_PWD_MAX];
1094  #define __PADDING_tstr1xAuthCredentials_ (4 - ((M2M_1X_USR_NAME_MAX + M2M_1X_PWD_MAX) % 4))
1097 
1098 
1106 typedef union{
1114  #define __PADDING_tuniM2MWifiAuth_ (4 - ((M2M_MAX_PSK_LEN + sizeof(tstr1xAuthCredentials) + sizeof(tstrM2mWifiWepParams)) % 4))
1117 
1118 
1126 typedef struct{
1131 #define __PADDING__ (4 - ((sizeof(tuniM2MWifiAuth) + 1) % 4))
1132  uint8 __PAD__[__PADDING__];
1135 
1136 
1144 typedef struct{
1152 #define __CONN_PAD_SIZE__ (4 - ((sizeof(tstrM2MWifiSecInfo) + M2M_MAX_SSID_LEN + 3) % 4))
1156 
1157 
1168 typedef struct {
1171  char acPinNumber[8];
1173  uint8 __PAD24__[3];
1176 
1177 
1191 typedef struct{
1201  #define __PADDING_tstrM2MWPSInfo_ (4 - ((2 + M2M_MAX_SSID_LEN + M2M_MAX_PSK_LEN) % 4))
1204 
1218 typedef struct{
1228  #define __PADDING_tstrM2MBLEInfo_ (4 - ((2 + M2M_MAX_SSID_LEN + M2M_MAX_PSK_LEN) % 4))
1231 
1243 typedef struct{
1250  uint8 __PAD24__[3];
1252 
1261 typedef struct {
1292  uint8 __PAD16__[2];
1295 
1306 typedef struct {
1308  /*|< Specifies the number of channels allowed in the region (e.g. North America = 11 ... etc.).
1309  */
1310  uint8 __PAD16__[2];
1313 
1324 typedef struct {
1327  uint8 __PAD24__[3];
1329 }tstrM2MScan;
1330 
1331 
1339 typedef struct{
1344  uint8 __PAD16__[2];
1347 
1348 
1356 typedef struct {
1359  uint8 __PAD24__[3];
1362 
1363 
1371 typedef struct {
1380  uint8 au8BSSID[6];
1387 
1388 
1399 typedef struct {
1404  uint8 __PAD16__[2];
1407 
1408 
1419 typedef struct{
1424  uint8 __PAD16__[2];
1426 }tstrM2mPsType;
1427 
1436 typedef struct {
1440 
1449 typedef struct {
1452  uint8 __PAD16__[2];
1454 }tstrM2mLsnInt;
1455 
1456 
1465 typedef struct{
1472  uint8 au8SrcMacAddress[6];
1474  uint8 au8DstMacAddress[6];
1476  uint8 au8BSSID[6];
1480  uint8 __PAD16__[2];
1484 
1485 
1494 typedef struct{
1507  uint8 au8SrcMacAddress[6];
1509  uint8 au8DstMacAddress[6];
1511  uint8 au8BSSID[6];
1521  uint8 __PAD24__[3];
1524 
1525 
1534 typedef struct{
1540 
1541 
1549 typedef struct {
1552  uint8 __PAD24__[3];
1555 
1564 typedef struct {
1579  uint8 au8DHCPServerIP[4];
1581  uint8 __PAD24__[3];
1584 
1592 typedef struct {
1595  uint8 __PAD24__[3];
1598 
1599 
1607 typedef struct {
1610  uint8 __PAD24__[3];
1613 
1614 
1622 typedef struct {
1625  uint8 __PAD24__[3];
1628 
1629 
1641 typedef struct {
1642  uint8 au8Mac[6];
1644  uint8 __PAD16__[2];
1647 
1648 
1656 typedef struct {
1657  uint8 au8DeviceName[M2M_DEVICE_NAME_MAX];
1660 
1661 
1672 typedef struct {
1681 } tstrM2MIPConfig;
1682 
1691 typedef struct{
1693  /*<! Packet Size */
1695  /*<! Packet offset */
1697 
1698 
1707 typedef struct {
1710  char acHttpServerDomainName[64];
1719  uint8 __PAD24__[3];
1721 
1722 
1730 typedef struct{
1733  uint8 au8Password[M2M_MAX_PSK_LEN];
1744 
1745 
1753 typedef struct{
1754  char acSSID[M2M_MAX_SSID_LEN];
1758  uint8 au8IPAddr[4];
1760  uint8 au8MACAddress[6];
1764  uint8 __PAD24__[3];
1767 
1775 typedef struct {
1778  uint8 data[]; //lint !e43
1781 
1789 typedef struct{
1803  #define __PADDING_tstrSystemTime_ (4 - (7 % 4))
1804 
1808 
1816  typedef struct {
1817  uint8 au8macaddress[M2M_MAC_ADDRES_LEN];
1824 
1832 typedef struct {
1835  uint8 __PAD24___[3];
1838 
1846 typedef struct {
1849  uint8 __PAD24__[3];
1852 
1853 
1861 typedef struct{
1874 typedef struct{
1880 
1888 typedef struct{
1891  union{
1896  };
1899 
1907 typedef struct{
1908  uint8 au8SHA1NameHash[20];
1915 
1923 typedef struct{
1924  uint8 au8StartPattern[16];
1929 
1930 
1938 typedef struct{
1939  char acFileName[TLS_FILE_NAME_MAX];
1946 
1954 typedef struct{
1960  /* */
1966 
1967 typedef enum {
1979 
1980 #define TLS_CERTS_CHUNKED_SIG_VALUE 0x6ec8
1981 typedef struct{
1987 
1988 typedef struct{
1991 
2003 typedef enum {
2025 }tenuM2mOtaCmd;
2026 
2034 typedef enum {
2065 typedef enum {
2066 
2087 typedef struct{
2094 
2104 typedef struct {
2142 
2153 typedef struct {
2169  uint8 _PAD16_[2];
2171 
2182 typedef struct {
2198 
2206 typedef struct {
2212  uint8 __PAD16__[2];
2213 }tstrPrng;
2214 #endif
tenuPowerSaveModes
This enum contains all the supported Wi-Fi Power Save modes.
Definition: m2m_types.h:942
M2M Request PRNG.
Definition: m2m_types.h:2206
This struct contains the Wi-Fi scan request.
Definition: m2m_types.h:1324
This struct contains the information for the PS Server command.
Definition: m2m_types.h:1622
This struct stores the Wi-Fi Security Parameters for all supported security modes.
Definition: m2m_types.h:1106
uint8 u8AuthType
Definition: m2m_types.h:1192
uint32 u32OtaControlSecCrc
Definition: m2m_types.h:2139
#define __PADDING_tstrSystemTime_
Definition: m2m_types.h:1803
tenuM2mP2pCmd
This enum contains all the WINC commands while in P2P mode.
Definition: m2m_types.h:695
#define M2M_P2P_CMD_BASE
Definition: m2m_types.h:237
uint32 u8NcfUpgradeVersion
Definition: m2m_types.h:2183
This struct contains a TLS certificate.
Definition: m2m_types.h:1938
This struct contains the Device Name of the WINC. It is used mainly for Wi-Fi Direct device discovery...
Definition: m2m_types.h:1656
This struct contains the MAC address to be used. The WINC loads the mac address from the efuse by def...
Definition: m2m_types.h:1641
This module contains common APIs declarations.
#define WEP_104_KEY_STRING_SIZE
Definition: m2m_types.h:252
signed char sint8
Range of values between -128 to 127.
Definition: nm_bsp.h:111
This struct contains the Wi-Fi TX Packet Info. The M2M Application has the ability to compose raw Wi-...
Definition: m2m_types.h:1534
tenuM2mSetGainsErrcode
Definition: m2m_types.h:487
tenuM2mWepKeyIndex
Definition: m2m_types.h:429
This struct stores the WPS configuration parameters.
Definition: m2m_types.h:1168
uint8 u8PsType
Definition: m2m_types.h:1420
tenuM2mSecType
This enum contains all the supported Wi-Fi security types.
Definition: m2m_types.h:821
uint32 u32OtaRollbackImageOffset
Definition: m2m_types.h:2119
This struct contains the Wi-Fi scan result.
Definition: m2m_types.h:1339
This struct contains the information for the PS Server initialization.
Definition: m2m_types.h:1592
uint32 u32Gateway
Definition: m2m_types.h:1675
uint32 u32OtaRollbackImageValidStatus
Definition: m2m_types.h:2121
This struct stores the credentials for the user to authenticate with the AAA server (WPA-Enterprise M...
Definition: m2m_types.h:1088
tenuM2mConfigCmd
This enum contains all the host commands used to configure the WINC board.
Definition: m2m_types.h:536
#define M2M_1X_PWD_MAX
Definition: m2m_types.h:217
This struct contains the OTA image header.
Definition: m2m_types.h:2087
uint32 u32OtaMagicValue
Definition: m2m_types.h:2105
uint32 u32SubnetMask
Definition: m2m_types.h:1679
This struct contains the Wi-Fi RX Frame Header. The M2M application has the ability to allow Wi-Fi mo...
Definition: m2m_types.h:1494
Info about a RSA public key.
Definition: m2m_types.h:1861
This struct contains the information corresponding to an AP in the scan result list identified by its...
Definition: m2m_types.h:1371
This struct contains the Wi-Fi information for the channel regions.
Definition: m2m_types.h:1306
tenuM2mConnState
This enum contains all the Wi-Fi connection states.
Definition: m2m_types.h:805
Header of a root certificate entry in flash.
Definition: m2m_types.h:1907
uint16 u16PrngSize
Definition: m2m_types.h:2210
uint32 u32OtaLastCheckTime
Definition: m2m_types.h:2111
uint32 u32OtaCortusAppRollbackOffset
Definition: m2m_types.h:2133
tstrM2MAPConfig strApConfig
Definition: m2m_types.h:1708
This struct contains a BLE message.
Definition: m2m_types.h:1775
#define __PADDING_tstrM2MWPSInfo_
Definition: m2m_types.h:1201
uint32 u32OtaCurrentworkingImagFirmwareVer
Definition: m2m_types.h:2115
This struct contains the provisioning information obtained from the HTTP Provisioning server...
Definition: m2m_types.h:1730
uint8 u8NcdRequiredUpgrade
Definition: m2m_types.h:2189
#define M2M_SERVER_CMD_BASE
Definition: m2m_types.h:243
Info about the public key contained in a root certificate.
Definition: m2m_types.h:1888
uint32 u32OtaCortusAppWorkingValidSts
Definition: m2m_types.h:2129
tenuM2mOtaCmd
This enum contains all the WINC commands used for OTA operation.
Definition: m2m_types.h:2003
This struct contains the information from the Multicast filter.
Definition: m2m_types.h:1816
#define __PADDING_tstr1xAuthCredentials_
Definition: m2m_types.h:1094
tstrRootCertRsaKeyInfo strRsaKeyInfo
Definition: m2m_types.h:1892
#define __PADDING_tstrM2MBLEInfo_
Definition: m2m_types.h:1228
This struct contains the Wi-Fi Monitor Mode Filter. It sets the filtering criteria for WLAN packets w...
Definition: m2m_types.h:1465
tenuM2mWifiMode
This enum contains all the supported Wi-Fi Operation Modes.
Definition: m2m_types.h:967
This struct contains the Listen Interval. It is the value of the Wi-Fi StA Listen Interval when power...
Definition: m2m_types.h:1449
#define M2M_1X_USR_NAME_MAX
Definition: m2m_types.h:210
unsigned short uint16
Range of values between 0 to 65535.
Definition: nm_bsp.h:96
This struct contains the OTA update information.
Definition: m2m_types.h:2182
#define __CONN_PAD_SIZE__
Definition: m2m_types.h:1152
tenuM2mDefaultConnErrcode
Definition: m2m_types.h:447
#define M2M_MAX_PSK_LEN
Definition: m2m_types.h:194
uint16 u16ScanRegion
Definition: m2m_types.h:1307
tenuM2mScanRegion
This enum contains all the Wi-Fi channel regions.
Definition: m2m_types.h:895
tenuM2mReqpkt
Definition: m2m_types.h:417
tenuOtaUpdateStatus
This struct contains the OTA return status.
Definition: m2m_types.h:2034
uint32 u32OtaCortusAppWorkingVer
Definition: m2m_types.h:2131
#define __PADDING_tuniM2MWifiAuth_
Definition: m2m_types.h:1114
uint32 u32OtaMagicValue
Definition: m2m_types.h:2088
This struct contains the sleep time for the Power Save request.
Definition: m2m_types.h:1436
This struct contains the provisioning mode configuration.
Definition: m2m_types.h:1707
uint32 u32nEntries
Definition: m2m_types.h:1957
This struct contains the Wi-Fi connection state.
Definition: m2m_types.h:1399
This struct stores logging information.
Definition: m2m_types.h:1040
#define TLS_SRV_SEC_START_PATTERN_LEN
Definition: m2m_types.h:322
This struct contains the Control Section. The Control Section is used to define the working image and...
Definition: m2m_types.h:2104
tenuM2mPwrMode
Definition: m2m_types.h:501
This struct contains the connection information.
Definition: m2m_types.h:1753
This struct stores the authentication credentials to connect to a Wi-Fi network.
Definition: m2m_types.h:1126
tenuM2mSsidMode
Definition: m2m_types.h:842
tuniM2MWifiAuth uniAuth
Definition: m2m_types.h:1127
uint32 u32OtaCurrentworkingImagHifVer
Definition: m2m_types.h:2117
uint16 u16LsnInt
Definition: m2m_types.h:1450
tenuOtaUpdateStatusType
This struct contains the OTA update status type.
Definition: m2m_types.h:2065
This struct contains the response error of m2m_default_connect.
Definition: m2m_types.h:1243
tenuTlsFlashStatus
Definition: m2m_types.h:1967
tenuM2mConnChangedErrcode
Definition: m2m_types.h:466
uint16 u16PassiveScanTime
Definition: m2m_types.h:1286
#define M2M_STA_CMD_BASE
Definition: m2m_types.h:231
This struct contains the Power Save configuration.
Definition: m2m_types.h:1419
This struct contains the static IP configuration.
Definition: m2m_types.h:1672
tenuM2mStaCmd
This enum contains all the WINC commands while in Station mode.
Definition: m2m_types.h:624
This struct stores the WEP security key parameters.
Definition: m2m_types.h:1069
tstrM2mWifiWepParams strWepInfo
Definition: m2m_types.h:1111
#define M2M_MAC_ADDRES_LEN
Definition: m2m_types.h:175
uint32 u32OtaPayloadSzie
Definition: m2m_types.h:2091
This struct contains the information for the PS Client state.
Definition: m2m_types.h:1607
This struct contains a set of TLS certificates.
Definition: m2m_types.h:1954
uint32 u32OtaRollbackImagHifVer
Definition: m2m_types.h:2125
This struct contains the information of the gain table index from flash to be used.
Definition: m2m_types.h:1832
uint32 u8NcfCurrentVersion
Definition: m2m_types.h:2185
uint32 u32OtaCurrentworkingImagOffset
Definition: m2m_types.h:2113
uint32 u32OtaSequenceNumber
Definition: m2m_types.h:2109
uint8 u8DownloadUrlSize
Definition: m2m_types.h:2193
uint32 u8NcdUpgradeVersion
Definition: m2m_types.h:2187
uint8 u8ChNum
Definition: m2m_types.h:1325
uint32 u32OtaCortusAppWorkingOffset
Definition: m2m_types.h:2127
USBInterfaceDescriptor data
uint8 u8DownloadUrlOffset
Definition: m2m_types.h:2191
#define M2M_CONFIG_CMD_BASE
Definition: m2m_types.h:228
This struct contains the system time.
Definition: m2m_types.h:1789
uint32 u32OtaRollbackImagFirmwareVer
Definition: m2m_types.h:2123
tstrRootCertEcdsaKeyInfo strEcsdaKeyInfo
Definition: m2m_types.h:1894
#define TLS_FILE_NAME_MAX
Definition: m2m_types.h:316
This struct contains the Listen Channel for P2P connect.
Definition: m2m_types.h:1549
tenuRootCertPubKeyType
This enum contains the supported public key types for TLS root certificates.
Definition: m2m_types.h:997
tenuM2mIpCmd
This enum contains all the WINC commands related to IP.
Definition: m2m_types.h:738
The Wi-Fi Scan results list is stored in firmware. This struct contains the index by which the applic...
Definition: m2m_types.h:1356
uint32 u32OtaCortusAppRollbackValidSts
Definition: m2m_types.h:2135
This struct stores the Wi-Fi connect request.
Definition: m2m_types.h:1144
Header of the root certificate flash storage area.
Definition: m2m_types.h:1923
tstrM2MWifiSecInfo strSec
Definition: m2m_types.h:1145
This struct contains response when the firmware has failed to configure the gains from flash...
Definition: m2m_types.h:1846
#define __PADDING__
Definition: m2m_types.h:1131
tenuM2mTxPwrLevel
Definition: m2m_types.h:519
#define M2M_OTA_CMD_BASE
Definition: m2m_types.h:240
WPS Result.
Definition: m2m_types.h:1191
This struct contains the configuration options for Wi-Fi scan.
Definition: m2m_types.h:1261
tenuM2mSslCmd
This enum contains WINC commands related to TLS handshake.
Definition: m2m_types.h:786
uint16 u16PktOffset
Definition: m2m_types.h:1694
uint16 u16Year
Definition: m2m_types.h:1790
tenuM2mScanCh
This enum contains all the Wi-Fi RF channels.
Definition: m2m_types.h:856
tstrSystemTime strExpDate
Definition: m2m_types.h:1910
tenuM2mServerCmd
These commands are currently not supported.
Definition: m2m_types.h:718
BLE Result.
Definition: m2m_types.h:1218
unsigned long uint32
Range of values between 0 to 4294967295.
Definition: nm_bsp.h:103
This struct contains the size and data offset for the received packet.
Definition: m2m_types.h:1691
#define M2M_MAX_SSID_LEN
Definition: m2m_types.h:189
#define TLS_SRV_SEC_MAX_FILES
Definition: m2m_types.h:319
uint32 u32OtaFormatVersion
Definition: m2m_types.h:2107
tstrRootCertPubKeyInfo strPubKey
Definition: m2m_types.h:1912
uint8 u8ListenChannel
Definition: m2m_types.h:1567
This struct stores the battery voltage.
Definition: m2m_types.h:1054
uint8 u8AuthType
Definition: m2m_types.h:1219
unsigned char uint8
Range of values between 0 to 255.
Definition: nm_bsp.h:89
Info about a ECDSA public key.
Definition: m2m_types.h:1874
tenuWPSTrigger
This enum contains the WPS triggering methods.
Definition: m2m_types.h:983
uint32 u32StaticIP
Definition: m2m_types.h:1673
tenuM2mApCmd
This enum contains all the WINC commands while in AP mode.
Definition: m2m_types.h:680
#define M2M_DEVICE_NAME_MAX
Definition: m2m_types.h:198
uint32 u32OtaCortusAppRollbackVer
Definition: m2m_types.h:2137
uint8 u8BcastEn
Definition: m2m_types.h:1422
This struct contains the OTA update status.
Definition: m2m_types.h:2153
tenuM2mSigmaCmd
This enum contains all the WINC commands related to Sigma.
Definition: m2m_types.h:754
This structure holds the configuration parameters for the AP mode. It should be set by the applicatio...
Definition: m2m_types.h:1564
uint8 * pu8RngBuff
Definition: m2m_types.h:2208
tenuM2mReqGroup
Definition: m2m_types.h:401
#define M2M_AP_CMD_BASE
Definition: m2m_types.h:234
This struct stores the Tx Power levels.
Definition: m2m_types.h:1026
tstr1xAuthCredentials strCred1x
Definition: m2m_types.h:1109
uint32 u32NextWriteAddr
Definition: m2m_types.h:1959


inertial_sense_ros
Author(s):
autogenerated on Sun Feb 28 2021 03:17:58