Difference between revisions of "Component: RF Transceiver (nRF24L01) (Wireless)"
From Flowcode Help
Jump to navigationJump to search (Created page with "{| style="width:50%" |- | width="20%" style="color:gray;" | Author | Matrix Ltd. |- | width="20%" style="color:gray;" | Version | 2.0 |- | width="20%" style="color:gra...") |
|||
| (One intermediate revision by the same user not shown) | |||
| Line 5: | Line 5: | ||
|- | |- | ||
| width="20%" style="color:gray;" | Version | | width="20%" style="color:gray;" | Version | ||
| − | | | + | | 9.0 |
|- | |- | ||
| width="20%" style="color:gray;" | Category | | width="20%" style="color:gray;" | Category | ||
| Line 15: | Line 15: | ||
A simple RF communications module based on the 2.4GHz nRF24L01 transceivermodules. | A simple RF communications module based on the 2.4GHz nRF24L01 transceivermodules. | ||
| − | == | + | ==Version information== |
| − | + | Library Version, Component Version, Date, Author, Info | |
| + | 9, 9.0, 08-11-24, MW, added missing icon | ||
| + | |||
| − | |||
==Detailed description== | ==Detailed description== | ||
| Line 405: | Line 406: | ||
|- | |- | ||
| colspan="2" | SPI Data Out Pin SDO - Also Known as Master Out Slave In (MOSI) when used in Master mode. | | colspan="2" | SPI Data Out Pin SDO - Also Known as Master Out Slave In (MOSI) when used in Master mode. | ||
| + | |- | ||
| + | | width="10%" align="center" | [[File:Fc9-type-16-icon.png]] | ||
| + | | width="90%" | MOSI Remap Pin | ||
| + | |- | ||
| + | | colspan="2" | Select which the target pin to assign the MOSI hardware pin functionality. | ||
|- | |- | ||
| width="10%" align="center" | [[File:Fc9-type-5-icon.png]] | | width="10%" align="center" | [[File:Fc9-type-5-icon.png]] | ||
| Line 410: | Line 416: | ||
|- | |- | ||
| colspan="2" | SPI Data In Pin SDI - Also Known as Master In Slave Out (MISO) when used in Master mode. | | colspan="2" | SPI Data In Pin SDI - Also Known as Master In Slave Out (MISO) when used in Master mode. | ||
| + | |- | ||
| + | | width="10%" align="center" | [[File:Fc9-type-16-icon.png]] | ||
| + | | width="90%" | MISO Remap Pin | ||
| + | |- | ||
| + | | colspan="2" | Select which the target pin to assign the MISO hardware pin functionality. | ||
|- | |- | ||
| width="10%" align="center" | [[File:Fc9-type-5-icon.png]] | | width="10%" align="center" | [[File:Fc9-type-5-icon.png]] | ||
| Line 415: | Line 426: | ||
|- | |- | ||
| colspan="2" | SPI Clock Pin CLK - The Clock signal is driven by the SPI master. | | colspan="2" | SPI Clock Pin CLK - The Clock signal is driven by the SPI master. | ||
| + | |- | ||
| + | | width="10%" align="center" | [[File:Fc9-type-16-icon.png]] | ||
| + | | width="90%" | CLK Remap Pin | ||
| + | |- | ||
| + | | colspan="2" | Select which the target pin to assign the CLK hardware pin functionality. | ||
|- | |- | ||
| width="10%" align="center" | [[File:Fc9-type-5-icon.png]] | | width="10%" align="center" | [[File:Fc9-type-5-icon.png]] | ||
| Line 450: | Line 466: | ||
| colspan="2" | | | colspan="2" | | ||
|} | |} | ||
| + | |||
| + | ==Component Source Code== | ||
| + | |||
| + | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_nRF24L01.fcfx FC_Comp_Source_nRF24L01.fcfx] | ||
| + | |||
| + | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_nRF24L01.fcfx FC_Comp_Source_nRF24L01.fcfx] | ||
Latest revision as of 21:17, 27 January 2026
| Author | Matrix Ltd. |
| Version | 9.0 |
| Category | Wireless |
Contents
RF Transceiver (nRF24L01) component
A simple RF communications module based on the 2.4GHz nRF24L01 transceivermodules.
Version information
Library Version, Component Version, Date, Author, Info 9, 9.0, 08-11-24, MW, added missing icon
Detailed description
No detailed description exists yet for this component
Examples
Example program transmitting a count value, echoing the count and TX status to the UART for debugging.
Example program receiving a value, echoing any received values to the UART for debugging.
Macro reference
CheckRX
| CheckRX | |
| Check the Rx FIFO status register for any new data. Returns 0 = No data Returns 1 = New data available | |
| Return | |
FlushRx
| FlushRx | |
| Tells the RF module to flush the contents of the receive buffer. Returns the status from sending the command. | |
| Return | |
FlushTx
| FlushTx | |
| Tells the RF module to flush the contents of the transmit buffer. Returns the status from sending the command. | |
| Return | |
Initialise
ReadRegister
| ReadRegister | |
| Reads a single bytes from the selected register. Directly returns the value read back from the register. | |
| Reg | |
| Register address to access | |
| Return | |
ReadRxArray
| ReadRxArray | |
| Reads an array of bytes back from the local Rx buffer. | |
| Data | |
| Byte array to store the received data | |
| NumBytes | |
| Range: 1-32 | |
| Return | |
ReadRxByte
| ReadRxByte | |
| Reads a single byte back from the local Rx buffer. | |
| Index | |
| Byte to read, range 0 - 31 | |
| Return | |
ReadRxFifo
| ReadRxFifo | |
| Reads the Rx FIFO buffer into a local buffer. Use the ReadBuffer/ReadArray macros to collect the individual data bytes. | |
| Return | |
SetRxMode
SetTxMode
WriteRegister
| WriteRegister | |
| Writes a single byte to the selected register. Returns the status of the write command. | |
| Reg | |
| Register address to access | |
| Value | |
| Return | |
WriteTxArray
| WriteTxArray | |
| Writes an array of bytes to the local Tx buffer. | |
| Data | |
| Byte array to write. | |
| NumBytes | |
| Range: 1-32 | |
| Return | |
WriteTxByte
| WriteTxByte | |
| Writes a single byte to the local Tx buffer. | |
| Index | |
| Byte to read, range 0 - 31 | |
| Value | |
| Return | |
WriteTxFifo
| WriteTxFifo | |
| Writes the contents of the local Tx buffer to the Transmit FIFO and transmits. Returns 1 if transmission was sucessful. | |
| Return | |
Property reference
Component Source Code
Please click here to download the component source project: FC_Comp_Source_nRF24L01.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_nRF24L01.fcfx