Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Rc6Transmitter Class Reference
RC6 (Philips remote control) receiver / transmitter library. More...
#include <Rc6.h>
Public Member Functions | |
| Rc6Transmitter (PinName irPin) | |
| Create a Rc6Transmitter and initizalize it. | |
| void | Send (uint32_t code) |
| Send a code once. | |
| bool | IsBusy () |
| Check if the transmitter is idle. | |
Detailed Description
RC6 (Philips remote control) receiver / transmitter library.
Example: Code receiver for 'play/pause' on remote for Philips HDD&DVD recorder.
Leader |S3|S2|S1|S0|Togl|A7|A6|A5|A4|A3|A2|A1|A0|D7|D6|D5|D4|D3|D2|D1|D0| |1 |0 |0 |0 |1 |0 |0 |1 |1 |0 |0 |1 |0 |0 |0 |1 |0 |1 |1 |0 |0 | | | | | | | | | | | | | | | | | | | | | | | ------ |- | -| -| -|-- | -| -|- |- | -| -|- | -| -| -|- | -|- |- | -| -| --| -|- |- |- | --|- |- | -| -|- |- | -|- |- |- | -|- | -| -|- |- | | | | | | | | | | | | | | | | | | | | | | |
The toggle bit is in bit 16, A7-A0 in bits 15-8, D7-D0 in bits 7-0. Thus for the example, 0x1322C is returned. S3..S0 are not implemented and received / transmitted as shown in the example.
Definition at line 44 of file Rc6.h.
Constructor & Destructor Documentation
| Rc6Transmitter | ( | PinName | irPin ) |
Create a Rc6Transmitter and initizalize it.
- Parameters:
-
pin irPin pin connected IR Led (led on on high level).
Member Function Documentation
| bool IsBusy | ( | ) |
Generated on Fri Aug 5 2022 17:30:03 by
1.7.2