libnx  v4.2.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 /// 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
wlaninfGetRSSI
Result wlaninfGetRSSI(s32 *out)
Value goes from -30 (really good signal) to -90 (barely enough to stay connected) on a logarithmic sc...
wlaninfExit
void wlaninfExit(void)
Exit wlan:inf.
s32
int32_t s32
32-bit signed integer.
Definition: types.h:27
WlanInfState_Connected
@ WlanInfState_Connected
WLAN is connected.
Definition: wlaninf.h:16
wlaninfGetState
Result wlaninfGetState(WlanInfState *out)
Gets WlanInfState.
wlaninfGetServiceSession
Service * wlaninfGetServiceSession(void)
Gets the Service object for the actual wlan:inf service session.
WlanInfState
WlanInfState
WLAN State.
Definition: wlaninf.h:13
WlanInfState_NotConnected
@ WlanInfState_NotConnected
WLAN is disabled or enabled and not connected.
Definition: wlaninf.h:14
Result
u32 Result
Function error code result type.
Definition: types.h:44
WlanInfState_Connecting
@ WlanInfState_Connecting
WLAN is connecting.
Definition: wlaninf.h:15
wlaninfInitialize
Result wlaninfInitialize(void)
Initialize wlan:inf.
Service
Service object structure.
Definition: service.h:13