Typedefs | |
typedef void(* | tpfAppEthCb) (uint8 u8MsgType, void *pvMsg, void *pvCtrlBuf) |
Ethernet (Bypass mode) notification callback function receiving Bypass mode events as defined in the Wi-Fi responses enumeration tenuM2mStaCmd. More... | |
typedef void(* | tpfAppMonCb) (tstrM2MWifiRxPacketInfo *pstrWifiRxPacket, uint8 *pu8Payload, uint16 u16PayloadSize) |
Wi-Fi monitoring mode callback function. This function delivers all received wi-Fi packets to the application. Applications requiring to operate in the monitoring shall call the function m2m_wifi_enable_monitoring_mode, each frame received will invoke a single call to this callback function. Monitoring mode may be disabled by calling m2m_wifi_disable_monitoring_mode. More... | |
typedef void(* | tpfAppWifiCb) (uint8 u8MsgType, void *pvMsg) |
This is the main callback function for the Wi-Fi driver and is responsible for processing any M2M_WIFI events that are received on the Wi-Fi interface. These events (notifications) are usually received in response to earlier Wi-Fi requests such as m2m_wifi_request_scan, and m2m_wifi_connect. More... | |
tpfAppEthCb |
Ethernet (Bypass mode) notification callback function receiving Bypass mode events as defined in the Wi-Fi responses enumeration tenuM2mStaCmd.
If bypass mode is enabled, applications must ensure this callback function is registered with the Wi-Fi driver by calling m2m_wifi_init.
[in] | u8MsgType | Type of notification. Possible types are: |
[in] | pvMsg | A pointer to a buffer containing the notification parameters (if any). This must be casted to the data type uint8 *. |
[in] | pvControlBuf | A pointer to control buffer describing the accompanied message. This must be casted to the data type tstrM2mIpCtrlBuf. |
Definition at line 300 of file m2m_wifi.h.
tpfAppMonCb |
Wi-Fi monitoring mode callback function. This function delivers all received wi-Fi packets to the application. Applications requiring to operate in the monitoring shall call the function m2m_wifi_enable_monitoring_mode, each frame received will invoke a single call to this callback function. Monitoring mode may be disabled by calling m2m_wifi_disable_monitoring_mode.
[in] | pstrWifiRxPacket | Pointer to a structure holding the Wi-Fi packet header parameters. |
[in] | pu8Payload | Pointer to the buffer holding the Wi-Fi packet payload information required by the application starting from the defined OFFSET by the application (when calling m2m_wifi_enable_monitoring_mode). Could hold a value of NULL, if the application does not need any data from the payload. |
[in] | u16PayloadSize | The size of the payload in bytes. |
Definition at line 330 of file m2m_wifi.h.
tpfAppWifiCb |
This is the main callback function for the Wi-Fi driver and is responsible for processing any M2M_WIFI events that are received on the Wi-Fi interface. These events (notifications) are usually received in response to earlier Wi-Fi requests such as m2m_wifi_request_scan, and m2m_wifi_connect.
Most Wi-Fi APIs are asynchronous and calling them generates information that is passed back via this callback - for instance m2m_wifi_request_scan will return a set of detected networks.
Applications must ensure a callback function is registered with the Wi-Fi driver by calling m2m_wifi_init.
[in] | u8MsgType | Type of notification. Possible types are:
|
[in] | pvMsg | A pointer to a buffer containing the notification parameters (if any). It should be Casted to the data type associated with type of notification. |
Definition at line 271 of file m2m_wifi.h.
enum tenuInfoElementId |
Enumeration for the Wi-Fi Information Element(IE) IDs, which indicates the specific type of IEs. IEs are management frame information included in management frames.
Values are defined as per the IEEE 802.11 standard.
Definition at line 157 of file m2m_wifi.h.
enum tenuM2mApCmd |
This enum contains all the WINC commands while in AP mode.
Enumerator | |
---|---|
M2M_WIFI_REQ_ENABLE_AP | Request to enable AP mode. |
M2M_WIFI_REQ_DISABLE_AP | Request to disable AP mode. |
M2M_WIFI_MAX_AP_ALL |
Definition at line 680 of file m2m_types.h.
enum tenuM2mConfigCmd |
This enum contains all the host commands used to configure the WINC board.
Definition at line 536 of file m2m_types.h.
Definition at line 466 of file m2m_types.h.
enum tenuM2mConnState |
This enum contains all the Wi-Fi connection states.
Enumerator | |
---|---|
M2M_WIFI_DISCONNECTED | Wi-Fi state is disconnected. |
M2M_WIFI_CONNECTED | Wi-Fi state is connected. |
M2M_WIFI_UNDEF | Undefined Wi-Fi State. |
Definition at line 805 of file m2m_types.h.
Definition at line 447 of file m2m_types.h.
enum tenuM2mIpCmd |
This enum contains all the WINC commands related to IP.
Enumerator | |
---|---|
M2M_IP_REQ_STATIC_IP_CONF | Request to set static IP. |
M2M_IP_REQ_ENABLE_DHCP | Request to enable DHCP. |
M2M_IP_REQ_DISABLE_DHCP | Request to disable DHCP. |
Definition at line 738 of file m2m_types.h.
enum tenuM2mP2pCmd |
This enum contains all the WINC commands while in P2P mode.
Definition at line 695 of file m2m_types.h.
enum tenuM2mPwrMode |
Definition at line 501 of file m2m_types.h.
enum tenuM2mReqGroup |
Enumerator | |
---|---|
M2M_REQ_GROUP_MAIN | |
M2M_REQ_GROUP_WIFI | |
M2M_REQ_GROUP_IP | |
M2M_REQ_GROUP_HIF | |
M2M_REQ_GROUP_OTA | |
M2M_REQ_GROUP_SSL | |
M2M_REQ_GROUP_SIGMA |
Definition at line 401 of file m2m_types.h.
enum tenuM2mReqpkt |
Enumerator | |
---|---|
M2M_REQ_CONFIG_PKT | |
M2M_REQ_DATA_PKT |
Definition at line 417 of file m2m_types.h.
enum tenuM2mScanCh |
This enum contains all the Wi-Fi RF channels.
Definition at line 856 of file m2m_types.h.
enum tenuM2mScanRegion |
This enum contains all the Wi-Fi channel regions.
Definition at line 895 of file m2m_types.h.
enum tenuM2mSecType |
This enum contains all the supported Wi-Fi security types.
This enum contains all the supported Wi-Fi SSID types.
Definition at line 821 of file m2m_types.h.
enum tenuM2mServerCmd |
These commands are currently not supported.
Enumerator | |
---|---|
M2M_WIFI_REQ_CLIENT_CTRL | Currently not supported. |
M2M_WIFI_RESP_CLIENT_INFO | Currently not supported. |
M2M_WIFI_REQ_SERVER_INIT | Currently not supported. |
M2M_WIFI_MAX_SERVER_ALL |
Definition at line 718 of file m2m_types.h.
Enumerator | |
---|---|
M2M_ERR_GAIN_TABLE_INVALID | Failure response due to trying to use an invalid table |
M2M_ERR_READ_GAIN_TABLE | Failure to read gains from flash |
Definition at line 487 of file m2m_types.h.
enum tenuM2mSigmaCmd |
This enum contains all the WINC commands related to Sigma.
Definition at line 754 of file m2m_types.h.
enum tenuM2mSsidMode |
Enumerator | |
---|---|
SSID_MODE_VISIBLE | SSID is visible to others. |
SSID_MODE_HIDDEN | SSID is hidden. |
Definition at line 842 of file m2m_types.h.
enum tenuM2mSslCmd |
This enum contains WINC commands related to TLS handshake.
Enumerator | |
---|---|
M2M_SSL_REQ_CERT_VERIF | |
M2M_SSL_REQ_ECC | |
M2M_SSL_RESP_ECC | |
M2M_SSL_RSV | |
M2M_SSL_REQ_WRITE_OWN_CERTS | |
M2M_SSL_REQ_SET_CS_LIST | |
M2M_SSL_RESP_SET_CS_LIST | |
M2M_SSL_RESP_WRITE_OWN_CERTS |
Definition at line 786 of file m2m_types.h.
enum tenuM2mStaCmd |
This enum contains all the WINC commands while in Station mode.
Definition at line 624 of file m2m_types.h.
enum tenuM2mTxPwrLevel |
Enumerator | |
---|---|
TX_PWR_HIGH | PPA Gain 6dbm PA Gain 18dbm |
TX_PWR_MED | PPA Gain 6dbm PA Gain 12dbm |
TX_PWR_LOW | PPA Gain 6dbm PA Gain 6dbm |
Definition at line 519 of file m2m_types.h.
enum tenuM2mWepKeyIndex |
Definition at line 429 of file m2m_types.h.
enum tenuM2mWifiMode |
This enum contains all the supported Wi-Fi Operation Modes.
Enumerator | |
---|---|
M2M_WIFI_MODE_NORMAL | Customer firmware. |
M2M_WIFI_MODE_CONFIG | Production test firmware. |
Definition at line 967 of file m2m_types.h.
enum tenuPowerSaveModes |
This enum contains all the supported Wi-Fi Power Save modes.
Definition at line 942 of file m2m_types.h.
This enum contains the supported public key types for TLS root certificates.
Enumerator | |
---|---|
ROOT_CERT_PUBKEY_RSA | RSA public key. |
ROOT_CERT_PUBKEY_ECDSA | ECDSA public key. |
Definition at line 997 of file m2m_types.h.
enum tenuSubTypes |
Enumeration for Wi-Fi MAC Frame subtype code (6-bit). The frame subtypes fall into one of the three frame type groups as defined in tenuWifiFrameType (MANAGEMENT, CONTROL & DATA).
Values are defined as per the IEEE 802.11 standard.
Definition at line 100 of file m2m_wifi.h.
enum tenuWifiCapability |
Enumeration for capability Information field bit. The value of the capability information field from the 802.11 management frames received by the wireless LAN interface. Defining the capabilities of the Wi-Fi system.
Values are defined as per the IEEE 802.11 standard.
Definition at line 213 of file m2m_wifi.h.
enum tenuWifiFrameType |
Enumeration for Wi-Fi MAC frame type codes (2-bit) The following types are used to identify the type of frame sent or received. Each frame type constitutes a number of frame subtypes as defined in tenuSubTypes to specify the exact type of frame.
Values are defined as per the IEEE 802.11 standard.
Enumerator | |
---|---|
MANAGEMENT | Wi-Fi Management frame (Probe Req/Resp, Beacon, Association Req/Resp ...etc). |
CONTROL | Wi-Fi Control frame (eg. ACK frame). |
DATA_BASICTYPE | Wi-Fi Data frame. |
RESERVED |
Definition at line 74 of file m2m_wifi.h.
enum tenuWPSTrigger |
This enum contains the WPS triggering methods.
Enumerator | |
---|---|
WPS_PIN_TRIGGER | WPS is triggered in PIN method. |
WPS_PBC_TRIGGER | WPS is triggered via push button. |
Definition at line 983 of file m2m_types.h.