|
CC33XX API Documentation
2.30.00.15
|
This module implements the user interface for the upper MAC. More...
Files | |
| file | wlan_if.h |
| upper MAC user interface | |
Classes | |
| struct | WlanNetworkEntry_t |
| struct | WlanNetworkEntryExtended_t |
| struct | WlanSecParams_t |
| struct | WpsParams |
| struct | P2pParams |
| struct | RoleUpApCmd |
| struct | WlanLongSleepInterval |
| struct | __PACKED__ |
| struct | CalibratorCommandWrapper_t |
| struct | WlanEventConnect_t |
| struct | WlanEventConnecting_t |
| struct | WlanEventDisconnect_t |
| struct | WlanEventScanResult_t |
| struct | WlanEventExtendedScanResult_t |
| struct | WlanEventSTAAdded_t |
| struct | WlanEvenWfdMgmtFrame_t |
| union | WlanEventData_u |
| struct | WlanEvent_t |
| struct | StartRoleApps_t |
| struct | scan_ssid_t |
| struct | scanCommon_t |
| struct | WlanMacAddress_t |
| struct | WlanFWVersions_t |
| struct | WlanCtrlBlk_t |
| struct | dbg_cntr_trnspt_t |
| struct | dbg_counters_get_t |
| struct | device_info_t |
| struct | wlanSetVendorInfo_t |
| struct | wlanSetExtWpsSession_t |
| struct | WlanPeer_t |
| struct | WlanGOPeer_t |
| struct | WlanProvDiscResp_t |
| struct | WlanProvDiscReq_t |
| union | WlanActionParam_t |
| struct | WlanBuildActionBuffer_t |
| struct | WlanROCExt_t |
| struct | WlanActionBuff_t |
| struct | WlanActionTxExt_t |
| struct | WlanExternalApp_t |
Typedefs | |
| typedef struct WpsParams | WpsParams_t |
| typedef struct P2pParams | P2pParams_t |
| typedef struct RoleUpApCmd | RoleUpApCmd_t |
| typedef struct __PACKED__ | CalibratorSetTransmitOmiParams_t |
| typedef struct __PACKED__ | CalibratorSetPowerHeaderParams_t |
| typedef struct __PACKED__ | CalibratorSetPsmParams_t |
| typedef struct __PACKED__ | CalibratorSetUplinkMuDataParams_t |
| typedef struct __PACKED__ | CalibratorSetMcsRateParams_t |
| typedef struct __PACKED__ | CalibratorOperationModeControlParams_t |
| typedef struct __PACKED__ | CalibratorUplinkMuParams_t |
| typedef struct __PACKED__ | CalibratorGiLtfModeParams_t |
| typedef struct __PACKED__ | CalibratorBeaconRssiParams_t |
| typedef struct __PACKED__ | CalibratorRateOverrideParams_t |
| typedef struct __PACKED__ | CalibratorGetRxParams_t |
| typedef struct __PACKED__ | CalibratorChannelTuneParams_t |
| typedef struct __PACKED__ | CalibratorStartTxParams_t |
| typedef struct __PACKED__ | CalibratorStartTxToneParams_t |
| typedef struct __PACKED__ | CalibratorSetIoCfgParams_t |
| typedef struct __PACKED__ | CalibratorGetIoCfgParams_t |
| typedef struct __PACKED__ | CalibratorStartRxParams_t |
| typedef struct WlanEventSTAAdded_t | WlanEventSTARemoved_t |
| typedef void(* | WlanEventHandlerCB_t) (WlanEvent_t *pWlanEvent) |
| typedef struct __PACKED__ | WlanBeaconRssi_t |
| typedef enum wlan_p2p_action_frame_type | WlanP2pActionFrameType_t |
| typedef enum wlan_p2p_status_code | WlanP2pStatusCode_t |
| typedef void(* | WlanNetworkDataRecvCB_t) (WlanRole_e role_id, uint8_t *input, uint32_t input_len) |
Functions | |
| int | ctrlCmdFw_EnableBLECmd (void) |
| Enable BLE. More... | |
| int | ctrlCmdFw_SetBdAddrCmd (const unsigned char *pBdAddr) |
| Set BLE BD Address. More... | |
| int | Wlan_Start (WlanEventHandlerCB_t eventHandlerCB) |
| start the wlan More... | |
| int | Wlan_Stop (void) |
| stop the wlan More... | |
| int | Wlan_RoleUp (WlanRole_e roleType, void *params, unsigned long int timeout) |
| role up the wlan More... | |
| int | Wlan_RoleDown (WlanRole_e roleType, unsigned long int timeout) |
| role down the wlan More... | |
| int | Wlan_Connect (const signed char *pName, const int NameLen, const unsigned char *pMacAddr, char SecType, const char *pPass, const char PassLen) |
| Connect to wlan network as a station. More... | |
| int | Wlan_Disconnect () |
| Wlan disconnect. More... | |
| int | Wlan_Scan (WlanRole_e role, void *params, const unsigned char ScanResultsSize) |
| Wlan scan. More... | |
| int | Wlan_Get (WlanGet_e wlanGetType, void *params) |
| Wlan_Get. More... | |
| int | Wlan_Set (WlanSet_e wlanSetType, void *params) |
| Wlan_Set. More... | |
| int | Wlan_EtherPacketSend (WlanRole_e role, uint8_t *inbuf, uint32_t inbuf_len, uint32_t flags) |
| Wlan Ethernet Packet Send. More... | |
| int | Wlan_EtherPacketRecvRegisterCallback (WlanRole_e role, WlanNetworkDataRecvCB_t cb) |
| Wlan Ethernet Packet recv callback. More... | |
This module implements the user interface for the upper MAC.
| int ctrlCmdFw_EnableBLECmd | ( | void | ) |
Enable BLE.
This function enable the BLE core and changes power save mode to active
| int ctrlCmdFw_SetBdAddrCmd | ( | const unsigned char * | pBdAddr | ) |
Set BLE BD Address.
This function sets the BLE BD address
| [in] | pBdAddr | 6 bytes for BD address |
| int Wlan_Connect | ( | const signed char * | pName, |
| const int | NameLen, | ||
| const unsigned char * | pMacAddr, | ||
| char | SecType, | ||
| const char * | pPass, | ||
| const char | PassLen | ||
| ) |
Connect to wlan network as a station.
| [in] | pName | Up to 32 bytes in case of STA the name is the SSID of the Access Point |
| [in] | NameLen | Name length |
| [in] | pMacAddr | 6 bytes for MAC address |
| [in] | SecType | Security type security types options:
|
| [in] | pPass | Up to 32 bytes password |
| [in] | PassLen | Password length |
| int Wlan_Disconnect | ( | ) |
Wlan disconnect.
Disconnect connection
| int Wlan_EtherPacketRecvRegisterCallback | ( | WlanRole_e | role, |
| WlanNetworkDataRecvCB_t | cb | ||
| ) |
Wlan Ethernet Packet recv callback.
This function is used for the network stack to attach the receive callback of ethernet packets to be called upon RX
| [in] | role | WLAN_ROLE_STA or WLAN_ROLE_AP |
| [in] | WlanNetworkDataRecvCB_t | recv callback function |
| int Wlan_EtherPacketSend | ( | WlanRole_e | role, |
| uint8_t * | inbuf, | ||
| uint32_t | inbuf_len, | ||
| uint32_t | flags | ||
| ) |
Wlan Ethernet Packet Send.
This function is used for the network stack to send ethernet packets over link in a certain role
| [in] | role | WLAN_ROLE_STA or WLAN_ROLE_AP |
| [in] | inbuf | input buffer of ethernet packet |
| [in] | inbuf_len | input buffer length of ethernet packet |
| [in] | flags | reserved |
| int Wlan_Get | ( | WlanGet_e | wlanGetType, |
| void * | params | ||
| ) |
Wlan_Get.
Get commands and parameters to the FW
| [in] | wlanGetType | Wlan Get type (WlanGet_e) |
| [in] | params | pointer to params |
| int Wlan_RoleDown | ( | WlanRole_e | roleType, |
| unsigned long int | timeout | ||
| ) |
role down the wlan
This function is stop the specific role
| [in] | Configuration | - role type timeout - Blocking API |
| int Wlan_RoleUp | ( | WlanRole_e | roleType, |
| void * | params, | ||
| unsigned long int | timeout | ||
| ) |
role up the wlan
This function start the specific role with the parameters per role type.
| [in] | Configuration | - role type Configuration - *params (per role) timeout - Blocking API |
| int Wlan_Scan | ( | WlanRole_e | role, |
| void * | params, | ||
| const unsigned char | ScanResultsSize | ||
| ) |
Wlan scan.
scan the network for APs
| [in] | pPass | Up to 32 bytes password |
| [in] | PassLen | Password length |
| [in] | params | scan params |
| int Wlan_Set | ( | WlanSet_e | wlanSetType, |
| void * | params | ||
| ) |
Wlan_Set.
Set commands and parameters to the FW
| [in] | wlanSetType | Wlan Set type (WlanSet_e) |
| [in] | params | pointer to params |
| int Wlan_Start | ( | WlanEventHandlerCB_t | eventHandlerCB | ) |
start the wlan
This function is turn on the wlan device, initialize the upper mac thread, and initialize the SPI interface
| [in] | eventHandlerCB | event callback function |
| int Wlan_Stop | ( | void | ) |
stop the wlan
This function is turn off the wlan device, and deactivate the SPI interface
1.8.12