libnx
v4.7.0
|
Temperature measurement (ts) service IPC wrapper. More...
Go to the source code of this file.
Data Structures | |
struct | TsSession |
Enumerations | |
enum | TsLocation { TsLocation_Internal = 0 , TsLocation_External = 1 } |
Location. More... | |
enum | TsDeviceCode { TsDeviceCode_LocationInternal = 0x41000001u , TsDeviceCode_LocationExternal = 0x41000002u } |
Functions | |
Result | tsInitialize (void) |
Initialize ts. | |
void | tsExit (void) |
Exit ts. | |
Service * | tsGetServiceSession (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... | |
Result | tsOpenSession (TsSession *s, u32 device_code) |
[8.0.0+] | |
Result | tsSessionGetTemperature (TsSession *s, float *temperature) |
[10.0.0+] | |
void | tsSessionClose (TsSession *s) |
Temperature measurement (ts) service IPC wrapper.
enum TsLocation |
Result tsGetTemperature | ( | TsLocation | location, |
s32 * | temperature | ||
) |
Gets the temperature for the specified TsLocation.
[in] | location | TsLocation |
[out] | temperature | Output temperature in Celsius. |
Result tsGetTemperatureMilliC | ( | TsLocation | location, |
s32 * | temperature | ||
) |
Gets the temperature for the specified TsLocation, in MilliC.
[1.0.0-13.2.1]
[in] | location | TsLocation |
[out] | temperature | Output temperature in MilliC. |
Result tsGetTemperatureRange | ( | TsLocation | location, |
s32 * | min_temperature, | ||
s32 * | max_temperature | ||
) |
Gets the min/max temperature for the specified TsLocation.
[in] | location | TsLocation |
[out] | min_temperature | Output minimum temperature in Celsius. |
[out] | max_temperature | Output maximum temperature in Celsius. |