libnx/nx/include/switch/services/wlaninf.h

34 lines
885 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;
/// Initialize wlan:inf.
Result wlaninfInitialize(void);
/// Exit wlan:inf.
void wlaninfExit(void);
/// Gets the Service object for the actual wlan:inf service session.
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);