Macros and hardware includes for nRF24LE1. More...
#include <nrf24le1.h>
Go to the source code of this file.
Defines | |
Hardware dependencies | |
#define | CSN_LOW() do {RFCSN = 0U; } while(false) |
#define | CSN_HIGH() do {RFCSN = 1U; } while(false) |
#define | CE_LOW() do {RFCE = 0U;} while(false) |
#define | CE_HIGH() do {RFCE = 1U;} while(false) |
#define | HAL_NRF_HW_SPI_WRITE(d) do{SPIRDAT = (d);} while(false) |
#define | HAL_NRF_HW_SPI_READ() SPIRDAT |
#define | HAL_NRF_HW_SPI_BUSY (!(SPIRSTAT & 0x02U)) |
#define | CE_PULSE() |
Macros and hardware includes for nRF24LE1.
Definition in file hal_nrf_hw.h.
#define CSN_LOW | ( | ) | do {RFCSN = 0U; } while(false) |
Macro that set radio's CSN line LOW.
Definition at line 32 of file hal_nrf_hw.h.
#define CSN_HIGH | ( | ) | do {RFCSN = 1U; } while(false) |
Macro that set radio's CSN line HIGH.
Definition at line 37 of file hal_nrf_hw.h.
#define CE_LOW | ( | ) | do {RFCE = 0U;} while(false) |
Macro that set radio's CE line LOW.
Definition at line 42 of file hal_nrf_hw.h.
#define CE_HIGH | ( | ) | do {RFCE = 1U;} while(false) |
Macro that set radio's CE line HIGH.
Definition at line 47 of file hal_nrf_hw.h.
#define HAL_NRF_HW_SPI_WRITE | ( | d ) | do{SPIRDAT = (d);} while(false) |
Macro for writing the radio SPI data register.
Definition at line 52 of file hal_nrf_hw.h.
#define HAL_NRF_HW_SPI_READ | ( | ) | SPIRDAT |
Macro for reading the radio SPI data register.
Definition at line 57 of file hal_nrf_hw.h.
#define HAL_NRF_HW_SPI_BUSY (!(SPIRSTAT & 0x02U)) |
Macro specifyng the radio SPI busy flag.
Definition at line 62 of file hal_nrf_hw.h.
#define CE_PULSE | ( | ) |
Pulses the CE to nRF24L01p for at least 10 us
Definition at line 67 of file hal_nrf_hw.h.