38 #ifndef __M2M_WIFI_H__ 39 #define __M2M_WIFI_H__
sint8 m2m_wifi_reinit_start(tstrWifiInitParam *param)
Second part of m2m_wifi_reinit, continuing from where m2m_wifi_reinit_hold left off.
NMI_API sint8 m2m_wifi_connect(char *pcSsid, uint8 u8SsidLen, uint8 u8SecType, void *pvAuthInfo, uint16 u16Ch)
Asynchronous API to request connection to a specified access point.
NMI_API sint8 m2m_wifi_req_scan_result(uint8 index)
Asynchronous API to request the information of an access point discovered via scanning.
NMI_API sint8 m2m_wifi_ble_api_send(uint8 *msg, uint32 len)
NMI_API sint8 m2m_wifi_set_sleep_mode(uint8 PsTyp, uint8 BcastEn)
Synchronous API to set the power-save mode of the WINC IC.
This module contains common APIs declarations.
bool param(const std::string ¶m_name, T ¶m_val, const T &default_val)
signed char sint8
Range of values between -128 to 127.
sint8 m2m_wifi_set_power_profile(uint8 u8PwrMode)
Change the power profile mode.
sint8 m2m_wifi_set_battery_voltage(uint16 u16BattVoltx100)
Enable or Disable logs in run time (Disable Firmware logs will enhance the firmware start-up time and...
NMI_API sint8 m2m_wifi_disable_ap(void)
Synchronous API to disable access point mode on the WINC IC.
NMI_API sint8 m2m_wifi_set_scan_options(tstrM2MScanOption *ptstrM2MScanOption)
Synchronous API for configuring the behaviour of the WINC IC's network scanning functions.
tstrEthInitParam strEthInitParam
NMI_API sint8 m2m_wifi_start_provision_mode(tstrM2MAPConfig *pstrAPConfig, char *pcHttpServerDomainName, uint8 bEnableHttpRedirect)
Asynchronous API for control of Wi-Fi provisioning functionality.
This module contains WINC3400 M2M driver APIs declarations.
sint8 m2m_wifi_prng_get_random_bytes(uint8 *pu8PrngBuff, uint16 u16PrngSize)
Get random bytes using the PRNG bytes.
Structure to hold Ethernet interface parameters. Structure is to be defined and have its attributes s...
NMI_API sint8 m2m_wifi_wps(uint8 u8TriggerType, const char *pcPinNumber)
Asynchronous API to engage the WINC IC's Wi-Fi Protected Setup (enrolee) function.
NMI_API sint8 m2m_wifi_request_dhcp_client(void)
Legacy (deprecated) Asynchronous API for starting a DHCP client on the WINC IC.
NMI_API sint8 m2m_wifi_deinit(void *arg)
Synchronous API that de-initialises the WINC driver.
Structure, holding the Wi-fi configuration attributes such as the wi-fi callback , monitoring mode callback and Ethernet parameter initialization structure. Such configuration parameters are required to be set before calling the wi-fi initialization function m2m_wifi_init. pfAppWifiCb attribute must be set to handle the wi-fi callback operations. pfAppMonCb attribute, is optional based on whether the application requires the monitoring mode configuration, and can there not be set before the initialization. strEthInitParam structure, is another optional configuration based on whether the bypass mode is set.
This struct contains the Wi-Fi RX Frame Header. The M2M application has the ability to allow Wi-Fi mo...
NMI_API sint8 m2m_wifi_get_mac_address(uint8 *pu8MacAddr)
Synchronous API to retrieve the MAC address currently in use on the device.
NMI_API sint8 m2m_wifi_request_sleep(uint32 u32SlpReqTime)
Asynchronous API to place the WINC IC into sleep mode for a specified period of time.
NMI_API sint8 m2m_wifi_set_device_name(uint8 *pu8DeviceName, uint8 u8DeviceNameLength)
Asynchronous API to set the Wi-Fi Direct "Device Name" of the WINC IC.
WINC3400 IoT Application Interface Internal Types.
NMI_API sint8 m2m_wifi_p2p_disconnect(void)
Synchronous API to disable Wi-Fi Direct (P2P) Mode on the WINC IC.
tenuInfoElementId
Enumeration for the Wi-Fi Information Element(IE) IDs, which indicates the specific type of IEs...
NMI_API sint8 m2m_wifi_req_curr_rssi(void)
Asynchronous API to request the current Receive Signal Strength (RSSI) of the current connection...
This struct contains the Wi-Fi Monitor Mode Filter. It sets the filtering criteria for WLAN packets w...
This struct contains the Listen Interval. It is the value of the Wi-Fi StA Listen Interval when power...
NMI_API sint8 m2m_wifi_enable_monitoring_mode(tstrM2MWifiMonitorModeCtrl *pstrMtrCtrl, uint8 *pu8PayloadBuffer, uint16 u16BufferSize, uint16 u16DataOffset)
Asynchronous call to enable Wi-Fi monitoring (promiscuous receive) mode.
unsigned short uint16
Range of values between 0 to 65535.
NMI_API void m2m_wifi_yield(void)
Yield from processing more synchronous M2M events.
sint8 m2m_wifi_init_hold(void)
First part of m2m_wifi_init, up to the point of initializing spi for flash access.
void(* tpfAppWifiCb)(uint8 u8MsgType, void *pvMsg)
This is the main callback function for the Wi-Fi driver and is responsible for processing any M2M_WIF...
tenuWifiFrameType
Enumeration for Wi-Fi MAC frame type codes (2-bit) The following types are used to identify the type ...
sint8 m2m_wifi_check_ota_rb(void)
Synchronous API to check presence and compatibility of the WINC image that is stored in the inactive ...
NMI_API sint8 m2m_wifi_connect_sc(char *pcSsid, uint8 u8SsidLen, uint8 u8SecType, void *pvAuthInfo, uint16 u16Ch, uint8 u8SaveCred)
Asynchronous API to request connection to a specific AP with option to store credentials in flash...
sint8 m2m_wifi_enable_firmware_logs(uint8 u8Enable)
Enable or Disable logs in run time (Disable Firmware logs will enhance the firmware start-up time and...
sint8 m2m_wifi_reinit_hold(void)
First part of m2m_wifi_reinit, up to the point of initializing spi for flash access.
sint8 m2m_wifi_get_firmware_version(tstrM2mRev *pstrRev)
Synchronous API to obtain the firmware version currently running on the WINC IC.
NMI_API sint8 m2m_wifi_send_ethernet_pkt(uint8 *pu8Packet, uint16 u16PacketSize)
Asynchronous API to queue an Ethernet packet for transmission by the WINC IC.
NMI_API sint8 m2m_wifi_enable_dhcp(uint8 u8DhcpEn)
Asynchronous function to control the DHCP client functionality within the WINC IC.
NMI_API sint8 m2m_wifi_set_mac_address(uint8 au8MacAddress[6])
Synchronous API for assigning a MAC address to the WINC IC.
uint32 m2m_wifi_get_chipId(void)
Synchronous API to obtain the firmware WINC chip ID.
NMI_API sint8 m2m_wifi_request_dhcp_server(uint8 *addr)
Legacy (deprecated) Asynchronous function to start a DHCP client on the WINC IC.
This struct contains the static IP configuration.
tenuSubTypes
Enumeration for Wi-Fi MAC Frame subtype code (6-bit). The frame subtypes fall into one of the three f...
NMI_API sint8 m2m_wifi_request_scan(uint8 ch)
Asynchronous API to request the WINC IC perform a scan for networks.
NMI_API sint8 m2m_wifi_set_static_ip(tstrM2MIPConfig *pstrStaticIPConf)
Synchronous API to manually assign a (static) IP address to the WINC IC.
NMI_API sint8 m2m_wifi_download_mode(void)
Synchronous API that prepares the WINC IC to enter firmware or certificate download mode...
uint16 u16RemainigDataSize
NMI_API uint8 m2m_wifi_get_num_ap_found(void)
Synchronous API to retrieve the number of AP's found during the last scan operation.
sint8 m2m_wifi_init_start(tstrWifiInitParam *param)
Second part of m2m_wifi_init, continuing from where m2m_wifi_init_hold left off.
NMI_API sint8 m2m_wifi_handle_events(void *arg)
Synchronous M2M event handler function.
NMI_API sint8 m2m_wifi_req_unrestrict_ble(void)
Asynchronous API to request un-restricting of BLE functionality by reverting the BLE processor to ful...
Structure holding the incoming buffer's data size information, indicating the data size of the buff...
sint8 m2m_wifi_request_scan_passive(uint8 ch)
NMI_API sint8 m2m_wifi_default_connect(void)
Asynchronous API that attempts to reconnect to the last-associated access point.
sint8 m2m_wifi_set_tx_power(uint8 u8TxPwrLevel)
set the TX power tenuM2mTxPwrLevel
NMI_API sint8 m2m_wifi_get_otp_mac_address(uint8 *pu8MacAddr, uint8 *pu8IsValid)
Synchronous API to query the MAC address programmed into the WINC ICs OTP memory. ...
NMI_API sint8 m2m_wifi_set_receive_buffer(void *pvBuffer, uint16 u16BufferLen)
Asynchronous API to set or change the size of the WINC IC's receive buffer.
void(* tpfAppEthCb)(uint8 u8MsgType, void *pvMsg, void *pvCtrlBuf)
Ethernet (Bypass mode) notification callback function receiving Bypass mode events as defined in the ...
NMI_API sint8 m2m_wifi_stop_provision_mode(void)
Synchronous API for terminating provisioning mode on the WINC IC.
NMI_API sint8 m2m_wifi_disable_monitoring_mode(void)
Asynchronous API to disable Wi-Fi monitoring (promiscuous receive) mode.
NMI_API sint8 m2m_wifi_set_scan_region(uint16 ScanRegion)
Synchronous API for configuring the regulatory restrictions that may affect the WINC ICs scanning beh...
This struct contains the configuration options for Wi-Fi scan.
void(* tpfAppMonCb)(tstrM2MWifiRxPacketInfo *pstrWifiRxPacket, uint8 *pu8Payload, uint16 u16PayloadSize)
Wi-Fi monitoring mode callback function. This function delivers all received wi-Fi packets to the app...
unsigned long uint32
Range of values between 0 to 4294967295.
NMI_API sint8 m2m_wifi_req_restrict_ble(void)
Asynchronous API to request restricting of BLE functionality by placing the BLE processor in a low po...
NMI_API sint8 m2m_wifi_get_connection_info(void)
Asynchronous API for retrieving the WINC IC's connection status.
tenuWifiCapability
Enumeration for capability Information field bit. The value of the capability information field from ...
NMI_API uint8 m2m_wifi_get_sleep_mode(void)
Synchronous API to retrieve the current power save mode of the WINC IC.
NMI_API sint8 m2m_wifi_init(tstrWifiInitParam *pWifiInitParam)
Synchronous API that initialises the WINC driver.
sint8 m2m_wifi_reinit(tstrWifiInitParam *param)
Deinitialize and reinitialize wifi. Resets the WINC. Parameter may be set to NULL, in which case there is no change to the parameters given at initialization.
unsigned char uint8
Range of values between 0 to 255.
NMI_API sint8 m2m_wifi_enable_sntp(uint8 bEnable)
Asynchronous API to enable or disable the SNTP client running on the WINC IC.
NMI_API sint8 m2m_wifi_enable_mac_mcast(uint8 *pu8MulticastMacAddress, uint8 u8AddRemove)
Asynchronous API to add or remove MAC addresses in the multicast filter.
NMI_API sint8 m2m_wifi_ble_set_gain_table(uint8 table_idx)
Asynchronous API that notifies the WINC with the Gain Table index from Flash that should use to confi...
NMI_API sint8 m2m_wifi_set_cust_InfoElement(uint8 *pau8M2mCustInfoElement)
Asynchronous API to add or remove a user-defined Information Element.
NMI_API sint8 m2m_wifi_set_lsn_int(tstrM2mLsnInt *pstrM2mLsnInt)
Asynchronous API to set Wi-Fi listen interval for power save operation.
This structure holds the configuration parameters for the AP mode. It should be set by the applicatio...
NMI_API sint8 m2m_ota_get_firmware_version(tstrM2mRev *pstrRev)
Synchronous API to obtain the firmware version of the WINC image that is stored in the inactive flash...
NMI_API sint8 m2m_wifi_p2p(uint8 u8Channel)
Asynchronous API for enabling Wi-Fi Direct (P2P) mode in the WINC IC.
NMI_API sint8 m2m_wifi_get_sytem_time(void)
Asynchronous API to obtain the system time in use by the WINC IC.
NMI_API sint8 m2m_wifi_send_wlan_pkt(uint8 *pu8WlanPacket, uint16 u16WlanHeaderLength, uint16 u16WlanPktSize)
Asynchronous API to queue a raw Wi-Fi packet for transmission by the WINC IC.
NMI_API sint8 m2m_wifi_enable_ap(CONST tstrM2MAPConfig *pstrM2MAPConfig)
Asynchronous API to enable access point (AKA "hot-spot") mode on the WINC IC.
NMI_API sint8 m2m_wifi_disconnect(void)
Synchronous API to request disconnection from a network.
NMI_API sint8 m2m_wifi_wps_disable(void)
Synchronous API that disables Wi-Fi Protected Setup mode in the WINC IC.
Structure holding firmware version parameters and build date/time.
NMI_API sint8 m2m_wifi_set_sytem_time(uint32 u32UTCSeconds)
Asynchronous function for setting the system time within the WINC IC.