NNN50 WIFI_API library

Dependents:   NNN50_CE_Test_UDP NNN50_linux_firmware NNN50_SoftAP_HelloWorld NNN50_BLEWIFISensor ... more

Embed: (wiki syntax)

« Back to documentation index

m2m_types.h File Reference

m2m_types.h File Reference

WINC Application Interface Internal Types. More...

Go to the source code of this file.

Data Structures

struct  tstrM2mTxPwrLevel
 Tx power level. More...
struct  tstrM2mEnableLogs
 Enable Firmware logs. More...
struct  tstrM2mBatteryVoltage
 Battery Voltage. More...
struct  tstrM2mWifiGainsParams
 Gain Values. More...
struct  tstrM2mWifiWepParams
 WEP security key parameters. More...
struct  tstr1xAuthCredentials
 Credentials for the user to authenticate with the AAA server (WPA-Enterprise Mode IEEE802.1x). More...
union  tuniM2MWifiAuth
 Wi-Fi Security Parameters for all supported security modes. More...
struct  tstrM2MWifiSecInfo
 Authentication credentials to connect to a Wi-Fi network. More...
struct  tstrM2mWifiConnect
 Wi-Fi Connect Request. More...
struct  tstrM2MWPSConnect
 WPS Configuration parameters. More...
struct  tstrM2MWPSInfo
 WPS Result. More...
struct  tstrM2MDefaultConnResp
 Response error of the m2m_default_connect. More...
struct  tstrM2MScanOption
 Scan options and configurations. More...
struct  tstrM2MScanRegion
 Wi-Fi channel regulation region information. More...
struct  tstrM2MScan
 Wi-Fi Scan Request. More...
struct  tstrCyptoResp
 crypto response More...
struct  tstrM2mScanDone
 Wi-Fi Scan Result. More...
struct  tstrM2mReqScanResult
 Scan Result Request. More...
struct  tstrM2mWifiscanResult
 Wi-Fi Scan Result. More...
struct  tstrM2mWifiStateChanged
 Wi-Fi Connection State. More...
struct  tstrM2mPsType
 Power Save Configuration. More...
struct  tstrM2mSlpReqTime
 Manual power save request sleep time. More...
struct  tstrM2mLsnInt
 Listen interval. More...
struct  tstrM2MWifiMonitorModeCtrl
 Wi-Fi Monitor Mode Filter. More...
struct  tstrM2MWifiRxPacketInfo
 Wi-Fi RX Frame Header. More...
struct  tstrM2MWifiTxPacketInfo
 Wi-Fi TX Packet Info. More...
struct  tstrM2MP2PConnect
 Set the device to operate in the Wi-Fi Direct (P2P) mode. More...
struct  tstrM2MAPConfig
 AP Configuration. More...
struct  tstrM2mServerInit
 PS Server initialization. More...
struct  tstrM2mClientState
 PS Client State. More...
struct  tstrM2Mservercmd
 PS Server CMD. More...
struct  tstrM2mSetMacAddress
 Sets the MAC address from application. The WINC load the mac address from the effuse by default to the WINC configuration memory, but that function is used to let the application overwrite the configuration memory with the mac address from the host. More...
struct  tstrM2MDeviceNameConfig
 Device name. More...
struct  tstrM2MIPConfig
 Static IP configuration. More...
struct  tstrM2mIpRsvdPkt
 Received Packet Size and Data Offset. More...
struct  tstrM2MProvisionModeConfig
 M2M Provisioning Mode Configuration. More...
struct  tstrM2MProvisionInfo
 M2M Provisioning Information obtained from the HTTP Provisioning server. More...
struct  tstrM2MConnInfo
 M2M Provisioning Information obtained from the HTTP Provisioning server. More...
struct  tstrOtaInitHdr
 OTA Image Header. More...
struct  tstrOtaControlSec
 Control section structure is used to define the working image and the validity of the roll-back image and its offset, also both firmware versions is kept in that structure. More...
struct  tstrOtaUpdateStatusResp
 OTA Update Information. More...
struct  tstrOtaUpdateInfo
 OTA Update Information. More...
struct  tstrSystemTime
 Used for time storage. More...
struct  tstrM2MMulticastMac
 M2M add/remove multi-cast mac address. More...
struct  tstrPrng
 M2M Request PRNG. More...
struct  tstrTlsCrlEntry
 Certificate data for inclusion in a revocation list (CRL) More...
struct  tstrTlsCrlInfo
 Certificate revocation list details. More...
struct  tstrTlsSrvSecFileEntry
 This struct contains a TLS certificate. More...
struct  tstrTlsSrvSecHdr
 This struct contains a set of TLS certificates. More...

Enumerations

enum  tenuM2mDefaultConnErrcode { M2M_DEFAULT_CONN_INPROGRESS = ((sint8)-23), M2M_DEFAULT_CONN_FAIL, M2M_DEFAULT_CONN_SCAN_MISMATCH, M2M_DEFAULT_CONN_EMPTY_LIST }
enum  tenuOtaError {
  OTA_SUCCESS = (0), OTA_ERR_WORKING_IMAGE_LOAD_FAIL = ((sint8) -1), OTA_ERR_INVAILD_CONTROL_SEC = ((sint8) -2), M2M_ERR_OTA_SWITCH_FAIL = ((sint8) -3),
  M2M_ERR_OTA_START_UPDATE_FAIL = ((sint8) -4), M2M_ERR_OTA_ROLLBACK_FAIL = ((sint8) -5), M2M_ERR_OTA_INVAILD_FLASH_SIZE = ((sint8) -6), M2M_ERR_OTA_INVAILD_ARG = ((sint8) -7),
  M2M_ERR_OTA_INPROGRESS = ((sint8) -8)
}
enum  tenuM2mConnChangedErrcode {
  M2M_ERR_SCAN_FAIL = ((uint8)1), M2M_ERR_JOIN_FAIL, M2M_ERR_AUTH_FAIL, M2M_ERR_ASSOC_FAIL,
  M2M_ERR_CONN_INPROGRESS
}
enum  tenuM2mWepKeyIndex { , M2M_WIFI_WEP_KEY_INDEX_4 }
enum  tenuM2mPwrMode { PWR_AUTO = ((uint8) 1) }
enum  tenuM2mTxPwrLevel { TX_PWR_HIGH = ((uint8) 1), TX_PWR_MED, TX_PWR_LOW }
enum  tenuM2mConfigCmd {
  M2M_WIFI_REQ_RESTART = M2M_CONFIG_CMD_BASE, M2M_WIFI_REQ_SET_MAC_ADDRESS, M2M_WIFI_REQ_CURRENT_RSSI, M2M_WIFI_RESP_CURRENT_RSSI,
  M2M_WIFI_REQ_GET_CONN_INFO, M2M_WIFI_RESP_CONN_INFO, M2M_WIFI_REQ_SET_DEVICE_NAME, M2M_WIFI_REQ_START_PROVISION_MODE,
  M2M_WIFI_RESP_PROVISION_INFO, M2M_WIFI_REQ_STOP_PROVISION_MODE, M2M_WIFI_REQ_SET_SYS_TIME, M2M_WIFI_REQ_ENABLE_SNTP_CLIENT,
  M2M_WIFI_REQ_DISABLE_SNTP_CLIENT, M2M_WIFI_RESP_MEMORY_RECOVER, M2M_WIFI_REQ_CUST_INFO_ELEMENT, M2M_WIFI_REQ_SCAN,
  M2M_WIFI_RESP_SCAN_DONE, M2M_WIFI_REQ_SCAN_RESULT, M2M_WIFI_RESP_SCAN_RESULT, M2M_WIFI_REQ_SET_SCAN_OPTION,
  M2M_WIFI_REQ_SET_SCAN_REGION, M2M_WIFI_REQ_SET_POWER_PROFILE, M2M_WIFI_REQ_SET_TX_POWER, M2M_WIFI_REQ_SET_BATTERY_VOLTAGE,
  M2M_WIFI_REQ_SET_ENABLE_LOGS, M2M_WIFI_REQ_GET_SYS_TIME, M2M_WIFI_RESP_GET_SYS_TIME, M2M_WIFI_REQ_SEND_ETHERNET_PACKET,
  M2M_WIFI_RESP_ETHERNET_RX_PACKET, M2M_WIFI_REQ_SET_MAC_MCAST, M2M_WIFI_REQ_GET_PRNG, M2M_WIFI_RESP_GET_PRNG,
  M2M_WIFI_REQ_SCAN_SSID_LIST, M2M_WIFI_REQ_SET_GAINS, M2M_WIFI_REQ_PASSIVE_SCAN
}
 

This enum contains all the host commands used to configure the WINC board.

More...
enum  tenuM2mStaCmd {
  M2M_WIFI_REQ_CONNECT = M2M_STA_CMD_BASE, M2M_WIFI_REQ_DEFAULT_CONNECT, M2M_WIFI_RESP_DEFAULT_CONNECT, M2M_WIFI_REQ_DISCONNECT,
  M2M_WIFI_RESP_CON_STATE_CHANGED, M2M_WIFI_REQ_SLEEP, M2M_WIFI_REQ_WPS_SCAN, M2M_WIFI_REQ_WPS,
  M2M_WIFI_REQ_START_WPS, M2M_WIFI_REQ_DISABLE_WPS, M2M_WIFI_REQ_DHCP_CONF, M2M_WIFI_RESP_IP_CONFIGURED,
  M2M_WIFI_RESP_IP_CONFLICT, M2M_WIFI_REQ_ENABLE_MONITORING, M2M_WIFI_REQ_DISABLE_MONITORING, M2M_WIFI_RESP_WIFI_RX_PACKET,
  M2M_WIFI_REQ_SEND_WIFI_PACKET, M2M_WIFI_REQ_LSN_INT, M2M_WIFI_REQ_DOZE
}
 

This enum contains all the WINC commands while in Station mode.

More...
enum  tenuM2mApCmd { M2M_WIFI_REQ_ENABLE_AP = M2M_AP_CMD_BASE, M2M_WIFI_REQ_DISABLE_AP }
 

This enum contains all the WINC commands while in AP mode.

More...
enum  tenuM2mP2pCmd { M2M_WIFI_REQ_P2P_INT_CONNECT = M2M_P2P_CMD_BASE, M2M_WIFI_REQ_ENABLE_P2P, M2M_WIFI_REQ_DISABLE_P2P, M2M_WIFI_REQ_P2P_REPOST }
 

This enum contains all the WINC commands while in P2P mode.

More...
enum  tenuM2mServerCmd
 

This enum contains all the WINC commands while in PS mode. These command are currently not supported.

More...
enum  tenuM2mConnState { M2M_WIFI_DISCONNECTED = 0, M2M_WIFI_CONNECTED, M2M_WIFI_UNDEF = 0xff }
 

Wi-Fi Connection State.

More...
enum  tenuM2mSecType {
  M2M_WIFI_SEC_INVALID = 0, M2M_WIFI_SEC_OPEN, M2M_WIFI_SEC_WPA_PSK, M2M_WIFI_SEC_WEP,
  M2M_WIFI_SEC_802_1X
}
 

Wi-Fi Supported Security types.

More...
enum  tenuM2mSsidMode { SSID_MODE_VISIBLE = 0, SSID_MODE_HIDDEN }
enum  tenuM2mScanCh
 

Wi-Fi RF Channels.

More...
enum  tenuM2mScanRegion { , EUROPE = ((uint16) 0x1FFF), ASIA = ((uint16) 0x3FFF) }
 

Wi-Fi RF Channels.

More...
enum  tenuPowerSaveModes {
  M2M_NO_PS, M2M_PS_AUTOMATIC, M2M_PS_H_AUTOMATIC, M2M_PS_DEEP_AUTOMATIC,
  M2M_PS_MANUAL
}
 

Power Save Modes.

More...
enum  tenuM2mWifiMode { M2M_WIFI_MODE_NORMAL = ((uint8) 1), M2M_WIFI_MODE_ATE_HIGH, M2M_WIFI_MODE_ATE_LOW, M2M_WIFI_MODE_ETHERNET }
 

Wi-Fi Operation Mode.

More...
enum  tenuWPSTrigger { WPS_PIN_TRIGGER = 0, WPS_PBC_TRIGGER = 4 }
 

WPS Triggering Methods.

More...
enum  tenuOtaUpdateStatus {
  OTA_STATUS_SUCSESS = 0, OTA_STATUS_FAIL = 1, OTA_STATUS_INVAILD_ARG = 2, OTA_STATUS_INVAILD_RB_IMAGE = 3,
  OTA_STATUS_INVAILD_FLASH_SIZE = 4, OTA_STATUS_AlREADY_ENABLED = 5, OTA_STATUS_UPDATE_INPROGRESS = 6, OTA_STATUS_IMAGE_VERIF_FAILED = 7,
  OTA_STATUS_CONNECTION_ERROR = 8, OTA_STATUS_SERVER_ERROR = 9, OTA_STATUS_ABORTED = 10
}
 

OTA return status.

More...
enum  tenuOtaUpdateStatusType { DL_STATUS = 1, SW_STATUS = 2, RB_STATUS = 3, AB_STATUS = 4 }
 

OTA update Status type.

More...
enum  tenuSslCertExpSettings { SSL_CERT_EXP_CHECK_DISABLE, SSL_CERT_EXP_CHECK_ENABLE, SSL_CERT_EXP_CHECK_EN_IF_SYS_TIME }
 

SSL Certificate Expiry Validation Options.

More...

Detailed Description

WINC Application Interface Internal Types.

Copyright (c) 2016-2017 Atmel Corporation. All rights reserved.

Definition in file m2m_types.h.