Base code, So no libraries. There are functions to write and read 1 byte registers and read and write bit in registers and write an address registers with 3 bytes adress..it wasn’t really working at first, so I thought might as well give RX & TX node proper 3 byte addresses..and payload is set to 2 bytes and there is a function to manage payload size too. There’s a function test_spi() to check if the SPI connections are all good.
And here are the results without auto acknowledgement or enhanced shockburst feature enabled..and I realized one has to clear interrupt flags themselves..they aren’t cleared automatically when if ISR is called..
First byte recieved is Status Register and other 2 bytes are payload..when if status register equals 4E it shows junk..rest of the time it works quite great.
Here’s the code for transmitter