CMSIS-Driver Validation  
Driver Validation
 All Files Functions Variables Macros Groups Pages
Management

Functions

void WIFI_SetOption_GetOption (void)
 Function: WIFI_SetOption_GetOption. More...
 
void WIFI_Scan (void)
 Function: WIFI_Scan. More...
 
void WIFI_Activate_Deactivate (void)
 Function: WIFI_Activate_Deactivate. More...
 
void WIFI_IsConnected (void)
 Function: WIFI_IsConnected. More...
 
void WIFI_GetNetInfo (void)
 Function: WIFI_GetNetInfo. More...
 
void WIFI_Activate_AP (void)
 Function: WIFI_Activate_AP. More...
 
void WIFI_Activate_Station_WPS_PBC (void)
 Function: WIFI_Activate_Station_WPS_PBC. More...
 
void WIFI_Activate_Station_WPS_PIN (void)
 Function: WIFI_Activate_Station_WPS_PIN. More...
 
void WIFI_Activate_AP_WPS_PBC (void)
 Function: WIFI_Activate_AP_WPS_PBC. More...
 
void WIFI_Activate_AP_WPS_PIN (void)
 Function: WIFI_Activate_AP_WPS_PIN. More...
 

Description

These tests verify API and operation of the WiFi management functions.

Function Documentation

void WIFI_SetOption_GetOption ( void  )

The test function WIFI_SetOption_GetOption verifies the WiFi Driver SetOption and GetOption functions. (Options: ARM_WIFI_BSSID, ARM_WIFI_MAC, ARM_WIFI_IP, ARM_WIFI_IP_SUBNET_MASK, ARM_WIFI_IP_GATEWAY, ARM_WIFI_IP_DNS1, ARM_WIFI_IP_DNS2, ARM_WIFI_IP_DHCP_POOL_BEGIN, ARM_WIFI_IP_DHCP_POOL_END are checked with buffer not aligned to 4 bytes).
Tests for each option is conditionally executed depending on WIFI_SETGETOPTION_... settings in DV_WiFi_Config.h file.

int32_t (*SetOption) (uint32_t interface, uint32_t option, const void *data, uint32_t len);

and

int32_t (*GetOption) (uint32_t interface, uint32_t option, void *data, uint32_t *len);

Function WIFI_SetOption_GetOption_BSSID tests ARM_WIFI_BSSID option.
Function WIFI_SetOption_GetOption_TX_POWER tests ARM_WIFI_TX_POWER option.
Function WIFI_SetOption_GetOption_LP_TIMER tests ARM_WIFI_LP_TIMER option.
Function WIFI_SetOption_GetOption_DTIM tests ARM_WIFI_DTIM option.
Function WIFI_SetOption_GetOption_BEACON tests ARM_WIFI_BEACON option.
Function WIFI_SetOption_GetOption_MAC tests ARM_WIFI_MAC option.
Function WIFI_SetOption_GetOption_IP tests ARM_WIFI_IP option.
Function WIFI_SetOption_GetOption_IP_SUBNET_MASK tests ARM_WIFI_IP_SUBNET_MASK option.
Function WIFI_SetOption_GetOption_IP_GATEWAY tests ARM_WIFI_IP_GATEWAY option.
Function WIFI_SetOption_GetOption_IP_DNS1 tests ARM_WIFI_IP_DNS1 option.
Function WIFI_SetOption_GetOption_IP_DNS2 tests ARM_WIFI_IP_DNS2 option.
Function WIFI_SetOption_GetOption_IP_DHCP tests ARM_WIFI_IP_DHCP option.
Function WIFI_SetOption_GetOption_IP_DHCP_POOL_BEGIN tests ARM_WIFI_IP_DHCP_POOL_BEGIN option.
Function WIFI_SetOption_GetOption_IP_DHCP_POOL_END tests ARM_WIFI_IP_DHCP_POOL_END option.
Function WIFI_SetOption_GetOption_IP_DHCP_LEASE_TIME tests ARM_WIFI_IP_DHCP_LEASE_TIME option.

void WIFI_Scan ( void  )

The test function WIFI_Scan verifies the WiFi Driver Scan function.

int32_t (*Scan) (ARM_WIFI_SCAN_INFO_t scan_info[], uint32_t max_num);
void WIFI_Activate_Deactivate ( void  )

The test function WIFI_Activate_Deactivate verifies the WiFi Driver Activate and Deactivate functions.

int32_t (*Activate) (uint32_t interface, const ARM_WIFI_CONFIG_t *config);

and

int32_t (*Deactivate) (uint32_t interface);

Testing sequence (for Station and Access Point):

  • if not initialized and powered initialize and power on
  • Deactivate
  • Activate (with invalid parameters)
  • Activate (with valid parameters)
  • Deactivate
  • Activate (with invalid WPS parameters)
void WIFI_IsConnected ( void  )

The test function WIFI_IsConnected verifies the WiFi Driver IsConnected function.

uint32_t (*IsConnected) (void);
void WIFI_GetNetInfo ( void  )

The test function WIFI_GetNetInfo verifies the WiFi Driver GetNetInfo function.

int32_t (*GetNetInfo) (ARM_WIFI_NET_INFO_t *net_info);
void WIFI_Activate_AP ( void  )

The test function WIFI_Activate_AP verifies the WiFi Driver Activate function AP operation. Test result is checked by connecting WiFi client to AP.

void WIFI_Activate_Station_WPS_PBC ( void  )

The test function WIFI_Activate_Station_WPS_PBC verifies the WiFi Driver Activate function Station connection with WPS and Push-Button Configuration method. This test function requires that test Access Point has active Push-button WPS method when test is started. Usually started on the WiFi AP (router) by pressing the WPS button.

void WIFI_Activate_Station_WPS_PIN ( void  )

The test function WIFI_Activate_Station_WPS_PIN verifies the WiFi Driver Activate function Station connection with WPS and PIN method. This test function requires that test Access Point has active PIN WPS method when test is started. Usually needs to be configured on the WiFi AP (router).

void WIFI_Activate_AP_WPS_PBC ( void  )

The test function WIFI_Activate_AP_WPS_PBC verifies the WiFi Driver Activate function AP WPS and Push-Button Configuration method functionality. Test result is checked by connecting the WiFi client to AP with WPS Push-Button Configuration method.

void WIFI_Activate_AP_WPS_PIN ( void  )

The test function WIFI_Activate_AP_WPS_PIN verifies the WiFi Driver Activate function AP WPS PIN method functionality. Test result is checked by connecting the WiFi client to AP with WPS PIN method.