/nrf_hw_models-latest/src/nrfx/drivers/ |
D | nrfx_common.c | 19 IRQn_Type nrfx_get_irq_number(void const * p_reg){ in nrfx_get_irq_number() argument 27 if (IS_PERIPHERAL_REG(p_reg, POWER,,)) { in nrfx_get_irq_number() 29 } else if (IS_PERIPHERAL_REG(p_reg, CLOCK,,)) { in nrfx_get_irq_number() 31 } else if (IS_PERIPHERAL_REG(p_reg, RADIO,,)) { in nrfx_get_irq_number() 33 } else if (IS_PERIPHERAL_REG(p_reg, UARTE, 0,)) { in nrfx_get_irq_number() 36 } else if (IS_PERIPHERAL_REG(p_reg, GPIOTE,,)) { in nrfx_get_irq_number() 39 } else if (IS_PERIPHERAL_REG(p_reg, TIMER, 0,)) { in nrfx_get_irq_number() 41 } else if (IS_PERIPHERAL_REG(p_reg, TIMER, 1,)) { in nrfx_get_irq_number() 43 } else if (IS_PERIPHERAL_REG(p_reg, TIMER, 2,)) { in nrfx_get_irq_number() 45 } else if (IS_PERIPHERAL_REG(p_reg, RTC, 0,)) { in nrfx_get_irq_number() [all …]
|
/nrf_hw_models-latest/src/nrfx/hal/ |
D | nrf_dppi.c | 15 static int get_dppi_inst_from_ptr(NRF_DPPIC_Type * p_reg) in get_dppi_inst_from_ptr() argument 19 return ((uintptr_t)p_reg - (uintptr_t)NRF_DPPIC_regs) / sizeof(NRF_DPPIC_Type); in get_dppi_inst_from_ptr() 22 void nrf_dppi_task_trigger(NRF_DPPIC_Type * p_reg, nrf_dppi_task_t dppi_task) in nrf_dppi_task_trigger() argument 24 *((volatile uint32_t *) ((uint8_t *) p_reg + (uint32_t) dppi_task)) = 1; in nrf_dppi_task_trigger() 26 uint dppi_inst = get_dppi_inst_from_ptr(p_reg); in nrf_dppi_task_trigger() 37 void nrf_dppi_channels_disable_all(NRF_DPPIC_Type * p_reg) in nrf_dppi_channels_disable_all() argument 39 p_reg->CHENCLR = 0xFFFFFFFFuL; in nrf_dppi_channels_disable_all() 41 uint dppi_inst = get_dppi_inst_from_ptr(p_reg); in nrf_dppi_channels_disable_all() 45 void nrf_dppi_channels_enable(NRF_DPPIC_Type * p_reg, uint32_t mask) in nrf_dppi_channels_enable() argument 47 p_reg->CHENSET = mask; in nrf_dppi_channels_enable() [all …]
|
D | nrf_uart.c | 14 static int uart_number_from_ptr(NRF_UART_Type * p_reg){ in uart_number_from_ptr() argument 15 int i = ( (int)p_reg - (int)NRF_UARTE_regs ) / sizeof(NRF_UARTE_Type); in uart_number_from_ptr() 19 void nrf_uart_task_trigger(NRF_UART_Type * p_reg, nrf_uart_task_t task) in nrf_uart_task_trigger() argument 21 *((volatile uint32_t *)((uint8_t *)p_reg + (uint32_t)task)) = 0x1UL; in nrf_uart_task_trigger() 23 int i = uart_number_from_ptr(p_reg); in nrf_uart_task_trigger() 41 void nrf_uart_int_enable(NRF_UART_Type * p_reg, uint32_t mask) in nrf_uart_int_enable() argument 43 int i = uart_number_from_ptr(p_reg); in nrf_uart_int_enable() 44 p_reg->INTENSET = mask; in nrf_uart_int_enable() 48 void nrf_uart_int_disable(NRF_UART_Type * p_reg, uint32_t mask) in nrf_uart_int_disable() argument 50 int i = uart_number_from_ptr(p_reg); in nrf_uart_int_disable() [all …]
|
D | nrf_gpiote.c | 47 static int gpiote_number_from_ptr(NRF_GPIOTE_Type const * p_reg){ in gpiote_number_from_ptr() argument 48 int i = ( (int)p_reg - (int)&NRF_GPIOTE_regs[0] ) / sizeof(NRF_GPIOTE_Type); in gpiote_number_from_ptr() 52 void nrf_gpiote_task_trigger(NRF_GPIOTE_Type * p_reg, nrf_gpiote_task_t task) in nrf_gpiote_task_trigger() argument 54 uint32_t *reg = (uint32_t *)((uintptr_t)p_reg + task); in nrf_gpiote_task_trigger() 57 uint inst = gpiote_number_from_ptr(p_reg); in nrf_gpiote_task_trigger() 73 void nrf_gpiote_event_clear(NRF_GPIOTE_Type * p_reg, nrf_gpiote_event_t event) in nrf_gpiote_event_clear() argument 75 uint32_t *reg = (uint32_t *)((uintptr_t)p_reg + event); in nrf_gpiote_event_clear() 78 uint inst = gpiote_number_from_ptr(p_reg); in nrf_gpiote_event_clear() 102 void nrf_gpiote_int_enable(NRF_GPIOTE_Type * p_reg, uint32_t mask) in nrf_gpiote_int_enable() argument 104 uint inst = gpiote_number_from_ptr(p_reg); in nrf_gpiote_int_enable() [all …]
|
D | nrf_rtc.c | 13 static int rtc_number_from_ptr(NRF_RTC_Type const * p_reg){ in rtc_number_from_ptr() argument 14 int i = ( (int)p_reg - (int)&NRF_RTC_regs[0] ) / sizeof(NRF_RTC_Type); in rtc_number_from_ptr() 18 void nrf_rtc_cc_set(NRF_RTC_Type * p_reg, uint32_t ch, uint32_t cc_val) in nrf_rtc_cc_set() argument 20 p_reg->CC[ch] = cc_val; in nrf_rtc_cc_set() 21 int i = rtc_number_from_ptr(p_reg); in nrf_rtc_cc_set() 25 void nrf_rtc_int_enable(NRF_RTC_Type * p_reg, uint32_t mask) in nrf_rtc_int_enable() argument 27 int i = rtc_number_from_ptr(p_reg); in nrf_rtc_int_enable() 28 p_reg->INTENSET = mask; in nrf_rtc_int_enable() 32 void nrf_rtc_int_disable(NRF_RTC_Type * p_reg, uint32_t mask) in nrf_rtc_int_disable() argument 34 int i = rtc_number_from_ptr(p_reg); in nrf_rtc_int_disable() [all …]
|
D | nrf_54_aar.c | 13 static int aar_inst_from_ptr(NRF_AAR_Type * p_reg) in aar_inst_from_ptr() argument 15 union NRF_AARCCM_regs *p = (union NRF_AARCCM_regs *)p_reg; in aar_inst_from_ptr() 21 void nrf_aar_int_enable(NRF_AAR_Type * p_reg, uint32_t mask) in nrf_aar_int_enable() argument 23 int inst = aar_inst_from_ptr(p_reg); in nrf_aar_int_enable() 24 p_reg->INTENSET = mask; in nrf_aar_int_enable() 28 void nrf_aar_int_disable(NRF_AAR_Type * p_reg, uint32_t mask) in nrf_aar_int_disable() argument 30 int inst = aar_inst_from_ptr(p_reg); in nrf_aar_int_disable() 31 p_reg->INTENCLR = mask; in nrf_aar_int_disable() 35 void nrf_aar_task_trigger(NRF_AAR_Type * p_reg, nrf_aar_task_t task) in nrf_aar_task_trigger() argument 37 int inst = aar_inst_from_ptr(p_reg); in nrf_aar_task_trigger() [all …]
|
D | nrf_54_ccm.c | 12 static int ccm_inst_from_ptr(NRF_CCM_Type * p_reg) in ccm_inst_from_ptr() argument 14 union NRF_AARCCM_regs *p = (union NRF_AARCCM_regs *)p_reg; in ccm_inst_from_ptr() 20 void nrf_ccm_task_trigger(NRF_CCM_Type * p_reg, nrf_ccm_task_t task) in nrf_ccm_task_trigger() argument 22 int inst = ccm_inst_from_ptr(p_reg); in nrf_ccm_task_trigger() 23 *((volatile uint32_t *)((uint8_t *)p_reg + (uint32_t)task)) = 0x1UL; in nrf_ccm_task_trigger() 36 void nrf_ccm_int_enable(NRF_CCM_Type * p_reg, uint32_t mask) in nrf_ccm_int_enable() argument 38 int inst = ccm_inst_from_ptr(p_reg); in nrf_ccm_int_enable() 39 p_reg->INTENSET = mask; in nrf_ccm_int_enable() 43 void nrf_ccm_int_disable(NRF_CCM_Type * p_reg, uint32_t mask) in nrf_ccm_int_disable() argument 45 int inst = ccm_inst_from_ptr(p_reg); in nrf_ccm_int_disable() [all …]
|
D | nrf_ipc.c | 12 static int ipc_number_from_ptr(NRF_IPC_Type const * p_reg){ in ipc_number_from_ptr() argument 13 int i = ( (int)p_reg - (int)&NRF_IPC_regs[0] ) / sizeof(NRF_IPC_Type); in ipc_number_from_ptr() 17 void nrf_ipc_task_trigger(NRF_IPC_Type * p_reg, nrf_ipc_task_t ipc_task) in nrf_ipc_task_trigger() argument 19 *((volatile uint32_t *)((uint8_t *)p_reg + (uint32_t)ipc_task)) = 0x1UL; in nrf_ipc_task_trigger() 21 int i = ipc_number_from_ptr(p_reg); in nrf_ipc_task_trigger() 26 void nrf_ipc_event_clear(NRF_IPC_Type * p_reg, nrf_ipc_event_t ipc_event) in nrf_ipc_event_clear() argument 28 *((volatile uint32_t *)((uint8_t *)p_reg + (uint32_t)ipc_event)) = 0x0UL; in nrf_ipc_event_clear() 30 int i = ipc_number_from_ptr(p_reg); in nrf_ipc_event_clear() 34 void nrf_ipc_int_enable(NRF_IPC_Type * p_reg, uint32_t mask) in nrf_ipc_int_enable() argument 36 p_reg->INTENSET = mask; in nrf_ipc_int_enable() [all …]
|
D | nrf_egu.c | 12 static int egu_number_from_ptr(NRF_EGU_Type const * p_reg){ in egu_number_from_ptr() argument 13 int i = ( (int)p_reg - (int)&NRF_EGU_regs[0] ) / sizeof(NRF_EGU_Type); in egu_number_from_ptr() 17 void nrf_egu_task_trigger(NRF_EGU_Type * p_reg, nrf_egu_task_t egu_task) in nrf_egu_task_trigger() argument 19 *((volatile uint32_t *)((uint8_t *)p_reg + (uint32_t)egu_task)) = 0x1UL; in nrf_egu_task_trigger() 21 int i = egu_number_from_ptr(p_reg); in nrf_egu_task_trigger() 27 void nrf_egu_event_clear(NRF_EGU_Type * p_reg, nrf_egu_event_t egu_event) in nrf_egu_event_clear() argument 29 *((volatile uint32_t *)((uint8_t *)p_reg + (uint32_t)egu_event)) = 0x0UL; in nrf_egu_event_clear() 31 int i = egu_number_from_ptr(p_reg); in nrf_egu_event_clear() 37 void nrf_egu_int_enable(NRF_EGU_Type * p_reg, uint32_t mask) in nrf_egu_int_enable() argument 39 p_reg->INTENSET = mask; in nrf_egu_int_enable() [all …]
|
D | nrf_54_ecb.c | 12 static int ecb_inst_from_ptr(NRF_ECB_Type * p_reg) in ecb_inst_from_ptr() argument 14 int i = ( (int)p_reg - (int)NRF_ECB_regs ) / sizeof(NRF_ECB_Type); in ecb_inst_from_ptr() 18 void nrf_ecb_task_trigger(NRF_ECB_Type * p_reg, nrf_ecb_task_t task) in nrf_ecb_task_trigger() argument 20 int inst = ecb_inst_from_ptr(p_reg); in nrf_ecb_task_trigger() 22 *((volatile uint32_t *)((uint8_t *)p_reg + (uint32_t)task)) = 0x1UL; in nrf_ecb_task_trigger() 33 void nrf_ecb_int_enable(NRF_ECB_Type * p_reg, uint32_t mask) in nrf_ecb_int_enable() argument 35 int inst = ecb_inst_from_ptr(p_reg); in nrf_ecb_int_enable() 36 p_reg->INTENSET = mask; in nrf_ecb_int_enable() 40 void nrf_ecb_int_disable(NRF_ECB_Type * p_reg, uint32_t mask) in nrf_ecb_int_disable() argument 42 int inst = ecb_inst_from_ptr(p_reg); in nrf_ecb_int_disable() [all …]
|
D | nrf_uarte.c | 14 static int uarte_number_from_ptr(NRF_UARTE_Type * p_reg){ in uarte_number_from_ptr() argument 15 int i = ( (int)p_reg - (int)NRF_UARTE_regs ) / sizeof(NRF_UARTE_Type); in uarte_number_from_ptr() 19 void nrf_uarte_task_trigger(NRF_UARTE_Type * p_reg, nrf_uarte_task_t task) in nrf_uarte_task_trigger() argument 21 *((volatile uint32_t *)((uint8_t *)p_reg + (uint32_t)task)) = 0x1UL; in nrf_uarte_task_trigger() 23 int i = uarte_number_from_ptr(p_reg); in nrf_uarte_task_trigger() 51 void nrf_uarte_int_enable(NRF_UARTE_Type * p_reg, uint32_t mask) in nrf_uarte_int_enable() argument 53 int i = uarte_number_from_ptr(p_reg); in nrf_uarte_int_enable() 54 p_reg->INTENSET = mask; in nrf_uarte_int_enable() 58 void nrf_uarte_int_disable(NRF_UARTE_Type * p_reg, uint32_t mask) in nrf_uarte_int_disable() argument 60 int i = uarte_number_from_ptr(p_reg); in nrf_uarte_int_disable() [all …]
|
D | nrf_timer.c | 15 static int timer_number_from_ptr(NRF_TIMER_Type * p_reg){ in timer_number_from_ptr() argument 16 int i = ( (int)p_reg - (int)&NRF_TIMER_regs[0] ) / sizeof(NRF_TIMER_Type); in timer_number_from_ptr() 20 void nrf_timer_cc_set(NRF_TIMER_Type * p_reg, in nrf_timer_cc_set() argument 24 int i = timer_number_from_ptr(p_reg); in nrf_timer_cc_set() 25 p_reg->CC[cc_channel] = cc_value; in nrf_timer_cc_set() 29 void nrf_timer_task_trigger(NRF_TIMER_Type * p_reg, in nrf_timer_task_trigger() argument 32 int i = timer_number_from_ptr(p_reg); in nrf_timer_task_trigger() 34 *((volatile uint32_t *)((uint8_t *)p_reg + (uint32_t)task)) = 0x1UL; in nrf_timer_task_trigger() 57 void nrf_timer_event_clear(NRF_TIMER_Type * p_reg, in nrf_timer_event_clear() argument 60 *((volatile uint32_t *)((uint8_t *)p_reg + (uint32_t)event)) = 0x0UL; in nrf_timer_event_clear() [all …]
|
D | nrf_ppi.c | 12 void nrf_ppi_channel_enable(NRF_PPI_Type * p_reg, nrf_ppi_channel_t channel) in nrf_ppi_channel_enable() argument 14 p_reg->CHENSET = (1 << channel); in nrf_ppi_channel_enable() 18 void nrf_ppi_channel_disable(NRF_PPI_Type * p_reg, nrf_ppi_channel_t channel) in nrf_ppi_channel_disable() argument 20 p_reg->CHENCLR = (1 << channel); in nrf_ppi_channel_disable() 24 void nrf_ppi_channels_enable(NRF_PPI_Type * p_reg, uint32_t mask) in nrf_ppi_channels_enable() argument 26 p_reg->CHENSET = mask; in nrf_ppi_channels_enable() 30 void nrf_ppi_channels_disable(NRF_PPI_Type * p_reg, uint32_t mask) in nrf_ppi_channels_disable() argument 32 p_reg->CHENCLR = mask; in nrf_ppi_channels_disable() 36 void nrf_ppi_channel_endpoint_setup(NRF_PPI_Type * p_reg, in nrf_ppi_channel_endpoint_setup() argument 41 p_reg->CH[(uint32_t) channel].EEP = eep; in nrf_ppi_channel_endpoint_setup() [all …]
|
D | nrf_temp.c | 12 void nrf_temp_task_trigger(NRF_TEMP_Type * p_reg, nrf_temp_task_t temp_task) in nrf_temp_task_trigger() argument 14 *((volatile uint32_t *)((uint8_t *)p_reg + (uint32_t)temp_task)) = 0x1UL; in nrf_temp_task_trigger() 25 void nrf_temp_int_enable(NRF_TEMP_Type * p_reg, uint32_t mask) in nrf_temp_int_enable() argument 27 (void) p_reg; in nrf_temp_int_enable() 32 void nrf_temp_int_disable(NRF_TEMP_Type * p_reg, uint32_t mask) in nrf_temp_int_disable() argument 34 (void) p_reg; in nrf_temp_int_disable() 39 void nrf_temp_event_clear(NRF_TEMP_Type * p_reg, nrf_temp_event_t event) in nrf_temp_event_clear() argument 41 *((volatile uint32_t *)((uint8_t *)p_reg + (uint32_t)event)) = 0x0UL; in nrf_temp_event_clear() 47 static void nrf_temp_subscribe_common(NRF_TEMP_Type * p_reg, in nrf_temp_subscribe_common() argument 50 (void) p_reg; in nrf_temp_subscribe_common() [all …]
|
D | nrf_ecb.c | 12 void nrf_ecb_task_trigger(NRF_ECB_Type * p_reg, nrf_ecb_task_t task) in nrf_ecb_task_trigger() argument 14 *((volatile uint32_t *)((uint8_t *)p_reg + (uint32_t)task)) = 0x1UL; in nrf_ecb_task_trigger() 25 void nrf_ecb_int_enable(NRF_ECB_Type * p_reg, uint32_t mask) in nrf_ecb_int_enable() argument 27 p_reg->INTENSET = mask; in nrf_ecb_int_enable() 31 void nrf_ecb_int_disable(NRF_ECB_Type * p_reg, uint32_t mask) in nrf_ecb_int_disable() argument 33 p_reg->INTENCLR = mask; in nrf_ecb_int_disable() 37 void nrf_ecb_event_clear(NRF_ECB_Type * p_reg, nrf_ecb_event_t event) in nrf_ecb_event_clear() argument 39 *((volatile uint32_t *)((uint8_t *)p_reg + (uint32_t)event)) = 0x0UL; in nrf_ecb_event_clear() 45 static void nrf_ecb_subscribe_common(NRF_ECB_Type * p_reg, in nrf_ecb_subscribe_common() argument 48 (void) p_reg; in nrf_ecb_subscribe_common() [all …]
|
D | nrf_aar.c | 13 void nrf_aar_int_enable(NRF_AAR_Type * p_reg, uint32_t mask) in nrf_aar_int_enable() argument 15 p_reg->INTENSET = mask; in nrf_aar_int_enable() 19 void nrf_aar_int_disable(NRF_AAR_Type * p_reg, uint32_t mask) in nrf_aar_int_disable() argument 21 p_reg->INTENCLR = mask; in nrf_aar_int_disable() 25 void nrf_aar_task_trigger(NRF_AAR_Type * p_reg, nrf_aar_task_t task) in nrf_aar_task_trigger() argument 27 *(volatile uint32_t *)((uint8_t *)p_reg + (uint32_t)task) = 1; in nrf_aar_task_trigger() 37 void nrf_aar_event_clear(NRF_AAR_Type * p_reg, nrf_aar_event_t event) in nrf_aar_event_clear() argument 39 *((volatile uint32_t *)((uint8_t *)p_reg + (uint32_t)event)) = 0x0UL; in nrf_aar_event_clear() 45 static void nrf_aar_subscribe_common(NRF_AAR_Type * p_reg, in nrf_aar_subscribe_common() argument 48 (void) p_reg; in nrf_aar_subscribe_common() [all …]
|
D | nrf_grtc.c | 12 void nrf_grtc_sys_counter_cc_set(NRF_GRTC_Type * p_reg, in nrf_grtc_sys_counter_cc_set() argument 25 p_reg->CC[cc_channel].CCL = (uint32_t)cc_value; in nrf_grtc_sys_counter_cc_set() 27 p_reg->CC[cc_channel].CCH = cc_h & NRF_GRTC_SYSCOUNTER_CCH_MASK; in nrf_grtc_sys_counter_cc_set() 31 void nrf_grtc_sys_counter_cc_add_set(NRF_GRTC_Type * p_reg, in nrf_grtc_sys_counter_cc_add_set() argument 44 p_reg->CC[cc_channel].CCADD = ((uint32_t)reference << GRTC_CC_CCADD_REFERENCE_Pos) | in nrf_grtc_sys_counter_cc_add_set() 49 void nrf_grtc_int_enable(NRF_GRTC_Type * p_reg, uint32_t mask) in nrf_grtc_int_enable() argument 51 p_reg->GRTC_INTENSET = mask; in nrf_grtc_int_enable() 55 void nrf_grtc_int_disable(NRF_GRTC_Type * p_reg, uint32_t mask) in nrf_grtc_int_disable() argument 57 p_reg->GRTC_INTENCLR = mask; in nrf_grtc_int_disable() 63 void nrf_grtc_int_group_enable(NRF_GRTC_Type * p_reg, in nrf_grtc_int_group_enable() argument [all …]
|
D | nrf_rng.c | 14 void nrf_rng_task_trigger(NRF_RNG_Type * p_reg, nrf_rng_task_t rng_task) in nrf_rng_task_trigger() argument 16 *((volatile uint32_t *)((uint8_t *)p_reg + (uint32_t)rng_task)) = 0x1UL; in nrf_rng_task_trigger() 27 void nrf_rng_int_enable(NRF_RNG_Type * p_reg, uint32_t mask) in nrf_rng_int_enable() argument 29 (void) p_reg; in nrf_rng_int_enable() 34 void nrf_rng_int_disable(NRF_RNG_Type * p_reg, uint32_t mask) in nrf_rng_int_disable() argument 36 (void) p_reg; in nrf_rng_int_disable() 41 void nrf_rng_event_clear(NRF_RNG_Type * p_reg, nrf_rng_event_t rng_event) in nrf_rng_event_clear() argument 43 *((volatile uint32_t *)((uint8_t *)p_reg + (uint32_t)rng_event)) = 0x0UL; in nrf_rng_event_clear() 49 static void nrf_rng_subscribe_common(NRF_RNG_Type * p_reg, in nrf_rng_subscribe_common() argument 52 (void) p_reg; in nrf_rng_subscribe_common() [all …]
|
D | nrf_nvmc.c | 15 static int nvmc_number_from_ptr(NRF_NVMC_Type * p_reg) in nvmc_number_from_ptr() argument 17 int i = ((intptr_t)p_reg - (intptr_t)NRF_NVMC_regs_p[0]) / sizeof(NRF_NVMC_Type); in nvmc_number_from_ptr() 21 void nrf_nvmc_page_erase_start(NRF_NVMC_Type * p_reg, uint32_t page_addr) in nrf_nvmc_page_erase_start() argument 23 int i = nvmc_number_from_ptr(p_reg); in nrf_nvmc_page_erase_start() 26 p_reg->ERASEPAGE = page_addr; in nrf_nvmc_page_erase_start() 34 void nrf_nvmc_uicr_erase_start(NRF_NVMC_Type * p_reg) in nrf_nvmc_uicr_erase_start() argument 36 int i = nvmc_number_from_ptr(p_reg); in nrf_nvmc_uicr_erase_start() 38 p_reg->ERASEUICR = 1; in nrf_nvmc_uicr_erase_start() 43 void nrf_nvmc_erase_all_start(NRF_NVMC_Type * p_reg) in nrf_nvmc_erase_all_start() argument 45 int i = nvmc_number_from_ptr(p_reg); in nrf_nvmc_erase_all_start() [all …]
|
D | nrf_cracen_cm.c | 16 void nrf_cracen_cm_config_indirect_set(NRF_CRACENCORE_Type * p_reg, in nrf_cracen_cm_config_indirect_set() argument 19 p_reg->CRYPTMSTRDMA.CONFIG = (uint32_t)mask; in nrf_cracen_cm_config_indirect_set() 23 void nrf_cracen_cm_softreset(NRF_CRACENCORE_Type * p_reg) in nrf_cracen_cm_softreset() argument 25 p_reg->CRYPTMSTRDMA.CONFIG = CRACENCORE_CRYPTMSTRDMA_CONFIG_SOFTRST_Msk; in nrf_cracen_cm_softreset() 27 p_reg->CRYPTMSTRDMA.CONFIG = 0; in nrf_cracen_cm_softreset() 31 void nrf_cracen_cm_start(NRF_CRACENCORE_Type * p_reg) in nrf_cracen_cm_start() argument 33 p_reg->CRYPTMSTRDMA.START = CRACENCORE_CRYPTMSTRDMA_START_STARTFETCH_Msk in nrf_cracen_cm_start() 38 void nrf_cracen_cm_int_enable(NRF_CRACENCORE_Type * p_reg, uint32_t mask) in nrf_cracen_cm_int_enable() argument 40 p_reg->CRYPTMSTRDMA.INTENSET = mask; in nrf_cracen_cm_int_enable() 44 void nrf_cracen_cm_int_disable(NRF_CRACENCORE_Type * p_reg, uint32_t mask) in nrf_cracen_cm_int_disable() argument [all …]
|
D | nrf_ccm.c | 13 void nrf_ccm_task_trigger(NRF_CCM_Type * p_reg, nrf_ccm_task_t task) in nrf_ccm_task_trigger() argument 15 *((volatile uint32_t *)((uint8_t *)p_reg + (uint32_t)task)) = 0x1UL; in nrf_ccm_task_trigger() 28 void nrf_ccm_int_enable(NRF_CCM_Type * p_reg, uint32_t mask) in nrf_ccm_int_enable() argument 30 p_reg->INTENSET = mask; in nrf_ccm_int_enable() 34 void nrf_ccm_int_disable(NRF_CCM_Type * p_reg, uint32_t mask) in nrf_ccm_int_disable() argument 36 p_reg->INTENCLR = mask; in nrf_ccm_int_disable() 40 void nrf_ccm_event_clear(NRF_CCM_Type * p_reg, nrf_ccm_event_t event) in nrf_ccm_event_clear() argument 42 *((volatile uint32_t *)((uint8_t *)p_reg + (uint32_t)event)) = 0x0UL; in nrf_ccm_event_clear() 48 static void nrf_ccm_subscribe_common(NRF_CCM_Type * p_reg, in nrf_ccm_subscribe_common() argument 51 (void) p_reg; in nrf_ccm_subscribe_common() [all …]
|
D | nrf_radio.c | 13 void nrf_radio_task_trigger(NRF_RADIO_Type * p_reg, nrf_radio_task_t task) in nrf_radio_task_trigger() argument 15 *((volatile uint32_t *)((uint8_t *)p_reg + (uint32_t)task)) = 0x1UL; in nrf_radio_task_trigger() 49 void nrf_radio_int_enable(NRF_RADIO_Type * p_reg, uint32_t mask) in nrf_radio_int_enable() argument 52 p_reg->INTENSET = mask; in nrf_radio_int_enable() 54 p_reg->INTENSET00 = mask; in nrf_radio_int_enable() 59 void nrf_radio_int_disable(NRF_RADIO_Type * p_reg, uint32_t mask) in nrf_radio_int_disable() argument 62 p_reg->INTENCLR = mask; in nrf_radio_int_disable() 64 p_reg->INTENCLR00 = mask; in nrf_radio_int_disable() 69 void nrf_radio_bcc_set(NRF_RADIO_Type * p_reg, uint32_t radio_bcc) in nrf_radio_bcc_set() argument 71 p_reg->BCC = radio_bcc; in nrf_radio_bcc_set() [all …]
|
D | nrf_clock.c | 17 static int clock_number_from_ptr(NRF_CLOCK_Type * p_reg) in clock_number_from_ptr() argument 19 union NRF_CLKPWR_Type *p = (union NRF_CLKPWR_Type *)p_reg; in clock_number_from_ptr() 25 void nrf_clock_int_enable(NRF_CLOCK_Type * p_reg, uint32_t mask) in nrf_clock_int_enable() argument 27 p_reg->INTENSET = mask; in nrf_clock_int_enable() 29 int i = clock_number_from_ptr(p_reg); in nrf_clock_int_enable() 33 void nrf_clock_int_disable(NRF_CLOCK_Type * p_reg, uint32_t mask) in nrf_clock_int_disable() argument 35 p_reg->INTENCLR = mask; in nrf_clock_int_disable() 37 int i = clock_number_from_ptr(p_reg); in nrf_clock_int_disable() 41 void nrf_clock_task_trigger(NRF_CLOCK_Type * p_reg, nrf_clock_task_t task) in nrf_clock_task_trigger() argument 43 *((volatile uint32_t *)((uint8_t *)p_reg + (uint32_t)task)) = 0x1UL; in nrf_clock_task_trigger() [all …]
|
D | nrf_ppib.c | 12 static int ppib_number_from_ptr(NRF_PPIB_Type const * p_reg){ in ppib_number_from_ptr() argument 13 int i = ( (int)p_reg - (int)&NRF_PPIB_regs[0] ) / sizeof(NRF_PPIB_Type); in ppib_number_from_ptr() 20 void nrf_ppib_subscribe_set(NRF_PPIB_Type * p_reg, in nrf_ppib_subscribe_set() argument 24 NRFX_ASSERT(p_reg); in nrf_ppib_subscribe_set() 25 *((volatile uint32_t *) ((uint8_t *) p_reg + (uint32_t) task + 0x80uL)) = in nrf_ppib_subscribe_set() 28 int i = ppib_number_from_ptr(p_reg); in nrf_ppib_subscribe_set() 34 void nrf_ppib_subscribe_clear(NRF_PPIB_Type * p_reg, in nrf_ppib_subscribe_clear() argument 37 NRFX_ASSERT(p_reg); in nrf_ppib_subscribe_clear() 38 *((volatile uint32_t *) ((uint8_t *) p_reg + (uint32_t) task + 0x80uL)) = 0; in nrf_ppib_subscribe_clear() 40 int i = ppib_number_from_ptr(p_reg); in nrf_ppib_subscribe_clear()
|
D | nrf_gpio.c | 56 static int gpio_number_from_ptr(NRF_GPIO_Type const * p_reg){ in gpio_number_from_ptr() argument 57 int i = ( (int)p_reg - (int)&NRF_GPIO_regs[0] ) / sizeof(NRF_GPIO_Type); in gpio_number_from_ptr() 139 void nrf_gpio_port_pin_output_set(NRF_GPIO_Type * p_reg, uint32_t pin_number) in nrf_gpio_port_pin_output_set() argument 150 p_reg->PIN_CNF[pin_number] = cnf; in nrf_gpio_port_pin_output_set() 151 nrf_gpio_regw_sideeffects_PIN_CNF(gpio_number_from_ptr(p_reg), pin_number); in nrf_gpio_port_pin_output_set() 154 void nrf_gpio_port_pin_input_set(NRF_GPIO_Type * p_reg, in nrf_gpio_port_pin_input_set() argument 167 p_reg->PIN_CNF[pin_number] = cnf; in nrf_gpio_port_pin_input_set() 168 nrf_gpio_regw_sideeffects_PIN_CNF(gpio_number_from_ptr(p_reg), pin_number); in nrf_gpio_port_pin_input_set() 206 void nrf_gpio_port_dir_output_set(NRF_GPIO_Type * p_reg, uint32_t out_mask) in nrf_gpio_port_dir_output_set() argument 208 p_reg->DIRSET = out_mask; in nrf_gpio_port_dir_output_set() [all …]
|