User manual
Copyright © Dr Robot Inc. 2005  
37
ival = GetSensorIRCode4 ();  // the fourth code 
Parameter:    void 
Return value:    short  ival 
Return data interpretation: 
The recovered infrared remote control command (4 bytes code) is as follows: 
Key Code:  [the third byte] [the second byte] [the first byte] 
Repeat Code:  [the fourth byte] 
where the repeat code would be 255 if button is pressed continuously. 
38  void SetInfraredControlOutput (UWord16 LowWord, UWord16 HighWord); 
Description: 
SetInfraredControlOutput sends two 16-bit words infrared communication output data to 
the Sensing and Motion Controller (PMS5005). The PMS5005 will then send the data out 
through the infrared Remote Controller Module (MIR5500). In the case of being used for 
infrared remote control, the output data serves as the remote control command. 
Syntax:    SetInfraredControlOutput (LowWord, HighWord); 
Parameter:    UWord16 LowWord;  // 1
st
 word 
UWord16 HighWord;  // 2
nd
 word 
Return value:    void 
Remarks: 
1.  In infrared communication application, the data format and the interpretation can 
be defined by the user at the application level. 
2.  In infrared remote control application, the control command should be compatible 
to the device to which the command is sent. 
3.  This API function is under development and will be available shortly. 
III.1.7 Battery Voltage Monitors 
39  short GetSensorBatteryAD1 (); 
40  short GetSensorBatteryAD2 (); 
41  short GetSensorBatteryAD3 (); 
Description: 










