Component: RF Transceiver (nRF24L01) (Wireless)
From Flowcode Help
(Redirected from Component: ID 882b6951 9944 48cc 8989 6ebd3d91956f)
Jump to navigationJump to searchAuthor | Matrix Ltd. |
Version | 2.0 |
Category | Wireless |
Contents
RF Transceiver (nRF24L01) component
A simple RF communications module based on the 2.4GHz nRF24L01 transceivermodules.
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
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 | |
- BYTE | Return |
FlushRx
FlushRx | |
Tells the RF module to flush the contents of the receive buffer. Returns the status from sending the command. | |
- BYTE | Return |
FlushTx
FlushTx | |
Tells the RF module to flush the contents of the transmit buffer. Returns the status from sending the command. | |
- BYTE | Return |
Initialise
ReadRegister
ReadRegister | |
Reads a single bytes from the selected register. Directly returns the value read back from the register. | |
- BYTE | Reg |
Register address to access | |
- BYTE | Return |
ReadRxArray
ReadRxArray | |
Reads an array of bytes back from the local Rx buffer. | |
- BYTE | Data |
Byte array to store the received data | |
- BYTE | NumBytes |
Range: 1-32 | |
- VOID | Return |
ReadRxByte
ReadRxByte | |
Reads a single byte back from the local Rx buffer. | |
- BYTE | Index |
Byte to read, range 0 - 31 | |
- BYTE | Return |
ReadRxFifo
ReadRxFifo | |
Reads the Rx FIFO buffer into a local buffer. Use the ReadBuffer/ReadArray macros to collect the individual data bytes. | |
- VOID | Return |
SetRxMode
SetTxMode
WriteRegister
WriteRegister | |
Writes a single byte to the selected register. Returns the status of the write command. | |
- BYTE | Reg |
Register address to access | |
- BYTE | Value |
- BYTE | Return |
WriteTxArray
WriteTxArray | |
Writes an array of bytes to the local Tx buffer. | |
- BYTE | Data |
Byte array to write. | |
- BYTE | NumBytes |
Range: 1-32 | |
- VOID | Return |
WriteTxByte
WriteTxByte | |
Writes a single byte to the local Tx buffer. | |
- BYTE | Index |
Byte to read, range 0 - 31 | |
- BYTE | Value |
- VOID | Return |
WriteTxFifo
WriteTxFifo | |
Writes the contents of the local Tx buffer to the Transmit FIFO and transmits. Returns 1 if transmission was sucessful. | |
- BOOL | Return |