Ok: to demonstrate what I'm after.
The following two programs demonstrate an enhanced ShockBurst(tm) exchange between two NRF24L01+ chips - connected to an Arduino. I use very little from the actual NRF24L01 library - but have pulled the code into C code blocks and modified.
I've added Write/Read data blocks, tweaked the startup slightly and am just using the default pipe (E7E7E7E7E7) of the NRF chips. I'm also using the interrupt pin to signal data recvd or transmitted (but I busy wait on it changing - bad I know but I wanted to get it working first, ideally the MCU would be doing something else or asleep here)
But: because I'm using C code the pins (CE and CSN) are hard coded (also bad) - see my previous questions about outputting to a components pins... (I suppose rewriting the entire component would fix this)
It works well - the transmitter outputting a variable length data block (I couldn't get the variable length to work using the standard component startup) and the receiver acknowledges with some data (a count of packets received as a string) . Both ends output a fair amount of debug (transmitter - Shows interrupt flags (status reg) and the Ack packet received. Receiver shows the data packet received.)
If anyone would like to try it:
Pin Digital2 is connected to interrupt (IRQ)
D8 (PortB 0) is CE
D10 (PortB 2) is CSN
D11-D13 are Standard MOSI MISO and SCK
I found I needed a Prescaler of Fosc/4
I used NRF24L01+ chips on header boards - which handle the power supply and level issues (and also have labelled pins - a curse on the board manufacturers who don't label the pins on boards)
As an aside - there is a slight mix of local/global variables. I'd far rather Flowcode defaulted to local first when adding a new variable - forcing me to click to add a global variable rather than the current way round.)
I think the current code works at 2Mbs/s - I may experiment with other speeds/powers later
As another aside: It would be good to sell components at a much smaller level.. Many of the packs (Displays for example) - are likely to remain 90% unused. Would it be possible to buy 'just' one component (for say £5). I purchased the debug and a second processor pack in the black Friday sale - but how to access them, no sign in Flowcode or on the website (and yes I did log in and payment was taken)