Commit Graph
221 Commits
Author SHA1 Message Date
TMRh20 14187cd1a1 Updated readme and h file for doxygen
See http://tmrh20.github.io/RF24/class_r_f24.html for the class
documenation.
2014-03-19 19:13:26 -06:00
TMRh20 1e2f41c3f8 Inspired idea to change TX standby code
Realised that data would be lost if dropping to standby or power down
mode before the FIFO is empty.
txStandby now returns a boolean value to indicate whether the
transmission is complete. If there is data in the TX FIFO the radio will
not drop out of TX mode. eg: while(  !txStandBy()  ){}
2014-03-19 08:26:59 -06:00
TMRh20 77b1e2c140 - Slight modification to reUseTX cmd
- put the CE HIGH, LOW changes in the cmd for non-internal use
- Put the clearing of MAX_RT in the reUse cmd for non-internal use
- Removed unneeded delay from writeBlocking()
2014-03-19 03:43:13 -06:00
TMRh20 281ace4ba2 Added writeFast() cmd - fill FIFO or return 0
- WriteFast allows the FIFO buffers to be filled up before returning 0
- The current payload will be dropped, and the previous payload resent
- The user should just keep trying to send the same data if a 0 is
received
2014-03-19 03:19:39 -06:00
TMRh20 d0ec0c461c Changed writing modes
- Changed writeClear to the default radio.write() option
- Changed write() to writeBlock() - uses the auto-retry functionality of
the chip and will block forever until successful
2014-03-19 00:46:47 -06:00
TMRh20 dfc75db8e6 Update readme temporarily
- advisory of non-compliance with current documentation
2014-03-18 08:32:10 -06:00
TMRh20 4cf0fb0c5a High Speed Data Transfers/Optimization
Changes:

- Enable PTX at radio begin, in standby-I mode
- Enable PTX at radio stopListening(); in standy-I mode

- Radio startListening
- removed delay. What is there to wait for when the radio will just be
listening anyway?

- Radio powerUp
- radio will need to be powered up after configuration
- radio will not power down unless instructed to
- need to issue radio.txStandBy(); when finished transmitting to engage
standby-I mode

- Added txStandBy() to drop to standBy-I mode if not switching to RX
mode

- Radio Write: Sped up
- radio previously did not use standby mode effectively, after TX
sending of each packet, the radio is
powered down introducing a 1.5ms delay in addition to the 130us delay
from standby.
- No observe-tx code, a simple NOP cmd is sent to get the status info
- No millis() timeout, hanging condition should only occur because of
faulty code
- Simplified whatHappened() code
- Flush TX FIFO if MAX_RT met as lib does not support re-transmit
instead of flush every time.
- Remove ack size monitoring
- No powerdown needed,

- Added writeClear() function for writes that need the interrupt flags
cleared (ack payloads, etc). Same as write() otherwise

- Radio startWrite: Sped up
- Enable PTX mode is now done in stopListening() code. Enter TX mode by
writing CE high.
This brings the data transfer capabilities up to a reasonable level
- No need to power up, already in Standby-I mode
- No need for delayMicroseconds() in write functon.
- No need for delay after writing CE high
- Does not enter Standby-I mode be default. It is up to the MCU to call
the new txStandBy() function to enter standby-I mode from PTX if not
switching back to PRX

- Radio available:
- Now checks the FIFO buffer instead of the interrupt flag (no missed
data)
- Moved clearing of interrupt flags to Read()

- Radio read:
- No longer returns any value - use available to check for more data

- Radio isAckPayloadAvailable() now checks the FIFO directly

- Radio getDynamicPayloadSize() - Per the datasheet, added fix to flush
corrupted packets
2014-03-18 07:07:03 -06:00
maniacbug ebcd0d1d0b Add isValid 2013-10-03 06:53:28 -07:00
maniacbug 8eaad77b2c Merge pull request #16 from RWSDev/master
Updated led_remote example to use correct var on line 172
2013-07-12 20:31:56 -07:00
Jason Becht 49f22eae21 Update examples/led_remote/led_remote.pde
Line 172 was using button_pins instead of led_pins.  This caused leds to be lit dim when set to HIGH.  Changed to correct var.
2013-02-06 18:43:42 -06:00
maniacbug 84e464def4 latest jamfiles 2012-06-23 19:46:42 -07:00
maniacbug 2c97186329 Fix bug introduced in the move to PROGMEM. Props to @basilrx for finding this. Also added a test case to demonstrate the bug, and guard against more like it in the future. 2012-02-26 19:53:08 -08:00
maniacbug f6e59b9de8 Remove prog_char, for compliance with gcc 4.6.1 2012-01-17 22:05:11 -08:00
maniacbug 205d4b5cc1 Tune timing and upload rate of tests 2012-01-17 22:04:20 -08:00
maniacbug 94635e8cc5 runtests now hups between each test instead of uploading 2012-01-15 23:35:07 -08:00
maniacbug c6262edbce FAQ- How much RAM?? 2012-01-15 22:23:10 -08:00
maniacbug 99df87cba9 Merge branch 'master' of github.com:maniacbug/RF24 2012-01-15 22:18:16 -08:00
maniacbug dc48235343 Refactor pingpair_test to remove all serial io from within the irq handler, as necessitated by Arduino 1.0 2012-01-15 22:15:45 -08:00
maniacbug dec61af85f pingpair_blocking test now uses expect and runs on linux 2012-01-15 22:07:13 -08:00
maniacbug c2e9564678 Use latest Jamfile 2012-01-15 22:06:27 -08:00
maniacbug eb3b2d800a Reduce RAM footprint by moving static const data to progmem, and refactoring out switch statements. 2012-01-15 22:05:44 -08:00
maniacbug e31f8c8211 Update docs and comments for new nordic fob blog post 2012-01-08 08:30:01 -08:00
maniacbug cb6613d62f Really...Pins 9 & 10 this time. I mean it\! 2012-01-04 21:23:15 -08:00
maniacbug 33e59af725 Fix Jamfile for proper ordering of libraries 2012-01-04 21:21:02 -08:00
maniacbug b3f7f51510 docupdate 2012-01-04 21:20:39 -08:00
maniacbug d1653e8cad nordic_fob example fully working. 2012-01-04 21:00:15 -08:00
maniacbug 36167a9e02 New 'nordic_fob' example started, based on pingpair 2012-01-04 20:11:28 -08:00
maniacbug 76f79e62ed Fix bug in pingpair Jamfile 2011-12-24 10:09:46 -08:00
maniacbug 07a4bcf425 Use latest copyright 2011-12-24 10:07:16 -08:00
maniacbug fc06760736 Documentation update. 1.0 fully supported, Maple works, more examples, links and pictures for proejcts 2011-12-21 10:17:16 -08:00
maniacbug 238e9d27b6 Merge branch 'master' of github.com:maniacbug/RF24 2011-12-21 08:33:01 -08:00
maniacbug 5cb32c92cc Handle SPI.h better in Maple 2011-12-21 08:32:57 -08:00
maniacbug de994ba5ef Correct the comment for pin #'s 2011-12-20 15:45:50 -08:00
maniacbug c1f71ebcb7 Correct the comment for pin #'s 2011-12-20 15:45:25 -08:00
maniacbug 0f9b172697 Correct the comment for pin #'s 2011-12-20 15:44:55 -08:00
maniacbug 6a7c42bdeb Correct the comment for pin #'s 2011-12-20 15:38:56 -08:00
maniacbug 332fd03192 Correct the comment for pin #'s 2011-12-20 15:33:40 -08:00
maniacbug 6d25fbebfd Correct the comment for pin #'s 2011-12-20 15:33:17 -08:00
maniacbug a70da53c22 Correct the comment for pin #'s 2011-12-20 15:32:45 -08:00
maniacbug 8493b9a60e Correct the comment for pin #'s 2011-12-20 15:32:21 -08:00
maniacbug 50b18a9c7d Reduce delays in startWrite down to only required delays 2011-12-19 06:19:25 -08:00
maniacbug bc7e422083 Merge branch 'master' of github.com:maniacbug/RF24 2011-12-18 12:29:03 -08:00
maniacbug 26ea4583cd Added #error to printf for examples that require Arduino 2011-12-18 10:56:12 -08:00
maniacbug 19fa3954c0 Added new jamfile to this example 2011-12-18 10:54:47 -08:00
maniacbug 840ad1cd3d Clean up pin assignments 2011-12-14 18:35:08 -08:00
maniacbug a6bf911f5a Added example for Maple 2011-12-10 15:54:11 -08:00
maniacbug 53cb579400 Moved environment-specific checking out to RF24_config.h 2011-12-10 15:52:33 -08:00
maniacbug f3934084a1 Changes to work on Maple 2011-12-10 00:42:23 -08:00
maniacbug 9f806a5b00 Move default pins over to Getting Started defaults 2011-11-28 21:24:37 -08:00
maniacbug 5726c1622a Fixed bug in scanner display, thanks to David Bath. Also upgraded to latest Jam toolchain and moved pins over to the new GettingStarted defaults. 2011-11-28 21:23:38 -08:00