Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Device match

uint8_t base_addr_0[4] = {0xE7, 0xE7, 0xE7, 0xE7};
uint8_t base_addr_1[4] = {0xC2, 0xC2, 0xC2, 0xC2};
uint8_t addr_prefix[8] = {0xE7, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, 0xC8 };

i want to triger a interrupt via PPI when received package from pipe 2 ( 0xC3 0xC2, 0xC2, 0xC2, 0xC2). so how can I config DAB , DAP and DACNF registers ?

my PPI init like below, if it is correct ?

nrf_drv_gpiote_init();

nrf_drv_gpiote_out_config_t config = GPIOTE_CONFIG_OUT_TASK_TOGGLE(false);
nrf_drv_gpiote_out_init(LED_4, &config);
uint32_t gpiote_task_addr = nrf_drv_gpiote_out_task_addr_get(LED_4);


NRF_RADIO->DAB[?] = ?
NRF_RADIO->DAP[?] = ?
NRF_RADIO->DACNF |= ?


NRF_PPI->CH[NRF_ESB_PPI_POS_SYNC].EEP = (uint32_t)&NRF_RADIO->EVENTS_DEVMATCH;
NRF_PPI->CH[NRF_ESB_PPI_POS_SYNC].TEP = (uint32_t)gpiote_task_addr;
NRF_PPI->CHENSET = (1 << NRF_ESB_PPI_POS_SYNC) ;

nrf_drv_gpiote_out_task_enable(LED_4);

Parents Reply Children
Related