Home
last modified time | relevance | path

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

12

/hal_nordic-3.4.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.c64 for (size_t i = 0; i < NUMBER_OF_STAT_COUNTERS; ++i) in nrf_802154_stat_counters_subtract() local
86 for (size_t i = 0; i < NUMBER_OF_STAT_COUNTERS; ++i) in nrf_802154_stat_counters_reset() local
99 for (size_t i = 0; i < NUMBER_OF_STAT_TOTALS; ++i) in nrf_802154_stat_totals_get() local
/hal_nordic-3.4.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.c168 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
170 if (m_dly_rx_data[i].id == id) in dly_rx_data_by_id_search()
176 p_dly_op_data = &m_dly_rx_data[i]; in dly_rx_data_by_id_search()
269 for (uint32_t i = 0; i < pool_len; i++) in available_dly_ts_slot_from_pool_get() local
271 if (dly_op_state_set(&p_dly_op_data_pool[i], in available_dly_ts_slot_from_pool_get()
275 return &p_dly_op_data_pool[i]; in available_dly_ts_slot_from_pool_get()
315 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
317 if (m_dly_rx_data[i].state == DELAYED_TRX_OP_STATE_ONGOING) in ongoing_dly_rx_slot_get()
319 p_dly_op_data = &m_dly_rx_data[i]; in ongoing_dly_rx_slot_get()
503 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.4.0/nrfx/drivers/src/
Dnrfx_ipc.c73 uint32_t i; in nrfx_ipc_config_load() local
74 for (i = 0; i < IPC_CONF_NUM; ++i) in nrfx_ipc_config_load()
76 nrf_ipc_send_config_set(NRF_IPC, i, p_config->send_task_config[i]); in nrfx_ipc_config_load()
79 for (i = 0; i < IPC_CONF_NUM; ++i) in nrfx_ipc_config_load()
81 nrf_ipc_receive_config_set(NRF_IPC, i, p_config->receive_event_config[i]); in nrfx_ipc_config_load()
91 uint32_t i; in nrfx_ipc_uninit() local
92 for (i = 0; i < IPC_CONF_NUM; ++i) in nrfx_ipc_uninit()
94 nrf_ipc_send_config_set(NRF_IPC, i, 0); in nrfx_ipc_uninit()
97 for (i = 0; i < IPC_CONF_NUM; ++i) in nrfx_ipc_uninit()
99 nrf_ipc_receive_config_set(NRF_IPC, i, 0); in nrfx_ipc_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
505 for (uint8_t i = 0; i < NRFX_PWM_ENABLED_COUNT; i++) in DMA_ISSUE_EGU_IRQHandler() local
507 nrf_egu_event_t event = nrfy_egu_triggered_event_get(i); in DMA_ISSUE_EGU_IRQHandler()
[all …]
Dnrfx_gpiote.c274 for (uint32_t i = 0; i < MAX_PIN_NUMBER; i++) in handler_in_use() local
276 if (PIN_GET_HANDLER_ID(m_cb.pin_flags[i]) == handler_id) in handler_in_use()
346 for (uint32_t i = 0; i < NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS; i++) in find_handler() local
348 if ((m_cb.handlers[i].handler == handler) && (m_cb.handlers[i].p_context == p_context)) in find_handler()
350 return i; in find_handler()
626 uint32_t i; in nrfx_gpiote_uninit() local
628 for (i = 0; i < MAX_PIN_NUMBER; i++) in nrfx_gpiote_uninit()
630 if (nrfy_gpio_pin_present_check(i) && pin_in_use(i)) in nrfx_gpiote_uninit()
632 nrfx_gpiote_pin_uninit(i); in nrfx_gpiote_uninit()
936 for (uint32_t i = 0; i < GPIO_COUNT; i++) in port_event_handle() 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_twi_twim.c56 for (uint8_t i = 0; i < 9; i++) in nrfx_twi_twim_bus_recover() local
Dnrfx_saadc.c97 for (uint32_t i = 0; i < SAADC_CH_NUM; i++) in saadc_anomaly_212_workaround_apply() local
99 c[i] = NRF_SAADC->CH[i].CONFIG; in saadc_anomaly_212_workaround_apply()
100 l[i] = NRF_SAADC->CH[i].LIMIT; in saadc_anomaly_212_workaround_apply()
110 for (uint32_t i = 0; i < SAADC_CH_NUM; i++) in saadc_anomaly_212_workaround_apply() local
112 NRF_SAADC->CH[i].CONFIG = c[i]; in saadc_anomaly_212_workaround_apply()
113 NRF_SAADC->CH[i].LIMIT = l[i]; in saadc_anomaly_212_workaround_apply()
300 for (uint8_t i = 0; i < channel_count; i++) in nrfx_saadc_channels_config() local
302 if (m_cb.channels_configured & (1 << p_channels[i].channel_index)) in nrfx_saadc_channels_config()
308 saadc_channel_config(&p_channels[i]); in nrfx_saadc_channels_config()
/hal_nordic-3.4.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.4.0/nrfx/samples/src/nrfx_saadc/simple_blocking/
Dmain.c129 uint8_t i; in main() local
130 for (i = 0; i < CHANNEL_COUNT; i++) in main()
132 gpiote_pin_toggle_task_setup(m_out_pins[i]); in main()
206 for (i = 0; i < CHANNEL_COUNT; i++) in main()
208 nrfx_gpiote_out_task_trigger(m_out_pins[i]); in main()
221 for (i = 0; i < CHANNEL_COUNT; i++) in main()
224 m_multiple_channels[i].channel_index, samples_buffer[i]); in main()
/hal_nordic-3.4.0/nrfx/samples/src/nrfx_saadc/simple_non_blocking/
Dmain.c133 for (uint16_t i = 0; i < samples_number; i++) in saadc_handler() local
135 NRFX_LOG_INFO("[Sample %d] value == %d", i, p_event->data.done.p_buffer[i]); in saadc_handler()
169 uint8_t i; in main() local
170 for (i = 0; i < CHANNEL_COUNT; i++) in main()
172 gpiote_pin_toggle_task_setup(m_out_pins[i]); in main()
244 for (i = 0; i < CHANNEL_COUNT; i++) in main()
246 nrfx_gpiote_out_task_trigger(m_out_pins[i]); in main()
/hal_nordic-3.4.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.4.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.4.0/drivers/nrf_802154/sl/sl_opensource/src/
Dnrf_802154_sl_fem.c98 for (uint32_t i = NUMELTS(allowed_values) - 1; i > 0; i--) in to_radio_tx_power_convert() local
100 if (integer_tx_power >= (int8_t)allowed_values[i]) in to_radio_tx_power_convert()
102 return allowed_values[i]; in to_radio_tx_power_convert()
/hal_nordic-3.4.0/nrfx/samples/src/nrfx_saadc/advanced_non_blocking_internal_timer/
Dmain.c157 for (uint16_t i = 0; i < samples_number; i++) in saadc_handler() local
159 NRFX_LOG_INFO("[Sample %u] value == %d", i, p_event->data.done.p_buffer[i]); in saadc_handler()
/hal_nordic-3.4.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()
/hal_nordic-3.4.0/nrfx/hal/
Dnrf_gpio.h73 #define NRF_INTERNAL_GPIO_PORT_EXTRACT_1(periph_name, prefix, i, port) \ argument
74 case i: \
75 port = NRFX_CONCAT(NRF_, periph_name, prefix, i); \
91 #define NRF_INTERNAL_GPIO_PORT_MASK_SET_1(periph_name, prefix, i, mask) \ argument
92 case i: \
93 mask = NRFX_CONCAT(periph_name, prefix, i, _FEATURE_PINS_PRESENT); \
1163 uint32_t i; in nrf_gpio_ports_read() local
1165 for (i = start_port; i < (start_port + length); i++) in nrf_gpio_ports_read()
1167 *p_masks = nrf_gpio_port_in_read(gpio_regs[i]); in nrf_gpio_ports_read()
1216 uint32_t i; in nrf_gpio_latches_read() local
[all …]
/hal_nordic-3.4.0/nrfx/samples/src/nrfx_temp/non_blocking/
Dmain.c67 static uint32_t i = 1; in temp_handler() local
74 if (i < TEMP_ITERATIONS) in temp_handler()
78 i++; in temp_handler()
/hal_nordic-3.4.0/nrfx/haly/
Dnrfy_rtc.h98 for (size_t i = 0; i < NRF_RTC_CC_COUNT_MAX; i++) in nrfy_rtc_int_init() local
100 __nrfy_internal_rtc_event_enabled_clear(p_reg, mask, nrf_rtc_compare_event_get(i)); in nrfy_rtc_int_init()
397 for (uint32_t i = 0; i < NRF_RTC_CC_COUNT_MAX; i++) in __nrfy_internal_rtc_events_process() local
401 nrf_rtc_compare_event_get(i), in __nrfy_internal_rtc_events_process()
Dnrfy_gpiote.h83 for (uint8_t i = 0; i < GPIOTE_CH_NUM; i++) in nrfy_gpiote_int_init() local
85 __nrfy_internal_gpiote_event_enabled_clear(p_reg, mask, nrf_gpiote_in_event_get(i)); in nrfy_gpiote_int_init()
395 for (uint8_t i = 0; i < GPIOTE_CH_NUM; i++) in __nrfy_internal_gpiote_events_process() local
399 nrf_gpiote_in_event_get(i), in __nrfy_internal_gpiote_events_process()
Dnrfy_timer.h106 for (size_t i = 0; i < NRF_TIMER_CC_COUNT_MAX; i++) in nrfy_timer_int_init() local
108 __nrfy_internal_timer_event_enabled_clear(p_reg, mask, nrf_timer_compare_event_get(i)); in nrfy_timer_int_init()
437 for (uint32_t i = 0; i < NRF_TIMER_CC_COUNT_MAX; i++) in __nrfy_internal_timer_events_process() local
441 nrf_timer_compare_event_get(i), in __nrfy_internal_timer_events_process()

12