libnx  v4.6.0
wlaninf.h
Go to the documentation of this file.
1 /**
2  * @file wlaninf.h
3  * @brief WLAN InfraManager service IPC wrapper.
4  * @author natinusala, yellows8
5  * @copyright libnx Authors
6  */
7 
8 #pragma once
9 #include "../types.h"
10 #include "../sf/service.h"
11 
12 /// WLAN State.
13 typedef enum {
14  WlanInfState_NotConnected = 1, ///< WLAN is disabled or enabled and not connected.
15  WlanInfState_Connecting, ///< WLAN is connecting.
16  WlanInfState_Connected, ///< WLAN is connected.
17 } WlanInfState;
18 
19 /// [1.0.0-14.1.2] Initialize wlan:inf.
21 
22 /// Exit wlan:inf.
23 void wlaninfExit(void);
24 
25 /// Gets the Service object for the actual wlan:inf service session.
27 
28 /// Gets \ref WlanInfState.
30 
31 /// Value goes from -30 (really good signal) to -90 (barely enough to stay connected)
32 /// on a logarithmic scale
Service object structure.
Definition: service.h:14
u32 Result
Function error code result type.
Definition: types.h:44
int32_t s32
32-bit signed integer.
Definition: types.h:27
Result wlaninfInitialize(void)
[1.0.0-14.1.2] Initialize wlan:inf.
Result wlaninfGetState(WlanInfState *out)
Gets WlanInfState.
Service * wlaninfGetServiceSession(void)
Gets the Service object for the actual wlan:inf service session.
WlanInfState
WLAN State.
Definition: wlaninf.h:13
@ WlanInfState_Connected
WLAN is connected.
Definition: wlaninf.h:16
@ WlanInfState_Connecting
WLAN is connecting.
Definition: wlaninf.h:15
@ WlanInfState_NotConnected
WLAN is disabled or enabled and not connected.
Definition: wlaninf.h:14
Result wlaninfGetRSSI(s32 *out)
Value goes from -30 (really good signal) to -90 (barely enough to stay connected) on a logarithmic sc...
void wlaninfExit(void)
Exit wlan:inf.