Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable buffered writes/transmissions
- Add optional startTx to startFastWrite() function: a: Allows software to fully utilize FIFO buffers for buffering payloads to the TX FIFO, while remaining in RX mode, instead of storing data in RAM etc. b: Default is still to start sending immediately unless startTx is included and set to 0 Note: This will not work correctly if using ack-payloads. Tx FIFO is flushed when switching between RX/TX modes to prevent data corruption. - Added optional startTx to txStandBy(timeout,startTx) a: Allows automated sending of buffered data, with indication of success or failure for the bulk data transfer. b: Default is still to not initiate sending, and not leave RX mode. c: Calling this with startTx set to true will automatically call radio.stopListening() to begin transmission. Example: radio.startFastWrite( &time, sizeof(unsigned long), false ); radio.startFastWrite( &time, sizeof(unsigned long), false ); if (!radio.txStandBy(100, true) ){ printf("failed.\n\r"); } radio.startListening()
- Loading branch information
08480a3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sync with TMRh20 sources