libctru  v1.6.0
Enumerations | Functions
ac.h File Reference

AC service. More...

Go to the source code of this file.

Enumerations

enum  acSecurityMode {
  AC_OPEN = 0,
  AC_WEP_40BIT = 1,
  AC_WEP_104BIT = 2,
  AC_WEP_128BIT = 3,
  AC_WPA_TKIP = 4,
  AC_WPA2_TKIP = 5,
  AC_WPA_AES = 6,
  AC_WPA2_AES = 7
}
 Wifi security modes. More...
 

Functions

Result acInit (void)
 Initializes AC.
 
void acExit (void)
 Exits AC.
 
Result acWaitInternetConnection (void)
 Waits for the system to connect to the internet.
 
Result ACU_GetWifiStatus (u32 *out)
 Gets the connected Wifi status. More...
 
Result ACU_GetStatus (u32 *out)
 Gets the connected Wifi status. More...
 
Result ACU_GetSecurityMode (acSecurityMode *mode)
 Gets the connected Wifi security mode. More...
 
Result ACU_GetSSID (char *SSID)
 Gets the connected Wifi SSID. More...
 
Result ACU_GetSSIDLength (u32 *out)
 Gets the connected Wifi SSID length. More...
 
Result ACU_GetProxyEnable (bool *enable)
 Determines whether proxy is enabled for the connected network. More...
 
Result ACU_GetProxyPort (u32 *out)
 Gets the connected network's proxy port. More...
 
Result ACU_GetProxyUserName (char *username)
 Gets the connected network's proxy username. More...
 
Result ACU_GetProxyPassword (char *password)
 Gets the connected network's proxy password. More...
 
Result ACU_GetLastErrorCode (u32 *errorCode)
 Gets the last error to occur during a connection. More...
 
Result ACU_GetLastDetailErrorCode (u32 *errorCode)
 Gets the last detailed error to occur during a connection. More...
 

Detailed Description

AC service.

Enumeration Type Documentation

◆ acSecurityMode

Wifi security modes.

Enumerator
AC_OPEN 

Open authentication.

AC_WEP_40BIT 

WEP 40-bit authentication.

AC_WEP_104BIT 

WEP 104-bit authentication.

AC_WEP_128BIT 

WEP 128-bit authentication.

AC_WPA_TKIP 

WPA TKIP authentication.

AC_WPA2_TKIP 

WPA2 TKIP authentication.

AC_WPA_AES 

WPA AES authentication.

AC_WPA2_AES 

WPA2 AES authentication.

Function Documentation

◆ ACU_GetLastDetailErrorCode()

Result ACU_GetLastDetailErrorCode ( u32 errorCode)

Gets the last detailed error to occur during a connection.

Parameters
errorCodePointer to output the error code to.

◆ ACU_GetLastErrorCode()

Result ACU_GetLastErrorCode ( u32 errorCode)

Gets the last error to occur during a connection.

Parameters
errorCodePointer to output the error code to.

◆ ACU_GetProxyEnable()

Result ACU_GetProxyEnable ( bool *  enable)

Determines whether proxy is enabled for the connected network.

Parameters
enablePointer to output the proxy status to.

◆ ACU_GetProxyPassword()

Result ACU_GetProxyPassword ( char *  password)

Gets the connected network's proxy password.

Parameters
passwordPointer to output the proxy password to. (The size must be at least 0x20-bytes)

◆ ACU_GetProxyPort()

Result ACU_GetProxyPort ( u32 out)

Gets the connected network's proxy port.

Parameters
outPointer to output the proxy port to.

◆ ACU_GetProxyUserName()

Result ACU_GetProxyUserName ( char *  username)

Gets the connected network's proxy username.

Parameters
usernamePointer to output the proxy username to. (The size must be at least 0x20-bytes)

◆ ACU_GetSecurityMode()

Result ACU_GetSecurityMode ( acSecurityMode mode)

Gets the connected Wifi security mode.

Parameters
modePointer to output the connected Wifi security mode to. (0 = Open Authentication, 1 = WEP 40-bit, 2 = WEP 104-bit, 3 = WEP 128-bit, 4 = WPA TKIP, 5 = WPA2 TKIP, 6 = WPA AES, 7 = WPA2 AES)

◆ ACU_GetSSID()

Result ACU_GetSSID ( char *  SSID)

Gets the connected Wifi SSID.

Parameters
SSIDPointer to output the connected Wifi SSID to.

◆ ACU_GetSSIDLength()

Result ACU_GetSSIDLength ( u32 out)

Gets the connected Wifi SSID length.

Parameters
outPointer to output the connected Wifi SSID length to.

◆ ACU_GetStatus()

Result ACU_GetStatus ( u32 out)

Gets the connected Wifi status.

Parameters
outPointer to output the connected Wifi status to. (1 = not connected, 3 = connected)

◆ ACU_GetWifiStatus()

Result ACU_GetWifiStatus ( u32 out)

Gets the connected Wifi status.

Parameters
outPointer to output the connected Wifi status to. (0 = not connected, 1 = O3DS Internet, 2 = N3DS Internet)