Nenhuma descrição
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

nrf24l01.h 879B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef NRF24L01_H
  2. #define NRF24L01_H
  3. /* AVR I/O pin definionts */
  4. #define NRF_CE_DDR DDRD
  5. #define NRF_CE_PORT PORTD
  6. #define NRF_CE_PIN PD7
  7. #define NRF_CSN_DDR DDRD
  8. #define NRF_CSN_PORT PORTD
  9. #define NRF_CSN_PIN PD6
  10. #define NRF_IRQ_DDR DDRD
  11. #define NRF_IRQ_PORT PORTD
  12. #define NRF_IRQ_PIN PD5
  13. #define NRF_IRQ_PORTIN PIND
  14. void Initialize_NRF24L01(void);
  15. void Set_NRF24L01_Pins(void);
  16. void Configure_Transmission(void);
  17. uint8_t Read_NRF_Status_Register(void);
  18. uint8_t Read_NRF_Register(uint8_t address, uint8_t * registerContents);
  19. void Write_NRF_Register(uint8_t address, uint8_t registerContents);
  20. void Send_Activate_Command(void);
  21. void NRF24L01_Send_Message(uint8_t *buffer, uint8_t length);
  22. void Write_Message_To_TX_FIFO(uint8_t length, uint8_t * buffer);
  23. void Set_TX_Address(uint32_t txAddress);
  24. void Set_RX_P0_Address(uint32_t rxAddress);
  25. #endif