User manual
Copyright © Dr Robot Inc. 2005
36
ival = GetSensorOverheatAD2(); //2
nd
overheating sensor
Parameter: void
Return value: short ival;
Return data interpretation:
The return data is the raw value of the analog to digital converter indicating the output
voltage of the sensor. The data range of the return value is between 0 and 4095. The
output voltage of the sensor can be calculated from the following equation:
Temperature (˚C) = 100- (ival – 980) / 11.6
33 short GetSensorTemperature ();
Description:
GetSensorTemperature returns the current temperature value from DAT5280 Ambient
Temperature Sensor Module.
Syntax: ival = GetSensorTemperature ();
Parameter: void
Return value: short ival;
Return data interpretation:
Temperature (˚C) = (ival – 1256) / 34.8
III.1.6 Infrared Remote Control Handling
34 short GetSensorIRCode1();
35 short GetSensorIRCode2();
36 short GetSensorIRCode3();
37 short GetSensorIRCode4();
Description:
GetSensorIRCodeX returns the four parts of a two-16-bit-code infrared remote control
command captured by the Sensing and Motion Controller (PMS5005) through the Infrared
Remote Controller Module (MIR5500).
Syntax: ival = GetSensorIRCode1 (); // the first code
ival = GetSensorIRCode2 (); // the second code
ival = GetSensorIRCode3 (); // the third code