Home
last modified time | relevance | path

Searched refs:length (Results 1 – 25 of 51) sorted by relevance

123

/hal_nordic-3.6.0/nrfx/drivers/src/
Dnrfx_uarte.c481 if (p_config->tx_cache.length == 0) in nrfx_uarte_init()
483 p_cb->tx.cache.length = 0; in nrfx_uarte_init()
487 p_cb->tx.cache.length = p_config->tx_cache.length - 1; in nrfx_uarte_init()
489 if (p_config->rx_cache.length >= UARTE_HW_RX_FIFO_SIZE) in nrfx_uarte_init()
492 p_cb->rx.flush.length = 0; in nrfx_uarte_init()
495 size_t buf_len = p_config->rx_cache.length / 2; in nrfx_uarte_init()
700 uint32_t length, in wait_for_endtx() argument
727 err = ((p_tx == p_buf) && (length > amount)) ? NRFX_ERROR_FORBIDDEN : NRFX_SUCCESS; in wait_for_endtx()
771 p_cb->tx.cache.p_buffer[p_cb->tx.cache.length] = *p_byte; in poll_out()
772 p_buf = &p_cb->tx.cache.p_buffer[p_cb->tx.cache.length]; in poll_out()
[all …]
Dnrfx_qspi.c121 size_t length, in qspi_xfer() argument
142 nrf_qspi_write_buffer_set(NRF_QSPI, p_buffer, length, address); in qspi_xfer()
147 nrf_qspi_read_buffer_set(NRF_QSPI, p_buffer, length, address); in qspi_xfer()
169 m_cb.size_secondary = length; in qspi_xfer()
175 m_cb.size_primary = length; in qspi_xfer()
526 nrf_qspi_cinstrdata_set(NRF_QSPI, p_config->length, p_tx_buffer); in nrfx_qspi_cinstr_xfer()
547 nrf_qspi_cinstrdata_get(NRF_QSPI, p_config->length, p_rx_buffer); in nrfx_qspi_cinstr_xfer()
554 nrf_qspi_cinstr_len_t length, in nrfx_qspi_cinstr_quick_send() argument
560 nrf_qspi_cinstr_conf_t config = NRFX_QSPI_DEFAULT_CINSTR(opcode, length); in nrfx_qspi_cinstr_quick_send()
567 NRFX_ASSERT(p_config->length == NRF_QSPI_CINSTR_LEN_1B); in nrfx_qspi_lfm_start()
[all …]
Dnrfx_twim.c150 (nrfy_twim_txd_amount_get(p_twim) != p_cb->xfer_desc_primary.length)) || in xfer_completeness_check()
152 (nrfy_twim_txd_amount_get(p_twim) != p_cb->xfer_desc_secondary.length))) in xfer_completeness_check()
158 if ((nrfy_twim_txd_amount_get(p_twim) != p_cb->xfer_desc_primary.length) || in xfer_completeness_check()
159 (nrfy_twim_rxd_amount_get(p_twim) != p_cb->xfer_desc_secondary.length)) in xfer_completeness_check()
165 if (nrfy_twim_txd_amount_get(p_twim) != p_cb->xfer_desc_primary.length) in xfer_completeness_check()
171 if (nrfy_twim_rxd_amount_get(p_twim) != p_cb->xfer_desc_primary.length) in xfer_completeness_check()
467 p_cb->xfer_desc_primary.length = p_xfer_desc->primary_length; in twim_xfer()
469 p_cb->xfer_desc_secondary.length = p_xfer_desc->secondary_length; in twim_xfer()
752 event.xfer_desc.primary_length = p_cb->xfer_desc_primary.length; in irq_handler()
754 event.xfer_desc.secondary_length = p_cb->xfer_desc_secondary.length; in irq_handler()
[all …]
Dnrfx_pwm.c382 p_sequence->length); in nrfx_pwm_simple_playback()
385 p_sequence->length * sizeof(uint16_t)); in nrfx_pwm_simple_playback()
423 p_sequence_0->length); in nrfx_pwm_complex_playback()
426 p_sequence_1->length); in nrfx_pwm_complex_playback()
429 p_sequence_0->length * sizeof(uint16_t)); in nrfx_pwm_complex_playback()
432 p_sequence_1->length * sizeof(uint16_t)); in nrfx_pwm_complex_playback()
/hal_nordic-3.6.0/nrfx/templates/
Dnrfx_log.h95 #define NRFX_LOG_HEXDUMP_ERROR(p_memory, length) argument
103 #define NRFX_LOG_HEXDUMP_WARNING(p_memory, length) argument
111 #define NRFX_LOG_HEXDUMP_INFO(p_memory, length) argument
119 #define NRFX_LOG_HEXDUMP_DEBUG(p_memory, length) argument
/hal_nordic-3.6.0/nrfx/helpers/
Dnrfx_ram_ctrl.c186 size_t length, in ram_ctrl_block_section_iterate() argument
191 NRFX_ASSERT(length); in ram_ctrl_block_section_iterate()
195 size_t obj_end_addr = rel_obj_adr + length; in ram_ctrl_block_section_iterate()
229 void nrfx_ram_ctrl_power_enable_set(void const * p_object, size_t length, bool enable) in nrfx_ram_ctrl_power_enable_set() argument
232 length, in nrfx_ram_ctrl_power_enable_set()
237 void nrfx_ram_ctrl_retention_enable_set(void const * p_object, size_t length, bool enable) in nrfx_ram_ctrl_retention_enable_set() argument
240 length, in nrfx_ram_ctrl_retention_enable_set()
Dnrfx_ram_ctrl.h69 void nrfx_ram_ctrl_power_enable_set(void const * p_object, size_t length, bool enable);
79 void nrfx_ram_ctrl_retention_enable_set(void const * p_object, size_t length, bool enable);
/hal_nordic-3.6.0/nrfx/drivers/include/
Dnrfx_uarte.h282 .length = 0 \
287 .length = 0 \
310 size_t length; ///< Amount of received data. member
317 size_t length; ///< Amount of transferred data. member
472 size_t length,
545 size_t length);
593 size_t length);
Dnrf_bitmask.h121 size_t length) in nrf_bitmask_masks_or() argument
126 for (size_t i = 0; i < length; i++) in nrf_bitmask_masks_or()
143 size_t length) in nrf_bitmask_masks_and() argument
148 for (size_t i = 0; i < length; i++) in nrf_bitmask_masks_and()
Dnrfx_spi.h182 #define NRFX_SPI_XFER_TX(p_buf, length) \ argument
183 NRFX_SPI_SINGLE_XFER(p_buf, length, NULL, 0)
186 #define NRFX_SPI_XFER_RX(p_buf, length) \ argument
187 NRFX_SPI_SINGLE_XFER(NULL, 0, p_buf, length)
Dnrfx_twim.h174 #define NRFX_TWIM_XFER_DESC_TX(addr, p_data, length) \ argument
175 NRFX_TWIM_XFER_DESC(NRFX_TWIM_XFER_TX, addr, p_data, length, NULL, 0)
178 #define NRFX_TWIM_XFER_DESC_RX(addr, p_data, length) \ argument
179 NRFX_TWIM_XFER_DESC(NRFX_TWIM_XFER_RX, addr, p_data, length, NULL, 0)
Dnrfx_twi.h158 #define NRFX_TWI_XFER_DESC_TX(addr, p_data, length) \ argument
162 .primary_length = (length), \
169 #define NRFX_TWI_XFER_DESC_RX(addr, p_data, length) \ argument
173 .primary_length = (length), \
Dnrfx_spim.h223 #define NRFX_SPIM_XFER_TX(p_buf, length) \ argument
224 NRFX_SPIM_SINGLE_XFER(p_buf, length, NULL, 0)
227 #define NRFX_SPIM_XFER_RX(p_buf, length) \ argument
228 NRFX_SPIM_SINGLE_XFER(NULL, 0, p_buf, length)
Dnrfx_qspi.h130 .length = (len), \
371 nrfx_err_t nrfx_qspi_erase(nrf_qspi_erase_len_t length,
463 nrf_qspi_cinstr_len_t length,
/hal_nordic-3.6.0/drivers/nrf_802154/driver/src/
Dnrf_802154.c102 static void tx_buffer_fill(const uint8_t * p_data, uint8_t length) in tx_buffer_fill() argument
104 NRF_802154_ASSERT(length <= MAX_PACKET_SIZE - FCS_SIZE); in tx_buffer_fill()
106 m_tx_buffer[RAW_LENGTH_OFFSET] = length + FCS_SIZE; in tx_buffer_fill()
107 memcpy(&m_tx_buffer[RAW_PAYLOAD_OFFSET], p_data, length); in tx_buffer_fill()
121 uint8_t length = p_data[RAW_LENGTH_OFFSET]; in tx_buffer_fill_for_modulated_carrier() local
123 NRF_802154_ASSERT(length <= MAX_PACKET_SIZE); in tx_buffer_fill_for_modulated_carrier()
125 memcpy(m_tx_buffer, p_data, RAW_PAYLOAD_OFFSET + length); in tx_buffer_fill_for_modulated_carrier()
515 uint8_t length, in nrf_802154_transmit() argument
557 tx_buffer_fill(p_data, length); in nrf_802154_transmit()
831 uint16_t length, in nrf_802154_ack_data_set() argument
[all …]
/hal_nordic-3.6.0/nrfx/hal/
Dnrf_qspi.h245 nrf_qspi_cinstr_len_t length; /**< Length of the custom instruction data. */ member
486 uint32_t length,
499 uint32_t length,
570 nrf_qspi_cinstr_len_t length,
581 nrf_qspi_cinstr_len_t length,
623 nrf_qspi_cinstr_len_t length,
820 uint32_t length, in nrf_qspi_write_buffer_set() argument
825 p_reg->WRITE.CNT = length; in nrf_qspi_write_buffer_set()
830 uint32_t length, in nrf_qspi_read_buffer_set() argument
835 p_reg->READ.CNT = length; in nrf_qspi_read_buffer_set()
[all …]
Dnrf_twis.h415 size_t length);
435 NRF_STATIC_INLINE void nrf_twis_rx_prepare(NRF_TWIS_Type * p_reg, uint8_t * p_buf, size_t length);
455 size_t length);
477 size_t length);
778 NRF_STATIC_INLINE void nrf_twis_rx_buffer_set(NRF_TWIS_Type * p_reg, uint8_t * p_buf, size_t length) in nrf_twis_rx_buffer_set() argument
782 p_reg->DMA.RX.MAXCNT = (uint32_t)length; in nrf_twis_rx_buffer_set()
785 p_reg->RXD.MAXCNT = length; in nrf_twis_rx_buffer_set()
798 NRF_STATIC_INLINE void nrf_twis_rx_prepare(NRF_TWIS_Type * p_reg, uint8_t * p_buf, size_t length) in nrf_twis_rx_prepare() argument
800 nrf_twis_rx_buffer_set(p_reg, p_buf, length); in nrf_twis_rx_prepare()
815 size_t length) in nrf_twis_tx_buffer_set() argument
[all …]
Dnrf_uarte.h576 size_t length);
605 size_t length);
808 size_t length) in nrf_uarte_tx_buffer_set() argument
812 p_reg->DMA.TX.MAXCNT = length; in nrf_uarte_tx_buffer_set()
815 p_reg->TXD.MAXCNT = length; in nrf_uarte_tx_buffer_set()
839 size_t length) in nrf_uarte_rx_buffer_set() argument
843 p_reg->DMA.RX.MAXCNT = length; in nrf_uarte_rx_buffer_set()
846 p_reg->RXD.MAXCNT = length; in nrf_uarte_rx_buffer_set()
Dnrf_pwm.h282 uint16_t length; ///< Number of 16-bit values in the array pointed by @p values. member
548 uint16_t length);
767 nrf_pwm_seq_cnt_set( p_reg, seq_id, p_seq->length); in nrf_pwm_sequence_set()
789 uint16_t length) in nrf_pwm_seq_cnt_set() argument
792 NRFX_ASSERT(length != 0); in nrf_pwm_seq_cnt_set()
793 NRFX_ASSERT(length <= PWM_SEQ_CNT_CNT_Msk); in nrf_pwm_seq_cnt_set()
794 p_reg->SEQ[seq_id].CNT = length; in nrf_pwm_seq_cnt_set()
Dnrf_spis.h472 size_t length);
483 size_t length);
871 size_t length) in nrf_spis_tx_buffer_set() argument
875 p_reg->MAXTX = length; in nrf_spis_tx_buffer_set()
878 p_reg->DMA.TX.MAXCNT = length; in nrf_spis_tx_buffer_set()
881 p_reg->TXD.MAXCNT = length; in nrf_spis_tx_buffer_set()
887 size_t length) in nrf_spis_rx_buffer_set() argument
891 p_reg->MAXRX = length; in nrf_spis_rx_buffer_set()
894 p_reg->DMA.RX.MAXCNT = length; in nrf_spis_rx_buffer_set()
897 p_reg->RXD.MAXCNT = length; in nrf_spis_rx_buffer_set()
Dnrf_gpio.h650 uint32_t length,
731 uint32_t length,
744 uint32_t length,
1179 uint32_t length, in nrf_gpio_ports_read() argument
1184 NRFX_ASSERT(start_port + length <= GPIO_COUNT); in nrf_gpio_ports_read()
1187 for (i = start_port; i < (start_port + length); i++) in nrf_gpio_ports_read()
1234 uint32_t length, in nrf_gpio_latches_read() argument
1240 for (i = start_port; i < (start_port + length); i++) in nrf_gpio_latches_read()
1248 uint32_t length, in nrf_gpio_latches_read_and_clear() argument
1254 for (i = start_port; i < (start_port + length); i++) in nrf_gpio_latches_read_and_clear()
/hal_nordic-3.6.0/nrfx/haly/
Dnrfy_gpio.h307 uint32_t length, in nrfy_gpio_ports_read() argument
311 nrf_gpio_ports_read(start_port, length, p_masks); in nrfy_gpio_ports_read()
318 uint32_t length, in nrfy_gpio_latches_read() argument
322 nrf_gpio_latches_read(start_port, length, p_masks); in nrfy_gpio_latches_read()
328 uint32_t length, in nrfy_gpio_latches_read_and_clear() argument
332 nrf_gpio_latches_read_and_clear(start_port, length, p_masks); in nrfy_gpio_latches_read_and_clear()
Dnrfy_twim.h101 size_t length; ///< Number of bytes transferred. member
194 NRFY_CACHE_WB(p_xfer->p_buffer, p_xfer->length); in nrfy_twim_tx_buffer_set()
196 nrf_twim_tx_buffer_set(p_reg, p_xfer->p_buffer, p_xfer->length); in nrfy_twim_tx_buffer_set()
209 nrf_twim_rx_buffer_set(p_reg, p_xfer->p_buffer, p_xfer->length); in nrfy_twim_rx_buffer_set()
225 if (p_xfer->length == 0) in nrfy_twim_tx_start()
298 if (p_xfer->length == 0) in nrfy_twim_rx_start()
711 NRFY_CACHE_INV(p_xfer->p_buffer, p_xfer->length); in __nrfy_internal_twim_events_process()
715 NRFY_CACHE_INV(p_xfer->p_buffer, p_xfer->length); in __nrfy_internal_twim_events_process()
Dnrfy_uarte.h97 size_t length; ///< Data length. member
225 if (p_xfer && p_xfer->length) in nrfy_uarte_stop()
558 size_t length) in nrfy_uarte_tx_buffer_set() argument
562 NRFY_CACHE_WB(p_buffer, length); in nrfy_uarte_tx_buffer_set()
563 nrf_uarte_tx_buffer_set(p_reg, p_buffer, length); in nrfy_uarte_tx_buffer_set()
589 size_t length) in nrfy_uarte_rx_buffer_set() argument
591 nrf_uarte_rx_buffer_set(p_reg, p_buffer, length); in nrfy_uarte_rx_buffer_set()
654 NRFY_CACHE_INV(p_xfer->p_buffer, p_xfer->length); in __nrfy_internal_uarte_events_process()
/hal_nordic-3.6.0/drivers/nrf_802154/common/include/
Dnrf_802154_callouts.h194 extern void nrf_802154_received(uint8_t * p_data, uint8_t length, int8_t power, uint8_t lqi);
216 uint8_t length,

123