123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188 |
- #ifndef NRF_GZLL_CONSTANTS_H__
- #define NRF_GZLL_CONSTANTS_H__
- #ifdef __cplusplus
- extern "C" {
- #endif
- #define NRF_GZLL_HIGH_IRQ_PRIORITY 0
- #define NRF_GZLL_LOW_IRQ_PRIORITY 1
- #ifndef USE_SD_HW_RESOURCES
- #define NRF_GZLL_SWI_IRQn SWI0_IRQn
- #define NRF_GZLL_SWI_IRQ_HANDLER SWI0_IRQHandler
- #define NRF_GZLL_TIMER NRF_TIMER2
- #define NRF_GZLL_TIMER_IRQn TIMER2_IRQn
- #define NRF_GZLL_TIMER_IRQ_HANDLER TIMER2_IRQHandler
- #define NRF_GZLL_PPI_EEP0 (NRF_PPI->CH0_EEP)
- #define NRF_GZLL_PPI_TEP0 (NRF_PPI->CH0_TEP)
- #define NRF_GZLL_PPI_EEP1 (NRF_PPI->CH1_EEP)
- #define NRF_GZLL_PPI_TEP1 (NRF_PPI->CH1_TEP)
- #define NRF_GZLL_PPI_EEP2 (NRF_PPI->CH2_EEP)
- #define NRF_GZLL_PPI_TEP2 (NRF_PPI->CH2_TEP)
- #define NRF_GZLL_PPI_CHEN_MSK_0_AND_1 (0x03)
- #define NRF_GZLL_PPI_CHEN_MSK_2 (0x04)
- #else
- #define NRF_GZLL_SWI_IRQn SWI1_IRQn
- #define NRF_GZLL_SWI_IRQ_HANDLER SWI1_IRQHandler
- #define NRF_GZLL_TIMER NRF_TIMER0
- #define NRF_GZLL_TIMER_PERPOWER_Msk POWER_PERPOWER_TIMER0_Msk
- #define NRF_GZLL_TIMER_IRQn TIMER0_IRQn
- #define NRF_GZLL_TIMER_IRQ_HANDLER TIMER0_IRQHandler
- #define NRF_GZLL_PPI_EEP0 (NRF_PPI->CH8_EEP)
- #define NRF_GZLL_PPI_TEP0 (NRF_PPI->CH8_TEP)
- #define NRF_GZLL_PPI_EEP1 (NRF_PPI->CH9_EEP)
- #define NRF_GZLL_PPI_TEP1 (NRF_PPI->CH9_TEP)
- #define NRF_GZLL_PPI_EEP2 (NRF_PPI->CH10_EEP)
- #define NRF_GZLL_PPI_TEP2 (NRF_PPI->CH10_TEP)
- #define NRF_GZLL_PPI_CHEN_MSK_0_AND_1 (0x300)
- #define NRF_GZLL_PPI_CHEN_MSK_2 (0x400)
- #endif
- #define NRF_GZLL_CONST_PIPE_COUNT 8
- #define NRF_GZLL_CONST_FIFO_LENGTH 3
- #define NRF_GZLL_CONST_MAX_TOTAL_PACKETS 6
- #define NRF_GZLL_CONST_MAX_PAYLOAD_LENGTH 32
- #define NRF_GZLL_CONST_CALLBACK_QUEUE_LENGTH 10
- #define NRF_GZLL_DEFAULT_TX_POWER NRF_GZLL_TX_POWER_0_DBM
- #define NRF_GZLL_DEFAULT_DATARATE NRF_GZLL_DATARATE_2MBIT
- #define NRF_GZLL_DEFAULT_CHANNEL_TABLE {4, 25, 42, 63, 77}
- #define NRF_GZLL_DEFAULT_CHANNEL_TABLE_SIZE 5
- #define NRF_GZLL_CONST_MAX_CHANNEL_TABLE_SIZE 16
- #define NRF_GZLL_DEFAULT_FULL_ADDRESS_PIPE0 {0x01, 0x04, 0x07, 0x0A, 0x0D}
- #define NRF_GZLL_DEFAULT_BASE_ADDRESS_0 0x0D0A0704
- #define NRF_GZLL_DEFAULT_BASE_ADDRESS_1 0x0E0B0805
- #define NRF_GZLL_DEFAULT_PREFIX_BYTE_0 1
- #define NRF_GZLL_DEFAULT_PREFIX_BYTE_1 2
- #define NRF_GZLL_DEFAULT_PREFIX_BYTE_2 3
- #define NRF_GZLL_DEFAULT_PREFIX_BYTE_3 4
- #define NRF_GZLL_DEFAULT_PREFIX_BYTE_4 5
- #define NRF_GZLL_DEFAULT_PREFIX_BYTE_5 6
- #define NRF_GZLL_DEFAULT_PREFIX_BYTE_6 7
- #define NRF_GZLL_DEFAULT_PREFIX_BYTE_7 8
- #define NRF_GZLL_DEFAULT_BASE_ADDRESS_LENGTH NRF_GZLL_BASE_ADDRESS_LENGTH_4B
- #define NRF_GZLL_DEFAULT_RX_PIPES_ENABLED 0x000000FF
- #define NRF_GZLL_DEFAULT_TIMESLOT_PERIOD 600
- #define NRF_GZLL_DEFAULT_TIMESLOTS_PER_CHANNEL 2
- #define NRF_GZLL_DEFAULT_DEVICE_CHANNEL_SELECTION_POLICY NRF_GZLL_DEVICE_CHANNEL_SELECTION_POLICY_USE_SUCCESSFUL
- #define NRF_GZLL_DEFAULT_MAX_TX_ATTEMPTS 0
- #define NRF_GZLL_DEFAULT_XOSC_CTL NRF_GZLL_XOSC_CTL_AUTO
- #define NRF_GZLL_DEFAULT_TIMESLOTS_PER_CHANNEL_WHEN_DEVICE_OUT_OF_SYNC 15
- #define NRF_GZLL_DEFAULT_SYNC_LIFETIME (3 * NRF_GZLL_DEFAULT_CHANNEL_TABLE_SIZE * NRF_GZLL_DEFAULT_TIMESLOTS_PER_CHANNEL)
- #define NRF_GZLL_PA_LNA_MAX_RAMP_UP_TIME 129
- #define NRF_GZLL_PA_LNA_PPI_CHANNELS_NUM 4
- #ifdef __cplusplus
- }
- #endif
- #endif
|