Home
last modified time | relevance | path

Searched refs:data_bits (Results 1 – 25 of 57) sorted by relevance

123

/Zephyr-latest/drivers/sensor/tsic_xx6/
Dtsic_xx6.c54 const uint8_t data_bits; member
138 static int tsic_xx6_get_data_bits(const struct tsic_xx6_config *config, uint16_t *data_bits, in tsic_xx6_get_data_bits() argument
142 config->data_bits == 14 ? FRAME_DATA_BIT_13 : FRAME_DATA_BIT_10; in tsic_xx6_get_data_bits()
153 *data_bits = data_msb << 8 | data_lsb; in tsic_xx6_get_data_bits()
159 uint16_t data_bits) in tsic_xx6_get_value() argument
164 tmp = (int64_t)data_bits * in tsic_xx6_get_value()
166 tmp = tmp * 1000000 / (BIT(config->data_bits) - 1); in tsic_xx6_get_value()
178 uint16_t data_bits; in tsic_xx6_sample_fetch() local
191 rc = tsic_xx6_get_data_bits(config, &data_bits, frame); in tsic_xx6_sample_fetch()
196 tsic_xx6_get_value(config, data, data_bits); in tsic_xx6_sample_fetch()
[all …]
/Zephyr-latest/tests/drivers/uart/uart_elementary/src/
Dmain.c143 .data_bits = UART_CFG_DATA_BITS_8, in ZTEST()
164 zassert_equal(test_uart_config.data_bits, test_expected_uart_config.data_bits, in ZTEST()
166 test_uart_config.data_bits, test_expected_uart_config.data_bits); in ZTEST()
184 .data_bits = UART_CFG_DATA_BITS_8, in ZTEST()
204 .data_bits = UART_CFG_DATA_BITS_8, in ZTEST()
241 .data_bits = UART_CFG_DATA_BITS_8, in ZTEST()
248 .data_bits = UART_CFG_DATA_BITS_8, in ZTEST()
/Zephyr-latest/drivers/serial/
Duart_native_tty.c104 switch (cfg->data_bits) { in native_tty_conv_to_bottom_cfg()
106 bottom_cfg->data_bits = NTB_DATA_BITS_5; in native_tty_conv_to_bottom_cfg()
109 bottom_cfg->data_bits = NTB_DATA_BITS_6; in native_tty_conv_to_bottom_cfg()
112 bottom_cfg->data_bits = NTB_DATA_BITS_7; in native_tty_conv_to_bottom_cfg()
115 bottom_cfg->data_bits = NTB_DATA_BITS_8; in native_tty_conv_to_bottom_cfg()
395 .data_bits = UART_CFG_DATA_BITS_8, \
Duart_max32.c162 if (data->conf.data_bits != uart_cfg->data_bits) { in api_configure()
163 err = MXC_UART_SetDataSize(regs, (5 + uart_cfg->data_bits)); in api_configure()
168 data->conf.data_bits = uart_cfg->data_bits; in api_configure()
443 .uart_conf.data_bits = DT_INST_ENUM_IDX_OR(_num, data_bits, UART_CFG_DATA_BITS_8), \
Duart_renesas_rz_scif.c97 switch (uart_config->data_bits) { in uart_rz_scif_apply_config()
99 fsp_cfg->data_bits = UART_DATA_BITS_7; in uart_rz_scif_apply_config()
102 fsp_cfg->data_bits = UART_DATA_BITS_8; in uart_rz_scif_apply_config()
285 .data_bits = \
286 DT_INST_ENUM_IDX_OR(n, data_bits, UART_CFG_DATA_BITS_8), \
Duart_native_tty_bottom.c151 enum native_tty_bottom_data_bits data_bits) in native_tty_data_bits_set() argument
155 switch (data_bits) { in native_tty_data_bits_set()
214 native_tty_data_bits_set(&ter, cfg->data_bits); in native_tty_configure_bottom()
Duart_native_tty_bottom.h49 enum native_tty_bottom_data_bits data_bits; member
Duart_lpc11u6x.c147 switch (cfg->data_bits) { in lpc11u6x_uart0_configure()
175 data->data_bits = cfg->data_bits; in lpc11u6x_uart0_configure()
190 cfg->data_bits = data->data_bits; in lpc11u6x_uart0_config_get()
365 data->data_bits = UART_CFG_DATA_BITS_8; in lpc11u6x_uart0_init()
554 switch (cfg->data_bits) { in lpc11u6x_uartx_configure()
595 data->data_bits = cfg->data_bits; in lpc11u6x_uartx_configure()
609 cfg->data_bits = data->data_bits; in lpc11u6x_uartx_config_get()
798 data->data_bits = UART_CFG_DATA_BITS_8; in lpc11u6x_uartx_init()
Dusart_sam.c193 static uint32_t usart_sam_cfg2sam_data_bits(uint8_t data_bits) in usart_sam_cfg2sam_data_bits() argument
195 switch (data_bits) { in usart_sam_cfg2sam_data_bits()
263 if (cfg->data_bits == UART_CFG_DATA_BITS_9 || in usart_sam_configure()
281 | usart_sam_cfg2sam_data_bits(cfg->data_bits) in usart_sam_configure()
304 cfg->data_bits = usart_sam_get_data_bits(dev); in usart_sam_config_get()
506 .data_bits = UART_CFG_DATA_BITS_8, in usart_sam_init()
Duart_ifx_cat1.c123 static uint32_t _convert_uart_data_bits_z_to_cyhal(enum uart_config_data_bits data_bits) in _convert_uart_data_bits_z_to_cyhal() argument
127 switch (data_bits) { in _convert_uart_data_bits_z_to_cyhal()
214 .data_bits = _convert_uart_data_bits_z_to_cyhal(cfg->data_bits), in ifx_cat1_uart_configure()
521 .dt_cfg.data_bits = DT_INST_ENUM_IDX_OR(n, data_bits, UART_CFG_DATA_BITS_8), \
Duart_mchp_xec.c353 switch (cfg->data_bits) { in uart_xec_configure()
355 uart_cfg.data_bits = LCR_CS5; in uart_xec_configure()
358 uart_cfg.data_bits = LCR_CS6; in uart_xec_configure()
361 uart_cfg.data_bits = LCR_CS7; in uart_xec_configure()
364 uart_cfg.data_bits = LCR_CS8; in uart_xec_configure()
398 regs->LCR = uart_cfg.data_bits | uart_cfg.stop_bits | uart_cfg.parity; in uart_xec_configure()
434 cfg->data_bits = data->uart_config.data_bits; in uart_xec_config_get()
1101 .uart_config.data_bits = UART_CFG_DATA_BITS_8, \
Duart_mcux_flexcomm.c299 usart_data_len_t data_bits = kUSART_8BitsPerChar; in mcux_flexcomm_uart_configure() local
332 if (cfg->data_bits == UART_CFG_DATA_BITS_5 || in mcux_flexcomm_uart_configure()
333 cfg->data_bits == UART_CFG_DATA_BITS_6) { in mcux_flexcomm_uart_configure()
335 } else if (cfg->data_bits == UART_CFG_DATA_BITS_7) { in mcux_flexcomm_uart_configure()
336 data_bits = kUSART_7BitsPerChar; in mcux_flexcomm_uart_configure()
337 } else if (cfg->data_bits == UART_CFG_DATA_BITS_8) { in mcux_flexcomm_uart_configure()
338 data_bits = kUSART_8BitsPerChar; in mcux_flexcomm_uart_configure()
339 } else if (cfg->data_bits == UART_CFG_DATA_BITS_9) { in mcux_flexcomm_uart_configure()
344 usart_config.bitCountPerChar = data_bits; in mcux_flexcomm_uart_configure()
372 uart_config->data_bits = cfg->data_bits; in mcux_flexcomm_uart_configure()
[all …]
Duart_lpc11u6x.h147 uint8_t data_bits; member
185 uint8_t data_bits; member
Duart_rzt2m.c326 switch (data->uart_cfg.data_bits) { in rzt2m_uart_init()
335 data->uart_cfg.data_bits); in rzt2m_uart_init()
433 .data_bits = \
434 DT_INST_ENUM_IDX_OR(n, data_bits, UART_CFG_DATA_BITS_8), \
Duart_smartbond.c246 (cfg->data_bits != UART_CFG_DATA_BITS_5 && cfg->data_bits != UART_CFG_DATA_BITS_6 && in uart_smartbond_configure()
247 cfg->data_bits != UART_CFG_DATA_BITS_7 && cfg->data_bits != UART_CFG_DATA_BITS_8) || in uart_smartbond_configure()
289 switch (cfg->data_bits) { in uart_smartbond_configure()
797 .data_bits = UART_CFG_DATA_BITS_8, \
Duart_sam.c175 cfg->data_bits != UART_CFG_DATA_BITS_8 || in uart_sam_configure()
212 cfg->data_bits = UART_CFG_DATA_BITS_8; in uart_sam_config_get()
414 .data_bits = UART_CFG_DATA_BITS_8, in uart_sam_init()
Duart_stm32.c487 const uint32_t databits = uart_stm32_cfg2ll_databits(cfg->data_bits, in uart_stm32_parameters_set()
546 const uint32_t databits = uart_stm32_cfg2ll_databits(cfg->data_bits, in uart_stm32_configure()
557 (cfg->data_bits == UART_CFG_DATA_BITS_9)) { in uart_stm32_configure()
571 if (uart_stm32_ll2cfg_databits(databits, parity) != cfg->data_bits) { in uart_stm32_configure()
614 cfg->data_bits = uart_stm32_ll2cfg_databits( in uart_stm32_config_get()
2311 DT_INST_ENUM_IDX_OR(index, data_bits, \
2324 !(DT_INST_ENUM_IDX_OR(index, data_bits, \
2327 (DT_INST_ENUM_IDX_OR(index, data_bits, \
2338 !(DT_INST_ENUM_IDX_OR(index, data_bits, \
2341 DT_INST_ENUM_IDX_OR(index, data_bits, \
[all …]
Duart_esp32.c247 cfg->data_bits = UART_CFG_DATA_BITS_5; in uart_esp32_config_get()
250 cfg->data_bits = UART_CFG_DATA_BITS_6; in uart_esp32_config_get()
253 cfg->data_bits = UART_CFG_DATA_BITS_7; in uart_esp32_config_get()
256 cfg->data_bits = UART_CFG_DATA_BITS_8; in uart_esp32_config_get()
335 switch (cfg->data_bits) { in uart_esp32_configure()
1061 .data_bits = DT_INST_ENUM_IDX_OR(idx, data_bits, \
Duart_altera.c302 && (cfg_stored->data_bits == cfg_in->data_bits) in uart_altera_check_configuration()
967 .data_bits = DT_INST_ENUM_IDX_OR(n, data_bits, \
Duart_intel_lw.c339 && (cfg_stored->data_bits == cfg_in->data_bits) in uart_intel_lw_check_configuration()
1001 .data_bits = DT_INST_ENUM_IDX_OR(n, data_bits, \
Duart_ene_kb1200.c85 switch (cfg->data_bits) { in kb1200_uart_configure()
368 .data_bits = UART_CFG_DATA_BITS_8, \
/Zephyr-latest/subsys/debug/gdbstub/
Dgdbstub_backend_serial.c20 .data_bits = UART_CFG_DATA_BITS_8, in z_gdb_backend_init()
/Zephyr-latest/tests/drivers/uart/uart_basic_api/src/
Dtest_uart_config.c32 .data_bits = UART_CFG_DATA_BITS_8,
Dtest_uart_config_wide.c32 .data_bits = UART_CFG_DATA_BITS_9,
/Zephyr-latest/samples/drivers/uart/native_tty/src/
Dmain.c24 .data_bits = UART_CFG_DATA_BITS_8,

123