Home
last modified time | relevance | path

Searched refs:i (Results 1 – 25 of 64) sorted by relevance

123

/hal_nordic-3.6.0/drivers/nrf_802154/driver/src/
Dnrf_802154_core_hooks.c217 for (uint32_t i = 0; i < sizeof(m_abort_hooks) / sizeof(m_abort_hooks[0]); i++) in nrf_802154_core_hooks_terminate() local
219 if (m_abort_hooks[i] == NULL) in nrf_802154_core_hooks_terminate()
224 result = m_abort_hooks[i](term_lvl, req_orig); in nrf_802154_core_hooks_terminate()
242 for (uint32_t i = 0; i < sizeof(m_pre_transmission_hooks) / sizeof(m_pre_transmission_hooks[0]); in nrf_802154_core_hooks_pre_transmission() local
243 i++) in nrf_802154_core_hooks_pre_transmission()
245 if (m_pre_transmission_hooks[i] == NULL) in nrf_802154_core_hooks_pre_transmission()
250 result = m_pre_transmission_hooks[i](p_frame, p_params, notify_function); in nrf_802154_core_hooks_pre_transmission()
268 for (uint32_t i = 0; i < sizeof(m_tx_setup_hooks) / sizeof(m_tx_setup_hooks[0]); in nrf_802154_core_hooks_tx_setup() local
269 i++) in nrf_802154_core_hooks_tx_setup()
271 if (m_tx_setup_hooks[i] == NULL) in nrf_802154_core_hooks_tx_setup()
[all …]
Dnrf_802154_utils_byteorder.h179 for (uint8_t i = 0; i < sizeof(uint64_t); i++, shift -= 8) in host_64_to_big() local
181 p_buffer[i] = (value >> shift) & 0xff; in host_64_to_big()
196 for (uint8_t i = 0; i < sizeof(uint32_t); i++, shift -= 8) in host_32_to_big() local
198 p_buffer[i] = (value >> shift) & 0xff; in host_32_to_big()
213 for (uint8_t i = 0; i < sizeof(uint32_t) - 1; i++, shift -= 8) in host_24_to_big() local
215 p_buffer[i] = (value >> shift) & 0xff; in host_24_to_big()
230 for (uint8_t i = 0; i < sizeof(uint16_t); i++, shift -= 8) in host_16_to_big() local
232 p_buffer[i] = (value >> shift) & 0xff; in host_16_to_big()
248 for (uint8_t i = 0; i < sizeof(uint64_t); i++) in big_64_to_host() local
250 value = (value << 8) | p_buffer[i]; in big_64_to_host()
[all …]
Dnrf_802154_rx_buffer.c55 for (uint32_t i = 0; i < NRF_802154_RX_BUFFERS; i++) in nrf_802154_rx_buffer_init() local
57 nrf_802154_rx_buffers[i].free = true; in nrf_802154_rx_buffer_init()
63 for (uint32_t i = 0; i < NRF_802154_RX_BUFFERS; i++) in nrf_802154_rx_buffer_free_find() local
65 if (nrf_802154_rx_buffers[i].free) in nrf_802154_rx_buffer_free_find()
67 return &nrf_802154_rx_buffers[i]; in nrf_802154_rx_buffer_free_find()
Dnrf_802154_stats.c60 for (size_t i = 0; i < NUMBER_OF_STAT_COUNTERS; ++i) in nrf_802154_stat_counters_subtract() local
82 for (size_t i = 0; i < NUMBER_OF_STAT_COUNTERS; ++i) in nrf_802154_stat_counters_reset() local
/hal_nordic-3.6.0/drivers/nrf_802154/driver/src/mac_features/
Dnrf_802154_security_pib_ram.c120 for (uint32_t i = 0; i < NRF_802154_SECURITY_KEY_STORAGE_SIZE; i++) in key_is_present() local
122 if (key_matches(&m_key_storage[i], p_id)) in key_is_present()
133 for (uint32_t i = 0; i < NRF_802154_SECURITY_KEY_STORAGE_SIZE; i++) in nrf_802154_security_pib_init() local
135 m_key_storage[i].taken = false; in nrf_802154_security_pib_init()
165 for (uint32_t i = 0; i < NRF_802154_SECURITY_KEY_STORAGE_SIZE; i++) in nrf_802154_security_pib_key_store() local
167 if (m_key_storage[i].taken == false) in nrf_802154_security_pib_key_store()
169 memcpy(m_key_storage[i].key, in nrf_802154_security_pib_key_store()
171 sizeof(m_key_storage[i].key)); in nrf_802154_security_pib_key_store()
172 m_key_storage[i].mode = p_key->id.mode; in nrf_802154_security_pib_key_store()
173 memcpy(m_key_storage[i].id, p_key->id.p_key_id, id_length_get(p_key->id.mode)); in nrf_802154_security_pib_key_store()
[all …]
Dnrf_802154_delayed_trx.c172 for (uint32_t i = 0; i < sizeof(m_dly_rx_data) / sizeof(m_dly_rx_data[0]); i++) in dly_rx_data_by_id_search() local
174 if (m_dly_rx_data[i].id == id) in dly_rx_data_by_id_search()
180 p_dly_op_data = &m_dly_rx_data[i]; in dly_rx_data_by_id_search()
273 for (uint32_t i = 0; i < pool_len; i++) in available_dly_ts_slot_from_pool_get() local
275 if (dly_op_state_set(&p_dly_op_data_pool[i], in available_dly_ts_slot_from_pool_get()
279 return &p_dly_op_data_pool[i]; in available_dly_ts_slot_from_pool_get()
319 for (uint32_t i = 0; i < sizeof(m_dly_rx_data) / sizeof(m_dly_rx_data[0]); i++) in ongoing_dly_rx_slot_get() local
321 if (m_dly_rx_data[i].state == DELAYED_TRX_OP_STATE_ONGOING) in ongoing_dly_rx_slot_get()
323 p_dly_op_data = &m_dly_rx_data[i]; in ongoing_dly_rx_slot_get()
512 for (int i = 0; i < sizeof(m_dly_rx_data) / sizeof(m_dly_rx_data[0]); i++) in dly_rx_all_ongoing_abort() local
[all …]
/hal_nordic-3.6.0/nrfx/drivers/src/
Dnrfx_ipc.c77 uint8_t i; in nrfx_ipc_config_load() local
78 for (i = 0; i < IPC_CONF_NUM; ++i) in nrfx_ipc_config_load()
80 nrf_ipc_send_config_set(NRF_IPC, i, p_config->send_task_config[i]); in nrfx_ipc_config_load()
83 for (i = 0; i < IPC_CONF_NUM; ++i) in nrfx_ipc_config_load()
85 nrf_ipc_receive_config_set(NRF_IPC, i, p_config->receive_event_config[i]); in nrfx_ipc_config_load()
97 uint8_t i; in nrfx_ipc_uninit() local
98 for (i = 0; i < IPC_CONF_NUM; ++i) in nrfx_ipc_uninit()
100 nrf_ipc_send_config_set(NRF_IPC, i, 0); in nrfx_ipc_uninit()
103 for (i = 0; i < IPC_CONF_NUM; ++i) in nrfx_ipc_uninit()
105 nrf_ipc_receive_config_set(NRF_IPC, i, 0); in nrfx_ipc_uninit()
Dnrfx_vevif.c91 for (uint8_t i = 0; i < NRF_VPR_CSR_VEVIF_EVENT_TASK_COUNT; i++) in nrfx_vevif_init() local
93 NRFY_IRQ_PRIORITY_SET((VPRCLIC_0_IRQn + i), interrupt_priority); in nrfx_vevif_init()
104 for (uint8_t i = 0; i < NRF_VPR_CSR_VEVIF_EVENT_TASK_COUNT; i++) in nrfx_vevif_uninit() local
106 NRFY_IRQ_DISABLE(VPRCLIC_0_IRQn + i); in nrfx_vevif_uninit()
Dnrfx_pwm.c59 #define EGU_IRQn(i) EGU_IRQn_(i) argument
60 #define EGU_IRQn_(i) SWI##i##_EGU##i##_IRQn argument
61 #define EGU_IRQHandler(i) EGU_IRQHandler_(i) argument
62 #define EGU_IRQHandler_(i) nrfx_egu_##i##_irq_handler argument
92 for (uint8_t i = 0; i < NRF_PWM_CHANNEL_COUNT; ++i) in pins_configure() local
94 uint32_t output_pin = p_config->output_pins[i]; in pins_configure()
97 if (p_config->pin_inverted[i]) in pins_configure()
137 #define PWM_PIN_INIT(i, field) field[i] argument
528 for (uint8_t i = 0; i < NRFX_PWM_ENABLED_COUNT; i++) in DMA_ISSUE_EGU_IRQHandler() local
530 nrf_egu_event_t event = nrf_egu_triggered_event_get(i); in DMA_ISSUE_EGU_IRQHandler()
[all …]
Dnrfx_gpiote.c50 #define GPIO_PIN_NUM(periph, prefix, i, _) NRFX_CONCAT(periph, prefix, i, _PIN_NUM) argument
53 #define GPIO_PIN_MASK(periph, prefix, i, _) NRFX_CONCAT(periph, prefix, i, _FEATURE_PINS_PRESENT) argument
62 #define GPIO_WITH_GAP(periph, prefix, i, _) \ argument
63 (((1 << GPIO_PIN_NUM(periph, prefix, i, _)) - 1) != GPIO_PIN_MASK(periph, prefix, i, _))
71 #define GPIO_IS_FULL_PORT(periph, prefix, i, _) \ argument
72 (NRFX_CONCAT(periph, prefix, i, _PIN_NUM) == 32)
168 #define GPIOTE_PORT_INDEX(periph_name, prefix, i, _) i, argument
251 #define GPIO_PORT_OFFSET(i, _) \ argument
252 NRFX_COND_CODE_1(NRFX_INSTANCE_PRESENT(NRFX_CONCAT(P, i)),(NRFX_CONCAT(P, i, _PIN_NUM)), (0))
407 for (uint32_t i = 0; i < MAX_PIN_NUMBER; i++) in handler_in_use() local
[all …]
Dnrfx_nvmc.c188 for (uint32_t i = 0; i < bytes_count; i++) in partial_word_create() local
190 ((uint8_t *)&value32)[byte_shift] = bytes[i]; in partial_word_create()
255 for (uint32_t i = 0; i < num_words; i++) in nvmc_words_write() local
257 nvmc_word_write(addr + (NVMC_BYTES_IN_WORD * i), ((uint32_t const *)src)[i]); in nvmc_words_write()
445 for (uint32_t i = 0; i < num_bytes / NVMC_BYTES_IN_WORD; i++) in nrfx_nvmc_bytes_write() local
Dnrfx_bellboard.c132 for (uint8_t i = 0; i < NRFX_BELLBOARD_ENABLED_COUNT; i++) in irq_handler() local
134 if (m_cb[i].state == NRFX_DRV_STATE_INITIALIZED) in irq_handler()
136 m_cb[i].int_pend |= nrfy_bellboard_int_pending_get(NRF_BELLBOARD, m_cb[i].int_idx); in irq_handler()
/hal_nordic-3.6.0/nrfx/soc/interconnect/dppic_ppib/
Dnrfx_interconnect_dppic_ppib.c68 for (uint8_t i = 0; i < NRFX_INTERCONNECT_DPPIC_COUNT; i++) in nrfx_interconnect_dppic_get() local
70 if (interconnect_dppic[i].apb_index == apb_index) in nrfx_interconnect_dppic_get()
72 return &interconnect_dppic[i]; in nrfx_interconnect_dppic_get()
97 for (uint8_t i = 0; i < NRFX_INTERCONNECT_DPPIC_PPIB_COUNT; i++) in nrfx_interconnect_direct_connection_check() local
99 if (interconnect_dppic_ppib[i].dppic != p_path->src_dppic->dppic) in nrfx_interconnect_direct_connection_check()
108 if (interconnect_ppib[j].p_ppib1 == interconnect_dppic_ppib[i].ppib) in nrfx_interconnect_direct_connection_check()
115 if (interconnect_ppib[j].p_ppib2 == interconnect_dppic_ppib[i].ppib) in nrfx_interconnect_direct_connection_check()
143 for (uint8_t i = 0; i < NRFX_INTERCONNECT_DPPIC_COUNT; i++) in nrfx_interconnect_apb_index_get() local
145 nrfx_interconnect_dppic_t const * p_dppic = &interconnect_dppic[i]; in nrfx_interconnect_apb_index_get()
/hal_nordic-3.6.0/nrfx/helpers/
Dnrfx_gppi_dppi_ppib_lumos.c61 for (uint8_t i = 0; i < NRF_DPPI_CH_NUM_MAX; i++) in dppic_channel_get() local
63 if (p_dppic->allocate_flag[i] == virtual_channel) in dppic_channel_get()
65 *p_dppic_channel = i; in dppic_channel_get()
96 for (uint8_t i = 0; i < PPIB_CHANNEL_MAX_COUNT; i++) in ppib_channel_get() local
98 if (p_ppib->allocate_flag[i] == virtual_channel) in ppib_channel_get()
100 *p_ppib_channel = i; in ppib_channel_get()
132 for (uint8_t i = 0; i < NRFX_INTERCONNECT_DPPIC_COUNT; i++) in virtual_channel_enable_set() local
134 nrfx_interconnect_dppic_t * dppic = nrfx_interconnect_dppic_at_index_get(i); in virtual_channel_enable_set()
153 for (uint8_t i = 0; i < NRFX_INTERCONNECT_DPPIC_COUNT; i++) in init() local
155 nrfx_interconnect_dppic_t * dppic = nrfx_interconnect_dppic_at_index_get(i); in init()
[all …]
/hal_nordic-3.6.0/nrfx/drivers/include/
Dnrf_bitmask.h126 for (size_t i = 0; i < length; i++) in nrf_bitmask_masks_or() local
128 p_mask8_out[i] = p_mask8_1[i] | p_mask8_2[i]; in nrf_bitmask_masks_or()
148 for (size_t i = 0; i < length; i++) in nrf_bitmask_masks_and() local
150 p_mask8_out[i] = p_mask8_1[i] & p_mask8_2[i]; in nrf_bitmask_masks_and()
/hal_nordic-3.6.0/nrfx/samples/src/nrfx_saadc/simple_blocking/
Dmain.c150 uint8_t i; in main() local
151 for (i = 0; i < CHANNEL_COUNT; i++) in main()
153 gpiote_pin_toggle_task_setup(&gpiote_inst, m_out_pins[i]); in main()
229 for (i = 0; i < CHANNEL_COUNT; i++) in main()
231 nrfx_gpiote_out_task_trigger(&gpiote_inst, m_out_pins[i]); in main()
244 for (i = 0; i < CHANNEL_COUNT; i++) in main()
247 m_multiple_channels[i].channel_index, in main()
248 NRFX_SAADC_SAMPLE_GET(RESOLUTION, samples_buffer, i)); in main()
/hal_nordic-3.6.0/nrfx/samples/src/nrfx_saadc/simple_non_blocking/
Dmain.c143 for (uint16_t i = 0; i < samples_number; i++) in saadc_handler() local
146 i, NRFX_SAADC_SAMPLE_GET(RESOLUTION, p_event->data.done.p_buffer, i)); in saadc_handler()
192 uint8_t i; in main() local
193 for (i = 0; i < CHANNEL_COUNT; i++) in main()
195 gpiote_pin_toggle_task_setup(&gpiote_inst, m_out_pins[i]); in main()
264 for (i = 0; i < CHANNEL_COUNT; i++) in main()
266 nrfx_gpiote_out_task_trigger(&gpiote_inst, m_out_pins[i]); in main()
/hal_nordic-3.6.0/nrfx/soc/interconnect/ipct/
Dnrfx_interconnect_ipct.c99 for (uint8_t i = 0; i < NRFX_ARRAY_SIZE(m_global_ipct_interconnect); i++) in nrfx_interconnect_ipct_get() local
102 … if (nrf_address_bus_get((uint32_t)m_global_ipct_interconnect[i].p_ipct, p_apb_prop->size) == bus) in nrfx_interconnect_ipct_get()
104 return &m_global_ipct_interconnect[i]; in nrfx_interconnect_ipct_get()
108 for (uint8_t i = 0; i < nrfx_interconnect_apb_global_num_of_get(); i++) in nrfx_interconnect_ipct_get() local
111 if (nrf_apb_interconnect_by_idx_global_get(i)->p_dppi == p_apb_prop->p_dppi) in nrfx_interconnect_ipct_get()
/hal_nordic-3.6.0/drivers/nrf_802154/serialization/src/
Dnrf_802154_buffer_allocator.c60 for (uint32_t i = 0; i < buffer_pool_len; i++) in buffer_alloc() local
62 p_buffer = &p_buffer_pool[i]; in buffer_alloc()
123 for (size_t i = 0; i < p_obj->capacity; i++) in nrf_802154_buffer_allocator_init() local
125 p_buffer[i].taken = false; in nrf_802154_buffer_allocator_init()
/hal_nordic-3.6.0/nrfx/samples/src/nrfx_temp/blocking/
Dmain.c67 uint32_t i = 0; in main() local
80 if (i < TEMP_ITERATIONS) in main()
93 i++; in main()
95 else if (i == TEMP_ITERATIONS) in main()
98 i++; in main()
/hal_nordic-3.6.0/nrfx/hal/
Dnrf_gpio.h47 #define GPIO_PORT_NUM(periph_name, prefix, i, _) i, argument
48 #define GPIO_REG(periph_name, prefix, i, _) NRFX_CONCAT(NRF_, periph_name, prefix, i), argument
49 #define GPIO_NUM_OF_PINS(periph_name, prefix, i, _) \ argument
50 NRFX_CONCAT(periph_name, prefix, i, _PIN_NUM)
74 #define NRF_INTERNAL_GPIO_PORT_EXTRACT_1(periph_name, prefix, i, port) \ argument
75 case i: \
76 port = NRFX_CONCAT(NRF_, periph_name, prefix, i); \
92 #define NRF_INTERNAL_GPIO_PORT_MASK_SET_1(periph_name, prefix, i, mask) \ argument
93 case i: \
94 mask = NRFX_CONCAT(periph_name, prefix, i, _FEATURE_PINS_PRESENT); \
[all …]
Dnrf_vmc.h246 for (size_t i = 0; i < VMC_FEATURE_RAM_REGISTERS_COUNT; i++) in nrf_vmc_ram_block_power_all_set() local
248 p_reg->RAM[i].POWERSET = NRF_VMC_POWER_S0 | NRF_VMC_POWER_S1 | in nrf_vmc_ram_block_power_all_set()
289 for (size_t i = 0; i < VMC_FEATURE_RAM_REGISTERS_COUNT; i++) in nrf_vmc_ram_block_retention_all_set() local
291 p_reg->RAM[i].POWERSET = NRF_VMC_RETENTION_S0 | NRF_VMC_RETENTION_S1 | in nrf_vmc_ram_block_retention_all_set()
/hal_nordic-3.6.0/nrfx/haly/
Dnrfy_bellboard.h84 for (uint8_t i = 0; i < NRF_BELLBOARD_EVENTS_TRIGGERED_COUNT; i++) in nrfy_bellboard_int_init() local
86 nrf_bellboard_event_t event = nrf_bellboard_triggered_event_get(i); in nrfy_bellboard_int_init()
222 for (uint8_t i = 0; i < NRF_BELLBOARD_EVENTS_TRIGGERED_COUNT; i++) in __nrfy_internal_bellboard_events_process() local
224 nrf_bellboard_event_t event = nrf_bellboard_triggered_event_get(i); in __nrfy_internal_bellboard_events_process()
/hal_nordic-3.6.0/drivers/nrf_802154/sl/sl_opensource/src/
Dnrf_802154_sl_fem.c110 for (uint32_t i = NUMELTS(allowed_values) - 1; i > 0; i--) in to_radio_tx_power_convert() local
112 if (integer_tx_power >= allowed_values[i].dbm) in to_radio_tx_power_convert()
114 return allowed_values[i]; in to_radio_tx_power_convert()
/hal_nordic-3.6.0/nrfx/samples/src/nrfx_rng/
Dmain.c63 static uint32_t i = 0; in rng_handler() local
65 if (i < RNG_ITERATIONS) in rng_handler()
68 i++; in rng_handler()

123