FMAC API

To interact with WF200, the host has access to a set of API exposing a FMAC Wi-Fi interface. To find the related driver functions, you can refer to the table below or to the FMAC_API group.

FMAC API Commands

Below is a table listing the FMAC API commands supported by WF200.

CommandsValueAssociated Driver FunctionDescription
WFM_HI_SET_MAC_ADDRESS_REQ_ID0x42wf200_set_mac_addressSet a MAC address for each interface
WFM_HI_CONNECT_REQ_ID0x43wf200_send_join_commandConnect to a network
WFM_HI_DISCONNECT_REQ_ID0x44wf200_send_disconnect_commandDisconnect from a network
WFM_HI_START_AP_REQ_ID0x45wf200_start_ap_commandStart AP mode
WFM_HI_UPDATE_AP_REQ_ID0x46wf200_update_ap_commandUpdate AP mode parameters
WFM_HI_STOP_AP_REQ_ID0x47wf200_stop_ap_commandStop AP mode
WFM_HI_SEND_FRAME_REQ_ID0x4awf200_send_ethernet_frameSend a frame
WFM_HI_START_SCAN_REQ_ID0x4bwf200_send_scan_commandPerform a scan
WFM_HI_STOP_SCAN_REQ_ID0x4cwf200_send_stop_scan_commandStop an ongoing scan
WFM_HI_GET_SIGNAL_STRENGTH_REQ_ID0x4ewf200_get_signal_strengthGet signal strength
WFM_HI_DISCONNECT_AP_CLIENT_REQ_ID0x4fwf200_disconnect_ap_client_commandDisconnect AP client
WFM_HI_JOIN_IBSS_REQ_ID0x50Join or create an IBSS
WFM_HI_LEAVE_IBSS_REQ_ID0x51Leave an IBSS
WFM_HI_SET_PM_MODE_REQ_ID0x52wf200_set_power_modeSet pm mode
WFM_HI_ADD_MULTICAST_ADDR_REQ_ID0x53wf200_add_multicast_addressAdd multicast address to filter
WFM_HI_REMOVE_MULTICAST_ADDR_REQ_ID0x54Remove multicast address to filter
WFM_HI_SET_MAX_AP_CLIENT_COUNT_REQ_ID0x55wf200_set_max_ap_clientSet client count limitation
WFM_HI_SET_MAX_AP_CLIENT_INACTIVITY_REQ_ID0x56Set client inactivity limitation
WFM_HI_SET_ROAM_PARAMETERS_REQ_ID0x57Set roam parameters
WFM_HI_SET_TX_RATE_PARAMETERS_REQ_ID0x58Set TX rate parameters

For each available command, there is an associated confirmation with the same ID value.

FMAC API Indications

IndicationsValueAssociated StructureDescription
WFM_HI_CONNECT_IND0xc3WfmHiConnectIndBody_tConnection to a network complete
WFM_HI_DISCONNECT_IND0xc4WfmHiDisconnectIndBody_tDisconnection from a network complete
WFM_HI_START_AP_IND0xc5WfmHiStartApIndBody_tStarted AP mode
WFM_HI_STOP_AP_IND0xc7WfmHiStopApInd_tStopped AP mode
WFM_HI_RECEIVED_IND0xcaWfmHiReceivedIndBody_tFramereceived
WFM_HI_SCAN_RESULT_IND0xcbWfmHiScanResultIndBody_tScan result received
WFM_HI_SCAN_COMPLETE_IND0xccWfmHiScanCompleteIndBody_tScan complete
WFM_HI_AP_CLIENT_CONNECTED_IND0xcdWfmHiApClientConnectedIndBody_tAP Client connected
WFM_HI_AP_CLIENT_REJECTED_IND0xceWfmHiApClientRejectedIndBody_tAP Client rejected
WFM_HI_AP_CLIENT_DISCONNECTED_IND0xcfWfmHiApClientDisconnectedIndBody_tAP Client disconnected
WFM_HI_JOIN_IBSS_IND0xd0WfmHiJoinIbssIndBody_tConnection to an IBSS complete
WFM_HI_LEAVE_IBSS_IND0xd1WfmHiLeaveIbssInd_tLeft IBSS

These indications have to be managed by the host depending on the application and use case.