9 #include "../sf/service.h"
18 TsDeviceCode_LocationInternal = 0x41000001u,
19 TsDeviceCode_LocationExternal = 0x41000002u,
Service object structure.
Definition: service.h:14
Result tsSessionGetTemperature(TsSession *s, float *temperature)
[10.0.0+]
Result tsInitialize(void)
Initialize ts.
TsLocation
Location.
Definition: ts.h:12
@ TsLocation_Internal
TMP451 Internal: PCB.
Definition: ts.h:13
@ TsLocation_External
TMP451 External: SoC.
Definition: ts.h:14
void tsExit(void)
Exit ts.
Result tsGetTemperature(TsLocation location, s32 *temperature)
Gets the temperature for the specified TsLocation.
Service * tsGetServiceSession(void)
Gets the Service for ts.
Result tsGetTemperatureMilliC(TsLocation location, s32 *temperature)
Gets the temperature for the specified TsLocation, in MilliC.
Result tsOpenSession(TsSession *s, u32 device_code)
[8.0.0+]
Result tsGetTemperatureRange(TsLocation location, s32 *min_temperature, s32 *max_temperature)
Gets the min/max temperature for the specified TsLocation.
u32 Result
Function error code result type.
Definition: types.h:44
int32_t s32
32-bit signed integer.
Definition: types.h:27
uint32_t u32
32-bit unsigned integer.
Definition: types.h:21