SPI INCLUDE nrf24l01

I want to get information about registers by spi .
I use arduino nano

#include "SPI.h"
#include "nRF24L01.h"

 */
// SPI PIN //
#define MiSO 11 // SPI Serial Output
#define MOSI 12 // SPI Serial Input
#define CE   9 // TX ModeHigh Pulse > 10μs | RX Mode High | Standby Modes  Low
#define CSN  10 //SPI Chip Select, active low
#define SCK  13 // SPI Clock

void f(byte x){
        digitalWrite(CSN, LOW); // SS is pin 10
        SPI.transfer(x);
        uint8_t ans1=SPI.transfer(0xff);
        digitalWrite(CSN, HIGH);
        SPI.end();
        Serial.print(ans1, 2);
        Serial.print(SPDR, 2);


}

void setup (void) {
        Serial.begin (9600);
        digitalWrite(CSN, HIGH);
        SPI.begin();
        SPI.setBitOrder(LSBFIRST );
        SPI.setClockDivider(SPI_CLOCK_DIV8);
        SPDR=0;
        f(NRF_STATUS);

}
void loop (void) {
        for(;;) {



        }
}

This is the "Programming Questions" section of the forum but you didn't ask a question.

        SPDR=0;

The library may be getting confused by you sending a 0 out the SPI interface. I recommend you remove this line.

        SPI.end();

You might want to move this to AFTER you re-read the SPDR.

What result are you getting?
What result are you expecting?

netromnik:
I want to get information about registers by spi .

Assuming you want to read the registers in the nRF24 then you should study the code in the TMRh20 RF24 library. It should cover everything you need.

If you just want to get your nRF24s working then have a look at the examples in this Simple nRF24L01+ Tutorial

...R