| aIRCM_Transmit | Index |
Definition:
Parameters:
| addr | - | IIC address of the specified IRCM. |
| dest | - | The IRCM remote node that will receive the transmitted data. |
| timeout | - | The timeout value in seconds (1-15). |
| data | - | The data to be transmitted. |
Return Value:
Description:
This routine initializes the IRCM for transmission by supplying the remote node that will receive data, a timeout value, and a data byte. Then the routine starts the transmit process. Any data previously stored in extended data registers will also be transmitted. It returns the result of the transmit attempt in a status byte. See the documentation for the IR Communication Module for more details regarding IRCM register functions.
Example:
#include <aIRCM.tea>
c=aIRCM_Transmit((unsigned char)0xC0, 4, 3, 65);
This would make the IRCM attempt to send a byte of 65 to remote node 4 using a timeout of 3 seconds.
Related: