libnx/nx/include/switch/services/wlaninf.h
2019-10-05 20:47:24 -04:00

29 lines
770 B
C

/**
* @file wlaninf.h
* @brief WLAN InfraManager service IPC wrapper.
* @author natinusala, yellows8
* @copyright libnx Authors
*/
#pragma once
#include "../types.h"
#include "../sf/service.h"
/// WLAN State.
typedef enum {
WlanInfState_NotConnected = 1, ///< WLAN is disabled or enabled and not connected.
WlanInfState_Connecting, ///< WLAN is connecting.
WlanInfState_Connected, ///< WLAN is connected.
} WlanInfState;
Result wlaninfInitialize(void);
void wlaninfExit(void);
Service* wlaninfGetServiceSession(void);
/// Gets \ref WlanInfState.
Result wlaninfGetState(WlanInfState* out);
/// Value goes from -30 (really good signal) to -90 (barely enough to stay connected)
/// on a logarithmic scale
Result wlaninfGetRSSI(s32* out);