| aIRCM_GetRRWord | Index |
Definition:
Parameters:
| addr | - | IIC address of the specified IRCM. |
Return Value:
Description:
This routine reads the remote-read node register and remote-read data register in an IRCM into a 2-byte variable. The remote-read node is in the high byte. The remote-read data is in the low byte. This is a convenience routine that makes it possible to read the two registers with one call. See the documentation for the IR Communication Module for more details regarding IRCM register functions.
| Note: | This routine is defined as a macro that calls the aI2C_ReadInt function. |
Example:
#include <aIRCM.tea>
n=aIRCM_GetRRWord((unsigned char)0xC0);
This would write the contents of the IRCM remote-read node register and remote-data register to variable n.
Related: