Home
last modified time | relevance | path

Searched refs:parity (Results 1 – 25 of 135) sorted by relevance

123456

/Zephyr-latest/drivers/serial/
Duart_cdns.h101 #define CDNS_PARTITY_MAP(parity) \ argument
102 (parity == UART_CFG_PARITY_NONE) ? NO_PARITY_VAL \
103 : (parity == UART_CFG_PARITY_ODD) ? ODD_PARITY_VAL \
104 : (parity == UART_CFG_PARITY_MARK) ? MARK_PARITY_VAL \
105 : (parity == UART_CFG_PARITY_SPACE) ? SPACE_PARITY_VAL \
134 uint8_t parity; member
Duart_numicro.c82 static inline uint32_t uart_numicro_convert_parity(enum uart_config_parity parity) in uart_numicro_convert_parity() argument
84 switch (parity) { in uart_numicro_convert_parity()
106 uint32_t parity; in uart_numicro_configure() local
126 parity = uart_numicro_convert_parity(cfg->parity); in uart_numicro_configure()
128 UART_SetLineConfig(config->uart, cfg->baudrate, databits, parity, in uart_numicro_configure()
Duart_si32_usart.c22 uint8_t parity; member
251 enum SI32_USART_A_PARITY_Enum parity = SI32_USART_A_PARITY_ODD; in usart_si32_init() local
263 switch (config->parity) { in usart_si32_init()
268 parity = SI32_USART_A_PARITY_ODD; in usart_si32_init()
272 parity = SI32_USART_A_PARITY_EVEN; in usart_si32_init()
276 parity = SI32_USART_A_PARITY_SET; in usart_si32_init()
280 parity = SI32_USART_A_PARITY_CLEAR; in usart_si32_init()
312 SI32_USART_A_select_tx_parity(config->usart, parity); in usart_si32_init()
329 SI32_USART_A_select_rx_parity(config->usart, parity); in usart_si32_init()
381 .parity = DT_INST_ENUM_IDX_OR(index, parity, UART_CFG_PARITY_NONE), \
Dusart_gd32.c29 uint32_t parity; member
59 uint32_t parity; in usart_gd32_init() local
71 switch (cfg->parity) { in usart_gd32_init()
73 parity = USART_PM_NONE; in usart_gd32_init()
77 parity = USART_PM_ODD; in usart_gd32_init()
81 parity = USART_PM_EVEN; in usart_gd32_init()
94 usart_parity_config(cfg->reg, parity); in usart_gd32_init()
338 .parity = DT_INST_ENUM_IDX_OR(n, parity, UART_CFG_PARITY_NONE), \
Duart_b91.c202 uint8_t bwpc, uint8_t parity, uint8_t stop_bit) in uart_b91_init() argument
210 if (parity) { in uart_b91_init()
214 if (parity == UART_PARITY_EVEN) { in uart_b91_init()
217 } else if (parity == UART_PARITY_ODD) { in uart_b91_init()
252 uint8_t parity; in uart_b91_configure() local
258 if (cfg->parity == UART_CFG_PARITY_NONE) { in uart_b91_configure()
259 parity = UART_PARITY_NONE; in uart_b91_configure()
260 } else if (cfg->parity == UART_CFG_PARITY_ODD) { in uart_b91_configure()
261 parity = UART_PARITY_ODD; in uart_b91_configure()
262 } else if (cfg->parity == UART_CFG_PARITY_EVEN) { in uart_b91_configure()
[all …]
Duart_wch_usart.c20 uint8_t parity; member
46 switch (config->parity) { in usart_wch_init()
131 .parity = DT_INST_ENUM_IDX_OR(idx, parity, UART_CFG_PARITY_NONE), \
Duart_renesas_rz_scif.c108 switch (uart_config->parity) { in uart_rz_scif_apply_config()
110 fsp_cfg->parity = UART_PARITY_OFF; in uart_rz_scif_apply_config()
113 fsp_cfg->parity = UART_PARITY_ODD; in uart_rz_scif_apply_config()
116 fsp_cfg->parity = UART_PARITY_EVEN; in uart_rz_scif_apply_config()
282 .parity = DT_INST_ENUM_IDX_OR(n, parity, UART_CFG_PARITY_NONE), \
Duart_max32.c99 if (data->conf.parity != uart_cfg->parity) { in api_configure()
102 switch (uart_cfg->parity) { in api_configure()
135 data->conf.parity = uart_cfg->parity; in api_configure()
442 .uart_conf.parity = DT_INST_ENUM_IDX_OR(_num, parity, UART_CFG_PARITY_NONE), \
Duart_ifx_cat1.c55 .parity = CY_SCB_UART_PARITY_NONE,
85 static cyhal_uart_parity_t _convert_uart_parity_z_to_cyhal(enum uart_config_parity parity) in _convert_uart_parity_z_to_cyhal() argument
89 switch (parity) { in _convert_uart_parity_z_to_cyhal()
216 .parity = _convert_uart_parity_z_to_cyhal(cfg->parity) in ifx_cat1_uart_configure()
519 .dt_cfg.parity = DT_INST_ENUM_IDX_OR(n, parity, UART_CFG_PARITY_NONE), \
Duart_native_tty.c79 switch (cfg->parity) { in native_tty_conv_to_bottom_cfg()
81 bottom_cfg->parity = NTB_PARITY_NONE; in native_tty_conv_to_bottom_cfg()
84 bottom_cfg->parity = NTB_PARITY_ODD; in native_tty_conv_to_bottom_cfg()
87 bottom_cfg->parity = NTB_PARITY_EVEN; in native_tty_conv_to_bottom_cfg()
397 .parity = UART_CFG_PARITY_NONE, \
Duart_native_tty_bottom.c100 enum native_tty_bottom_parity parity) in native_tty_baud_parity_set() argument
102 switch (parity) { in native_tty_baud_parity_set()
212 native_tty_baud_parity_set(&ter, cfg->parity); in native_tty_configure_bottom()
Duart_native_tty_bottom.h47 enum native_tty_bottom_parity parity; member
Duart_numaker.c125 static inline uint32_t uart_numaker_convert_parity(enum uart_config_parity parity) in uart_numaker_convert_parity() argument
127 switch (parity) { in uart_numaker_convert_parity()
148 uint32_t parity; in uart_numaker_configure() local
168 parity = uart_numaker_convert_parity(cfg->parity); in uart_numaker_configure()
170 UART_SetLineConfig(config->uart, cfg->baudrate, databits, parity, stopbits); in uart_numaker_configure()
Duart_lpc11u6x.c113 switch (cfg->parity) { in lpc11u6x_uart0_configure()
177 data->parity = cfg->parity; in lpc11u6x_uart0_configure()
188 cfg->parity = data->parity; in lpc11u6x_uart0_config_get()
363 data->parity = UART_CFG_PARITY_NONE; in lpc11u6x_uart0_init()
521 switch (cfg->parity) { in lpc11u6x_uartx_configure()
593 data->parity = cfg->parity; in lpc11u6x_uartx_configure()
607 cfg->parity = data->parity; in lpc11u6x_uartx_config_get()
796 data->parity = UART_CFG_PARITY_NONE; in lpc11u6x_uartx_init()
Duart_stm32.c222 uint32_t parity) in uart_stm32_set_parity() argument
226 LL_USART_SetParity(config->usart, parity); in uart_stm32_set_parity()
302 static inline uint32_t uart_stm32_cfg2ll_parity(enum uart_config_parity parity) in uart_stm32_cfg2ll_parity() argument
304 switch (parity) { in uart_stm32_cfg2ll_parity()
315 static inline enum uart_config_parity uart_stm32_ll2cfg_parity(uint32_t parity) in uart_stm32_ll2cfg_parity() argument
317 switch (parity) { in uart_stm32_ll2cfg_parity()
485 const uint32_t parity = uart_stm32_cfg2ll_parity(cfg->parity); in uart_stm32_parameters_set() local
488 cfg->parity); in uart_stm32_parameters_set()
501 parity, in uart_stm32_parameters_set()
507 if (parity != uart_stm32_get_parity(dev)) { in uart_stm32_parameters_set()
[all …]
Duart_sam.c126 static uint32_t uart_sam_cfg2sam_parity(uint8_t parity) in uart_sam_cfg2sam_parity() argument
128 switch (parity) { in uart_sam_cfg2sam_parity()
189 | uart_sam_cfg2sam_parity(cfg->parity); in uart_sam_configure()
209 cfg->parity = uart_sam_get_parity(dev); in uart_sam_config_get()
412 .parity = UART_CFG_PARITY_NONE, in uart_sam_init()
Duart_sy1xx.c42 sy1xx_uart_parity_t parity; member
85 volatile uint32_t setup = 0x0306 | uart_cfg->parity; in sy1xx_uart_configure()
287 .parity = DRIVERS_UART_PAR_NONE, in sy1xx_uart_init()
/Zephyr-latest/tests/drivers/uart/uart_elementary/src/
Dmain.c141 .parity = UART_CFG_PARITY_NONE, in ZTEST()
156 zassert_equal(test_uart_config.parity, test_expected_uart_config.parity, in ZTEST()
158 test_uart_config.parity, test_expected_uart_config.parity); in ZTEST()
182 .parity = 7, in ZTEST()
202 .parity = UART_CFG_PARITY_ODD, in ZTEST()
239 .parity = UART_CFG_PARITY_EVEN, in ZTEST()
246 .parity = UART_CFG_PARITY_EVEN, in ZTEST()
/Zephyr-latest/tests/drivers/uart/uart_errors/
DREADME.txt3 certain bytes with parity enabled when receiver is configured without parity.
/Zephyr-latest/tests/subsys/modbus/src/
Dtest_modbus_server.c180 .parity = UART_CFG_PARITY_ODD,
204 server_param.serial.parity = UART_CFG_PARITY_ODD; in test_server_setup_low_odd()
221 server_param.serial.parity = UART_CFG_PARITY_NONE; in test_server_setup_low_none()
238 server_param.serial.parity = UART_CFG_PARITY_EVEN; in test_server_setup_high_even()
255 server_param.serial.parity = UART_CFG_PARITY_EVEN; in test_server_setup_ascii()
Dtest_modbus_client.c218 .parity = UART_CFG_PARITY_ODD,
243 client_param.serial.parity = UART_CFG_PARITY_NONE; in test_client_setup_low_none()
257 client_param.serial.parity = UART_CFG_PARITY_ODD; in test_client_setup_low_odd()
271 client_param.serial.parity = UART_CFG_PARITY_EVEN; in test_client_setup_high_even()
285 client_param.serial.parity = UART_CFG_PARITY_EVEN; in test_client_setup_ascii()
/Zephyr-latest/tests/drivers/build_all/uart/boards/
Dqemu_cortex_m3.overlay16 parity = "none";
/Zephyr-latest/subsys/debug/gdbstub/
Dgdbstub_backend_serial.c18 .parity = UART_CFG_PARITY_NONE, in z_gdb_backend_init()
/Zephyr-latest/drivers/mfd/
Dmfd_tle9104.c132 int parity = 1 + POPCOUNT(value); in tle9104_calculate_parity() local
135 parity--; in tle9104_calculate_parity()
138 return parity % 2; in tle9104_calculate_parity()
143 int parity = tle9104_calculate_parity(*value); in tle9104_apply_parity() local
145 WRITE_BIT(*value, TLE9104_FRAME_PARITY_POS, parity); in tle9104_apply_parity()
150 int parity = tle9104_calculate_parity(value); in tle9104_check_parity() local
152 return ((value & BIT(TLE9104_FRAME_PARITY_POS)) >> TLE9104_FRAME_PARITY_POS) == parity; in tle9104_check_parity()
/Zephyr-latest/subsys/bluetooth/host/classic/
Drfcomm_internal.h121 #define BT_RFCOMM_SET_LINE_SETTINGS(data, stop, parity) ((data & 0x3) | \ argument
123 ((parity & 0x7) << 3))

123456