Lines Matching refs:index
308 uint8_t index);
318 NRF_STATIC_INLINE uint32_t nrf_uicr_mem_size_get(NRF_UICR_Type const * p_reg, uint8_t index);
331 uint8_t index);
346 uint8_t index);
359 uint8_t index);
372 uint8_t index);
383 uint8_t index);
395 NRF_STATIC_INLINE uint32_t nrf_uicr_mailbox_address_get(NRF_UICR_Type const * p_reg, uint8_t index);
407 uint8_t index);
475 uint8_t index);
493 uint8_t index) in nrf_uicr_mem_config_get() argument
495 NRFX_ASSERT(index < NRF_UICR_MEM_COUNT); in nrf_uicr_mem_config_get()
498 config.permissions = (p_reg->MEM[index].CONFIG & in nrf_uicr_mem_config_get()
503 config.owner = (nrf_owner_t)((p_reg->MEM[index].CONFIG & UICR_MEM_CONFIG_OWNERID_Msk) >> in nrf_uicr_mem_config_get()
507 config.address = (p_reg->MEM[index].CONFIG & UICR_MEM_CONFIG_ADDRESS_Msk); in nrf_uicr_mem_config_get()
512 NRF_STATIC_INLINE uint32_t nrf_uicr_mem_size_get(NRF_UICR_Type const * p_reg, uint8_t index) in nrf_uicr_mem_size_get() argument
514 NRFX_ASSERT(index < NRF_UICR_MEM_COUNT); in nrf_uicr_mem_size_get()
515 return p_reg->MEM[index].SIZE; in nrf_uicr_mem_size_get()
521 uint8_t index) in nrf_uicr_periph_config_get() argument
523 NRFX_ASSERT(index < NRF_UICR_PERIPH_COUNT); in nrf_uicr_periph_config_get()
526 config.secattr = (p_reg->PERIPH[index].CONFIG & UICR_PERIPH_CONFIG_SECURE_Msk) >> in nrf_uicr_periph_config_get()
529 config.dmasec = (p_reg->PERIPH[index].CONFIG & UICR_PERIPH_CONFIG_DMASEC_Msk) >> in nrf_uicr_periph_config_get()
532 …config.processor = (nrf_processor_t)((p_reg->PERIPH[index].CONFIG & UICR_PERIPH_CONFIG_PROCESSOR_M… in nrf_uicr_periph_config_get()
536 config.address = (p_reg->PERIPH[index].CONFIG & UICR_PERIPH_CONFIG_ADDRESS_Msk); in nrf_uicr_periph_config_get()
545 uint8_t index) in nrf_uicr_feature_own_get() argument
551 NRFX_ASSERT(index < NRF_UICR_GPIO_COUNT); in nrf_uicr_feature_own_get()
552 return ((NRF_UICREXTENDED_Type *)nrf_uicr_ptrextuicr_get(p_reg))->GPIO[index].OWN; in nrf_uicr_feature_own_get()
556 NRFX_ASSERT(index < NRF_UICR_GPIOTE_CH_COUNT); in nrf_uicr_feature_own_get()
557 return p_reg->GPIOTE[index].CH.OWN; in nrf_uicr_feature_own_get()
560 NRFX_ASSERT(index < NRF_UICR_IPCT_GLOBAL_COUNT); in nrf_uicr_feature_own_get()
561 return p_reg->IPCT.GLOBAL[index].CH.OWN; in nrf_uicr_feature_own_get()
564 NRFX_ASSERT(index < NRF_UICR_IPCT_GLOBAL_COUNT); in nrf_uicr_feature_own_get()
565 return p_reg->IPCT.GLOBAL[index].INTERRUPT.OWN; in nrf_uicr_feature_own_get()
568 NRFX_ASSERT(index < NRF_UICR_DPPI_GLOBAL_COUNT); in nrf_uicr_feature_own_get()
569 return p_reg->DPPI.GLOBAL[index].CH.OWN; in nrf_uicr_feature_own_get()
572 NRFX_ASSERT(index < NRF_UICR_DPPI_GLOBAL_COUNT); in nrf_uicr_feature_own_get()
573 return p_reg->DPPI.GLOBAL[index].CHG.OWN; in nrf_uicr_feature_own_get()
586 uint8_t index) in nrf_uicr_feature_secure_get() argument
592 NRFX_ASSERT(index < NRF_UICR_GPIO_COUNT); in nrf_uicr_feature_secure_get()
593 return ((NRF_UICREXTENDED_Type *)nrf_uicr_ptrextuicr_get(p_reg))->GPIO[index].SECURE; in nrf_uicr_feature_secure_get()
597 NRFX_ASSERT(index < NRF_UICR_GPIOTE_CH_COUNT); in nrf_uicr_feature_secure_get()
598 return p_reg->GPIOTE[index].CH.SECURE; in nrf_uicr_feature_secure_get()
607 NRFX_ASSERT(index < NRF_UICR_IPCT_GLOBAL_COUNT); in nrf_uicr_feature_secure_get()
608 return p_reg->IPCT.GLOBAL[index].CH.SECURE; in nrf_uicr_feature_secure_get()
611 NRFX_ASSERT(index < NRF_UICR_IPCT_GLOBAL_COUNT); in nrf_uicr_feature_secure_get()
612 return p_reg->IPCT.GLOBAL[index].INTERRUPT.SECURE; in nrf_uicr_feature_secure_get()
615 NRFX_ASSERT(index < NRF_UICR_DPPI_LOCAL_COUNT); in nrf_uicr_feature_secure_get()
616 return p_reg->DPPI.LOCAL[index].CH.SECURE; in nrf_uicr_feature_secure_get()
619 NRFX_ASSERT(index < NRF_UICR_DPPI_LOCAL_COUNT); in nrf_uicr_feature_secure_get()
620 return p_reg->DPPI.LOCAL[index].CHG.SECURE; in nrf_uicr_feature_secure_get()
623 NRFX_ASSERT(index < NRF_UICR_DPPI_GLOBAL_COUNT); in nrf_uicr_feature_secure_get()
624 return p_reg->DPPI.GLOBAL[index].CH.SECURE; in nrf_uicr_feature_secure_get()
627 NRFX_ASSERT(index < NRF_UICR_DPPI_GLOBAL_COUNT); in nrf_uicr_feature_secure_get()
628 return p_reg->DPPI.GLOBAL[index].CHG.SECURE; in nrf_uicr_feature_secure_get()
641 uint8_t index) in nrf_uicr_feature_link_get() argument
648 NRFX_ASSERT(index < NRF_UICR_DPPI_LOCAL_COUNT); in nrf_uicr_feature_link_get()
650 … link.source = p_reg->DPPI.LOCAL[index].CH.LINK.EN | ~p_reg->DPPI.LOCAL[index].CH.LINK.DIR; in nrf_uicr_feature_link_get()
651 link.sink = p_reg->DPPI.LOCAL[index].CH.LINK.EN | p_reg->DPPI.LOCAL[index].CH.LINK.DIR; in nrf_uicr_feature_link_get()
653 link.source = p_reg->DPPI.LOCAL[index].CH.LINK.SOURCE; in nrf_uicr_feature_link_get()
654 link.sink = p_reg->DPPI.LOCAL[index].CH.LINK.SINK; in nrf_uicr_feature_link_get()
659 NRFX_ASSERT(index < NRF_UICR_DPPI_GLOBAL_COUNT); in nrf_uicr_feature_link_get()
661 … link.source = p_reg->DPPI.GLOBAL[index].CH.LINK.EN | ~p_reg->DPPI.GLOBAL[index].CH.LINK.DIR; in nrf_uicr_feature_link_get()
662 … link.sink = p_reg->DPPI.GLOBAL[index].CH.LINK.EN | p_reg->DPPI.GLOBAL[index].CH.LINK.DIR; in nrf_uicr_feature_link_get()
664 link.source = p_reg->DPPI.GLOBAL[index].CH.LINK.SOURCE; in nrf_uicr_feature_link_get()
665 link.sink = p_reg->DPPI.GLOBAL[index].CH.LINK.SINK; in nrf_uicr_feature_link_get()
678 uint8_t index) in nrf_uicr_ipcmap_config_get() argument
680 NRFX_ASSERT(index < NRF_UICR_IPCMAP_COUNT); in nrf_uicr_ipcmap_config_get()
683 map.source.ipct_channel = (p_reg->IPCMAP[index] & UICR_IPCMAP_IPCTCHSOURCE_Msk) in nrf_uicr_ipcmap_config_get()
686 map.source.domain = (nrf_domain_t)((p_reg->IPCMAP[index] & UICR_IPCMAP_DOMAINIDSOURCE_Msk) in nrf_uicr_ipcmap_config_get()
689 map.sink.ipct_channel = (p_reg->IPCMAP[index] & UICR_IPCMAP_IPCTCHSINK_Msk) in nrf_uicr_ipcmap_config_get()
692 map.sink.domain = (nrf_domain_t)((p_reg->IPCMAP[index] & UICR_IPCMAP_DOMAINIDSINK_Msk) in nrf_uicr_ipcmap_config_get()
700 NRF_STATIC_INLINE uint32_t nrf_uicr_mailbox_address_get(NRF_UICR_Type const * p_reg, uint8_t index) in nrf_uicr_mailbox_address_get() argument
702 NRFX_ASSERT(index < NRF_UICR_MAILBOX_COUNT); in nrf_uicr_mailbox_address_get()
704 return p_reg->MAILBOX[index].ADDRESS; in nrf_uicr_mailbox_address_get()
709 uint8_t index) in nrf_uicr_mailbox_config_get() argument
711 NRFX_ASSERT(index < NRF_UICR_MAILBOX_COUNT); in nrf_uicr_mailbox_config_get()
714 config.size = (p_reg->MAILBOX[index].CONFIG & UICR_MAILBOX_CONFIG_SIZE_Msk) in nrf_uicr_mailbox_config_get()
717 config.owner = (nrf_owner_t)((p_reg->MAILBOX[index].CONFIG & UICR_MAILBOX_CONFIG_OWNERID_Msk) in nrf_uicr_mailbox_config_get()
720 config.secure = (p_reg->MAILBOX[index].CONFIG & UICR_MAILBOX_CONFIG_SECURE_Msk) in nrf_uicr_mailbox_config_get()
777 uint8_t index) in nrf_uicr_gpio_instance_get() argument
779 NRFX_ASSERT(index < NRF_UICR_GPIO_COUNT); in nrf_uicr_gpio_instance_get()
780 return p_reg->GPIO[index].INSTANCE; in nrf_uicr_gpio_instance_get()