libnx  v4.2.0
Enumerations | Functions
ts.h File Reference

Temperature measurement (ts) service IPC wrapper. More...

#include "../types.h"
#include "../sf/service.h"

Go to the source code of this file.

Enumerations

enum  TsLocation {
  TsLocation_Internal = 0,
  TsLocation_External = 1
}
 Location. More...
 

Functions

Result tsInitialize (void)
 Initialize ts.
 
void tsExit (void)
 Exit ts.
 
ServicetsGetServiceSession (void)
 Gets the Service for ts.
 
Result tsGetTemperatureRange (TsLocation location, s32 *min_temperature, s32 *max_temperature)
 Gets the min/max temperature for the specified TsLocation. More...
 
Result tsGetTemperature (TsLocation location, s32 *temperature)
 Gets the temperature for the specified TsLocation. More...
 
Result tsGetTemperatureMilliC (TsLocation location, s32 *temperature)
 Gets the temperature for the specified TsLocation, in MilliC. More...
 

Detailed Description

Temperature measurement (ts) service IPC wrapper.

Author
yellows8

Enumeration Type Documentation

◆ TsLocation

enum TsLocation

Location.

Enumerator
TsLocation_Internal 

TMP451 Internal: PCB.

TsLocation_External 

TMP451 External: SoC.

Function Documentation

◆ tsGetTemperature()

Result tsGetTemperature ( TsLocation  location,
s32 temperature 
)

Gets the temperature for the specified TsLocation.

Parameters
[in]locationTsLocation
[out]temperatureOutput temperature in Celsius.

◆ tsGetTemperatureMilliC()

Result tsGetTemperatureMilliC ( TsLocation  location,
s32 temperature 
)

Gets the temperature for the specified TsLocation, in MilliC.

Parameters
[in]locationTsLocation
[out]temperatureOutput temperature in MilliC.

◆ tsGetTemperatureRange()

Result tsGetTemperatureRange ( TsLocation  location,
s32 min_temperature,
s32 max_temperature 
)

Gets the min/max temperature for the specified TsLocation.

Parameters
[in]locationTsLocation
[out]min_temperatureOutput minimum temperature in Celsius.
[out]max_temperatureOutput maximum temperature in Celsius.