Component: RC5 (EB060, Generic 36KHz) (Wireless): Difference between revisions
Appearance
m Text replacement - "width="10%" align="center" style="background-color:#D8C9D8;"" to "width="10%" align="center" class="mtx-class-macrohead"" |
m Text replacement - "width="90%" style="background-color:#D8C9D8; color:#4B008D;"" to "width="90%" class="mtx-class-macrohead"" |
||
| Line 57: | Line 57: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''CheckRx''' | ||
|- | |- | ||
| colspan="2" | Checks to see if a new RC5 packet has been received. Returns 0 to signify no new data available. Returns 1 to signify there is new data available. | | colspan="2" | Checks to see if a new RC5 packet has been received. Returns 0 to signify no new data available. Returns 1 to signify there is new data available. | ||
| Line 71: | Line 71: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''CollectData''' | ||
|- | |- | ||
| colspan="2" | Retreives a value from the last successful RC5 reception. 0 = Read Command 1 = Read Address 2 = Read Toggle Bit | | colspan="2" | Retreives a value from the last successful RC5 reception. 0 = Read Command 1 = Read Address 2 = Read Toggle Bit | ||
| Line 90: | Line 90: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''RXDisable''' | ||
|- | |- | ||
| colspan="2" | Disables the RC5 data receive functionality. | | colspan="2" | Disables the RC5 data receive functionality. | ||
| Line 104: | Line 104: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''RXEnable''' | ||
|- | |- | ||
| colspan="2" | Enables the RC5 data receive functionality. | | colspan="2" | Enables the RC5 data receive functionality. | ||
| Line 118: | Line 118: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''TXDisable''' | ||
|- | |- | ||
| colspan="2" | Disables the RC5 data transmit functionality. | | colspan="2" | Disables the RC5 data transmit functionality. | ||
| Line 132: | Line 132: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''TXEnable''' | ||
|- | |- | ||
| colspan="2" | Enables the RC5 data transmit functionality. | | colspan="2" | Enables the RC5 data transmit functionality. | ||
| Line 146: | Line 146: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''TXPacket''' | ||
|- | |- | ||
| colspan="2" | Transmits a RC5 data packet consisting of command, address and toggle bit. | | colspan="2" | Transmits a RC5 data packet consisting of command, address and toggle bit. | ||
| Line 176: | Line 176: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Properties''' | ||
|- | |- | ||
|- | |- | ||
Revision as of 14:23, 13 July 2026
| Author | Matrix Ltd. |
| Version | 1.2 |
| Category | Wireless |
RC5 (EB060, Generic 36KHz) component
Low level routines for controlling a standard RC5 IR interface. Also available in the form of the EB060 RC5 E-block.
Detailed description
No detailed description exists yet for this component
Examples
Receive Data
Example to receive data via RC5 encoded IR on an Arduino Uno. RC5 incoming data pin connected to pin D2. If a valid RC5 packet is received then the 8-bit data is sent to the UART to USB converter to be displayed on the PC serial terminal.
Macro reference
CheckRx
| CheckRx | |
| Checks to see if a new RC5 packet has been received. Returns 0 to signify no new data available. Returns 1 to signify there is new data available. | |
| Return | |
CollectData
| CollectData | |
| Retreives a value from the last successful RC5 reception. 0 = Read Command 1 = Read Address 2 = Read Toggle Bit | |
| Index | |
| 0=Command, 1=Address, 2=ToggleBit | |
| Return | |
RXDisable
| RXDisable | |
| Disables the RC5 data receive functionality. | |
| Return | |
RXEnable
| RXEnable | |
| Enables the RC5 data receive functionality. | |
| Return | |
TXDisable
| TXDisable | |
| Disables the RC5 data transmit functionality. | |
| Return | |
TXEnable
| TXEnable | |
| Enables the RC5 data transmit functionality. | |
| Return | |
TXPacket
Property reference
Component Source Code
Please click here to download the component source project: FC_Comp_Source_RC5.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_RC5.fcfx