Defines

hal_nrf_hw
[nRF24LU1+ HAL]

Defines

#define CSN_LOW()   do { RFCSN = 0; } while(false)
#define CSN_HIGH()   do { RFCSN = 1; } while(false)
#define CE_LOW()   do { RFCE = 0; } while(false)
#define CE_HIGH()   do { RFCE = 1; } while(false)
#define HAL_NRF_HW_SPI_WRITE(d)   do{RFDAT = d; RFSPIF = 0;} while(false)
#define HAL_NRF_HW_SPI_READ()   RFDAT
#define HAL_NRF_HW_SPI_BUSY   (!RFSPIF)
#define CE_PULSE()

Define Documentation

#define CSN_LOW (  )    do { RFCSN = 0; } while(false)

Macro that set radio's CSN line LOW.

Definition at line 30 of file hal_nrf_hw.h.

#define CSN_HIGH (  )    do { RFCSN = 1; } while(false)

Macro that set radio's CSN line HIGH.

Definition at line 35 of file hal_nrf_hw.h.

#define CE_LOW (  )    do { RFCE = 0; } while(false)

Macro that set radio's CE line LOW.

Definition at line 40 of file hal_nrf_hw.h.

#define CE_HIGH (  )    do { RFCE = 1; } while(false)

Macro that set radio's CE line HIGH.

Definition at line 45 of file hal_nrf_hw.h.

#define HAL_NRF_HW_SPI_WRITE (   d )    do{RFDAT = d; RFSPIF = 0;} while(false)

Macro for writing the radio SPI data register.

Definition at line 50 of file hal_nrf_hw.h.

#define HAL_NRF_HW_SPI_READ (  )    RFDAT

Macro for reading the radio SPI data register.

Definition at line 55 of file hal_nrf_hw.h.

#define HAL_NRF_HW_SPI_BUSY   (!RFSPIF)

Macro specifyng the radio SPI busy flag.

Definition at line 60 of file hal_nrf_hw.h.

#define CE_PULSE (  )
Value:
do { \
  uint8_t count; \
  count = 20; \
  CE_HIGH();  \
  while(count--){} \
  CE_LOW();  \
  } while(false)

Pulses the CE to nRF24L01 for at least 10 us

Definition at line 65 of file hal_nrf_hw.h.