CMSIS-Driver  Version 2.7.1
Peripheral Interface for Middleware and Application Code
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Driver_WiFi.c File Reference

Functions

ARM_DRIVER_VERSION ARM_WIFI_GetVersion (void)
 Get driver version. More...
 
ARM_WIFI_CAPABILITIES ARM_WIFI_GetCapabilities (void)
 Get driver capabilities. More...
 
int32_t ARM_WIFI_Initialize (ARM_WIFI_SignalEvent_t cb_event)
 Initialize WiFi Module. More...
 
int32_t ARM_WIFI_Uninitialize (void)
 De-initialize WiFi Module. More...
 
int32_t ARM_WIFI_PowerControl (ARM_POWER_STATE state)
 Control WiFi Module Power. More...
 
int32_t ARM_WIFI_GetModuleInfo (char *module_info, uint32_t max_len)
 Get Module information. More...
 
void ARM_WIFI_SignalEvent (uint32_t event, void *arg)
 Signal WiFi Events. More...
 
int32_t ARM_WIFI_SetOption (uint32_t interface, uint32_t option, const void *data, uint32_t len)
 Set WiFi Module Options. More...
 
int32_t ARM_WIFI_GetOption (uint32_t interface, uint32_t option, void *data, uint32_t *len)
 Get WiFi Module Options. More...
 
int32_t ARM_WIFI_Scan (ARM_WIFI_SCAN_INFO_t scan_info[], uint32_t max_num)
 Scan for available networks in range. More...
 
int32_t ARM_WIFI_Activate (uint32_t interface, ARM_WIFI_CONFIG_t *config)
 Activate interface (Connect to a wireless network or activate an access point). More...
 
int32_t ARM_WIFI_Deactivate (uint32_t interface)
 Deactivate interface (Disconnect from a wireless network or deactivate an access point). More...
 
uint32_t ARM_WIFI_IsConnected (void)
 Get station connection status. More...
 
int32_t ARM_WIFI_GetNetInfo (ARM_WIFI_NET_INFO_t *net_info)
 Get station Network Information. More...
 
int32_t ARM_WIFI_BypassControl (uint32_t interface, uint32_t mode)
 Enable or disable bypass (pass-through) mode. Transmit and receive Ethernet frames (IP layer bypassed and WiFi/Ethernet translation). More...
 
int32_t ARM_WIFI_EthSendFrame (uint32_t interface, const uint8_t *frame, uint32_t len)
 Send Ethernet frame (in bypass mode only). More...
 
int32_t ARM_WIFI_EthReadFrame (uint32_t interface, uint8_t *frame, uint32_t len)
 Read data of received Ethernet frame (in bypass mode only). More...
 
uint32_t ARM_WIFI_EthGetRxFrameSize (uint32_t interface)
 Get size of received Ethernet frame (in bypass mode only). More...
 
int32_t ARM_WIFI_SocketCreate (int32_t af, int32_t type, int32_t protocol)
 Create a communication socket. More...
 
int32_t ARM_WIFI_SocketBind (int32_t socket, const uint8_t *ip, uint32_t ip_len, uint16_t port)
 Assign a local address to a socket. More...
 
int32_t ARM_WIFI_SocketListen (int32_t socket, int32_t backlog)
 Listen for socket connections. More...
 
int32_t ARM_WIFI_SocketAccept (int32_t socket, uint8_t *ip, uint32_t *ip_len, uint16_t *port)
 Accept a new connection on a socket. More...
 
int32_t ARM_WIFI_SocketConnect (int32_t socket, const uint8_t *ip, uint32_t ip_len, uint16_t port)
 Connect a socket to a remote host. More...
 
int32_t ARM_WIFI_SocketRecv (int32_t socket, void *buf, uint32_t len)
 Receive data on a connected socket. More...
 
int32_t ARM_WIFI_SocketRecvFrom (int32_t socket, void *buf, uint32_t len, uint8_t *ip, uint32_t *ip_len, uint16_t *port)
 Receive data on a socket. More...
 
int32_t ARM_WIFI_SocketSend (int32_t socket, const void *buf, uint32_t len)
 Send data on a connected socket. More...
 
int32_t ARM_WIFI_SocketSendTo (int32_t socket, const void *buf, uint32_t len, const uint8_t *ip, uint32_t ip_len, uint16_t port)
 Send data on a socket. More...
 
int32_t ARM_WIFI_SocketGetSockName (int32_t socket, uint8_t *ip, uint32_t *ip_len, uint16_t *port)
 Retrieve local IP address and port of a socket. More...
 
int32_t ARM_WIFI_SocketGetPeerName (int32_t socket, uint8_t *ip, uint32_t *ip_len, uint16_t *port)
 Retrieve remote IP address and port of a socket. More...
 
int32_t ARM_WIFI_SocketGetOpt (int32_t socket, int32_t opt_id, void *opt_val, uint32_t *opt_len)
 Get socket option. More...
 
int32_t ARM_WIFI_SocketSetOpt (int32_t socket, int32_t opt_id, const void *opt_val, uint32_t opt_len)
 Set socket option. More...
 
int32_t ARM_WIFI_SocketClose (int32_t socket)
 Close and release a socket. More...
 
int32_t ARM_WIFI_SocketGetHostByName (const char *name, int32_t af, uint8_t *ip, uint32_t *ip_len)
 Retrieve host IP address from host name. More...
 
int32_t ARM_WIFI_Ping (const uint8_t *ip, uint32_t ip_len)
 Probe remote host with Ping command. More...