Home
last modified time | relevance | path

Searched refs:frame_size (Results 1 – 20 of 20) sorted by relevance

/Zephyr-latest/drivers/spi/
Dspi_nxp_s32.h29 #define SPI_NXP_S32_BYTE_PER_FRAME(frame_size) \ argument
30 (frame_size <= 8U) ? 1U : ((frame_size <= 16U) ? 2U : 4U)
Dspi_mcux_dspi.c67 int frame_size; member
77 static int get_size_byte_by_frame_size(int len, int frame_size) in get_size_byte_by_frame_size() argument
79 if (frame_size == 8) { in get_size_byte_by_frame_size()
259 uint32_t frame_size_bit = data->frame_size; in mcux_spi_context_data_update()
340 uint32_t frame_size = data->frame_size; in update_tx_dma() local
353 frame_size); in update_tx_dma()
358 frame_size); in update_tx_dma()
365 frame_size); in update_tx_dma()
395 uint32_t frame_size_byte = (data->frame_size >> 3); in update_rx_dma()
522 data->transfer_len = data->frame_size >> 3; in dma_callback()
[all …]
Dspi_nxp_s32.c273 uint8_t frame_size; in spi_nxp_s32_configure() local
297 frame_size = SPI_WORD_SIZE_GET(spi_cfg->operation); in spi_nxp_s32_configure()
321 if (frame_size > 32U) { in spi_nxp_s32_configure()
322 LOG_ERR("Unsupported frame size %d bits", frame_size); in spi_nxp_s32_configure()
369 Spi_Ip_UpdateFrameSize(&data->transfer_cfg, frame_size); in spi_nxp_s32_configure()
373 data->bytes_per_frame = SPI_NXP_S32_BYTE_PER_FRAME(frame_size); in spi_nxp_s32_configure()
378 clk_polarity, clk_phase, lsb, frame_size); in spi_nxp_s32_configure()
384 lsb, hold_cs, frame_size, spi_cfg->slave); in spi_nxp_s32_configure()
Dspi_npcx_spip.c50 uint8_t frame_size; in spi_npcx_spip_configure() local
82 frame_size = SPI_WORD_SIZE_GET(operation); in spi_npcx_spip_configure()
83 if (frame_size == 8) { in spi_npcx_spip_configure()
86 } else if (frame_size == 16) { in spi_npcx_spip_configure()
Dspi_ll_stm32.c304 const uint8_t frame_size = SPI_WORD_SIZE_GET(data->ctx.config->operation); in spi_stm32_send_next_frame() local
307 if (frame_size == 8) { in spi_stm32_send_next_frame()
325 const uint8_t frame_size = SPI_WORD_SIZE_GET(data->ctx.config->operation); in spi_stm32_read_next_frame() local
328 if (frame_size == 8) { in spi_stm32_read_next_frame()
/Zephyr-latest/drivers/bluetooth/hci/
Duserchan.c199 ssize_t frame_size = 0; in rx_thread() local
216 len = read(uc->fd, frame + frame_size, sizeof(frame) - frame_size); in rx_thread()
229 frame_size += len; in rx_thread()
231 while (frame_size > 0) { in rx_thread()
234 const int32_t decoded_len = hci_packet_complete(frame_start, frame_size); in rx_thread()
238 frame_size = 0; /* Drop buffer */ in rx_thread()
243 if (frame_size == sizeof(frame)) { in rx_thread()
247 frame_size = 0; /* Drop buffer */ in rx_thread()
251 memmove(frame, frame_start, frame_size); in rx_thread()
262 frame_size -= decoded_len; in rx_thread()
/Zephyr-latest/drivers/sensor/asahi_kasei/akm09918c/
Dakm09918c_decoder.c23 size_t *frame_size) in akm09918c_decoder_get_size_info() argument
31 *frame_size = sizeof(struct sensor_three_axis_sample_data); in akm09918c_decoder_get_size_info()
/Zephyr-latest/drivers/sensor/memsic/mmc56x3/
Dmmc56x3_decoder.c49 size_t *frame_size) in mmc56x3_decoder_get_size_info() argument
57 *frame_size = sizeof(struct sensor_q31_sample_data); in mmc56x3_decoder_get_size_info()
60 *frame_size = sizeof(struct sensor_three_axis_sample_data); in mmc56x3_decoder_get_size_info()
/Zephyr-latest/subsys/bluetooth/audio/shell/
Dbap_usb.c209 size_t frame_size, uint32_t ts) in bap_usb_add_frame_to_usb() argument
222 if (frame_size > LC3_MAX_NUM_SAMPLES_MONO * sizeof(int16_t) || frame_size == 0U) { in bap_usb_add_frame_to_usb()
223 LOG_DBG("Invalid frame of size %zu", frame_size); in bap_usb_add_frame_to_usb()
282 memcpy(decoded_sdu.left_frames[decoded_sdu.left_frames_cnt++], frame, frame_size); in bap_usb_add_frame_to_usb()
290 memcpy(decoded_sdu.right_frames[decoded_sdu.right_frames_cnt++], frame, frame_size); in bap_usb_add_frame_to_usb()
299 memcpy(decoded_sdu.left_frames[decoded_sdu.mono_frames_cnt++], frame, frame_size); in bap_usb_add_frame_to_usb()
Daudio.h160 size_t frame_size, uint32_t ts);
Dbap.c319 const size_t frame_size = bap_usb_get_frame_size(sh_stream); in init_lc3_encoder() local
321 if (frame_size > sizeof(lc3_tx_buf)) { in init_lc3_encoder()
323 frame_size, sizeof(lc3_tx_buf)); in init_lc3_encoder()
/Zephyr-latest/drivers/sensor/bosch/bme280/
Dbme280_decoder.c42 size_t *frame_size) in bme280_decoder_get_size_info() argument
49 *frame_size = sizeof(struct sensor_q31_sample_data); in bme280_decoder_get_size_info()
/Zephyr-latest/drivers/sensor/
Ddefault_rtio_sensor.c346 size_t *frame_size) in sensor_natively_supported_channel_size_info() argument
349 __ASSERT_NO_MSG(frame_size != NULL); in sensor_natively_supported_channel_size_info()
373 *frame_size = sizeof(struct sensor_three_axis_sample_data); in sensor_natively_supported_channel_size_info()
377 *frame_size = sizeof(struct sensor_byte_sample_data); in sensor_natively_supported_channel_size_info()
381 *frame_size = sizeof(struct sensor_uint64_sample_data); in sensor_natively_supported_channel_size_info()
385 *frame_size = sizeof(struct sensor_q31_sample_data); in sensor_natively_supported_channel_size_info()
Dsensor_shell.c359 size_t frame_size; in sensor_shell_processing_callback() local
379 rc = decoder->get_size_info(ch, &base_size, &frame_size); in sensor_shell_processing_callback()
/Zephyr-latest/samples/boards/st/power_mgmt/suspend_to_ram/src/
Dmain.c53 #define SPI_OP(frame_size) SPI_OP_MODE_MASTER | SPI_MODE_CPOL | \ argument
54 SPI_MODE_CPHA | SPI_WORD_SET(frame_size) | SPI_LINES_SINGLE
/Zephyr-latest/drivers/sensor/bosch/bma4xx/
Dbma4xx.c493 size_t *frame_size) in bma4xx_decoder_get_size_info() argument
501 *frame_size = sizeof(struct sensor_three_axis_sample_data); in bma4xx_decoder_get_size_info()
505 *frame_size = sizeof(struct sensor_q31_sample_data); in bma4xx_decoder_get_size_info()
/Zephyr-latest/drivers/sensor/st/lsm6dsv16x/
Dlsm6dsv16x_decoder.c650 size_t *frame_size) in lsm6dsv16x_decoder_get_size_info() argument
662 *frame_size = sizeof(struct sensor_three_axis_sample_data); in lsm6dsv16x_decoder_get_size_info()
666 *frame_size = sizeof(struct sensor_q31_sample_data); in lsm6dsv16x_decoder_get_size_info()
/Zephyr-latest/drivers/sensor/tdk/icm42688/
Dicm42688_decoder.c645 size_t *frame_size) in icm42688_decoder_get_size_info() argument
657 *frame_size = sizeof(struct sensor_three_axis_sample_data); in icm42688_decoder_get_size_info()
661 *frame_size = sizeof(struct sensor_q31_sample_data); in icm42688_decoder_get_size_info()
/Zephyr-latest/tests/drivers/spi/spi_loopback/src/
Dspi.c50 #define SPI_OP(frame_size) SPI_OP_MODE_MASTER | SPI_MODE_CPOL | MODE_LOOP | \ argument
51 SPI_MODE_CPHA | SPI_WORD_SET(frame_size) | SPI_LINES_SINGLE
/Zephyr-latest/include/zephyr/drivers/
Dsensor.h498 size_t *frame_size);
594 size_t *frame_size);