This library implements RC6 (protocol used by some philips remotes). It has a receiver class and a transmitter class. Currently, only mode 0 is supported. It is tested with my DVD/HDD recorder.

Embed: (wiki syntax)

« Back to documentation index

Rc6Transmitter Class Reference

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:
pinirPin pin connected IR Led (led on on high level).

Definition at line 25 of file Rc6.cpp.


Member Function Documentation

bool IsBusy (  )

Check if the transmitter is idle.

Returns:
True if transmitter still busy.

Definition at line 124 of file Rc6.cpp.

void Send ( uint32_t  code )

Send a code once.

The function will return synchronously and send the code once.

Parameters:
codeCode to send.

Definition at line 32 of file Rc6.cpp.