PTM services: Difference between revisions

No edit summary
No edit summary
Line 280: Line 280:


== GetTemperatureRange ==
== GetTemperatureRange ==
Takes an u8 [[#Location]]. Returns an s32 minimum temperature + s32 maximum temperature.
Takes an input u8 [[#Location]]. Returns two s32s '''MinimumTemperature''' and '''MaximumTemperature'''.


The returned temperature values are in Celsius.
The returned temperature values are in Celsius.


== GetTemperature ==
== GetTemperature ==
Takes an u8 [[#Location]]. Returns an output s32.
Takes an input u8 [[#Location]]. Returns an output s32.


The output is the temperature in Celsius.
The output is the temperature in Celsius.


== SetMeasurementMode ==
== SetMeasurementMode ==
Takes an u8 [[#Location]] and an u8 MeasurementMode. No output.
Takes two input u8s [[#Location]] and '''MeasurementMode'''. No output.


== GetTemperatureMilliC ==
== GetTemperatureMilliC ==
Takes an u8 [[#Location]]. Returns an output s32.
Takes an input u8 [[#Location]]. Returns an output s32.


The output is the temperature in MilliC.
The output is the temperature in MilliC.


== OpenSession ==
== OpenSession ==
Takes a total of 4-bytes of input. Returns an [[#ISession]].
Takes an input [[#Location|DeviceCode]]. Returns an [[#ISession]].


== ISession ==
== ISession ==
Line 703: Line 703:
{| class="wikitable" border="1"
{| class="wikitable" border="1"
|-
|-
! Value || Name
! Value || Name || DeviceCode
|-
|-
| 0 || Internal
| 0 || Internal || 0x41000001
|-
|-
| 1 || External
| 1 || External || 0x41000002
|}
|}