Sin descripción
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

nrf24l01.h 699B

12345678910111213141516171819202122232425
  1. #ifndef NRF24L01_H
  2. #define NRF24L01_H
  3. /* AVR I/O pin definionts */
  4. #define NRF_CE_DDR DDRB
  5. #define NRF_CE_PORT PORTB
  6. #define NRF_CE_PIN PB4
  7. #define NRF_CSN_DDR DDRB
  8. #define NRF_CSN_PORT PORTB
  9. #define NRF_CSN_PIN PB5
  10. void Initialize_NRF24L01(void);
  11. void Configure_Transmission(void);
  12. uint8_t Read_NRF_Status_Register(void);
  13. uint8_t Read_NRF_Register(uint8_t address, uint8_t * registerContents);
  14. void Write_NRF_Register(uint8_t address, uint8_t registerContents);
  15. void Send_Activate_Command(void);
  16. void Send_Test_Message(void);
  17. void Write_Message_To_TX_FIFO(uint8_t length, uint8_t * buffer);
  18. void Set_TX_Address(uint32_t txAddress);
  19. void Set_RX_P0_Address(uint32_t rxAddress);
  20. #endif