| /Zephyr-4.3.0/dts/bindings/serial/ |
| D | uart-controller.yaml | 17 parity: 20 Configures the parity of the adapter. Enumeration id 0 for none, 1 for odd 21 and 2 for even parity, 3 for mark parity and 4 for space parity.
|
| /Zephyr-4.3.0/tests/drivers/uart/uart_errors/ |
| D | README.txt | 3 certain bytes with parity enabled when receiver is configured without parity.
|
| /Zephyr-4.3.0/drivers/serial/ |
| D | uart_native_tty_bottom.c | 120 * @brief Set parity setting in the termios structure 123 * @param parity 126 enum native_tty_bottom_parity parity) in native_tty_baud_parity_set() argument 128 switch (parity) { in native_tty_baud_parity_set() 141 /* Parity options mark and space are not supported on this driver. */ in native_tty_baud_parity_set() 142 ERROR("Could not set parity.\n"); in native_tty_baud_parity_set() 147 * @brief Get the parity setting from the termios structure 150 * @param parity 153 enum native_tty_bottom_parity *parity) in native_tty_baud_parity_get() argument 156 *parity = NTB_PARITY_NONE; in native_tty_baud_parity_get() [all …]
|
| D | uart_b91.c | 30 /* Parity type */ 202 uint8_t bwpc, uint8_t parity, uint8_t stop_bit) in uart_b91_init() argument 209 /* config parity */ in uart_b91_init() 210 if (parity) { in uart_b91_init() 211 /* enable parity function */ in uart_b91_init() 214 if (parity == UART_PARITY_EVEN) { in uart_b91_init() 215 /* enable even parity */ in uart_b91_init() 217 } else if (parity == UART_PARITY_ODD) { in uart_b91_init() 218 /* enable odd parity */ in uart_b91_init() 222 uart->ctrl1 &= (~FLD_UART_PARITY_ENABLE); /* disable parity function */ in uart_b91_init() [all …]
|
| D | uart_bitbang.c | 54 /* Tx parity */ 66 /* Rx parity */ 109 int parity = 0, index; in uart_bitbang_compute_parity() local 111 if (config->uart_cfg->parity != UART_CFG_PARITY_NONE) { in uart_bitbang_compute_parity() 116 parity += d; in uart_bitbang_compute_parity() 118 if (config->uart_cfg->parity == UART_CFG_PARITY_ODD) { in uart_bitbang_compute_parity() 119 parity = (parity % 2) ? 0 : 1; in uart_bitbang_compute_parity() 120 } else if (config->uart_cfg->parity == UART_CFG_PARITY_EVEN) { in uart_bitbang_compute_parity() 121 parity = (parity % 2) ? 1 : 0; in uart_bitbang_compute_parity() 122 } else if (config->uart_cfg->parity == UART_CFG_PARITY_MARK) { in uart_bitbang_compute_parity() [all …]
|
| D | uart_numicro.c | 82 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()
|
| D | usart_gd32.c | 29 uint32_t parity; member 59 uint32_t parity; in usart_gd32_init() local 69 * append word length to 9BIT if parity bit enabled. in usart_gd32_init() 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(n, parity), \
|
| D | uart_si32_usart.c | 22 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(index, parity), \
|
| D | uart_cdns.h | 101 #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
|
| D | uart_xlnx_ps.c | 88 #define XUARTPS_MR_PARITY_NONE 0x00000020U /**< No parity mode */ 89 #define XUARTPS_MR_PARITY_MARK 0x00000018U /**< Mark parity mode */ 90 #define XUARTPS_MR_PARITY_SPACE 0x00000010U /**< Space parity mode */ 91 #define XUARTPS_MR_PARITY_ODD 0x00000008U /**< Odd parity mode */ 92 #define XUARTPS_MR_PARITY_EVEN 0x00000000U /**< Even parity mode */ 93 #define XUARTPS_MR_PARITY_SHIFT 3U /**< Parity setting shift */ 94 #define XUARTPS_MR_PARITY_MASK 0x00000038U /**< Parity mask */ 109 #define XUARTPS_IXR_PARITY 0x00000080U /**< Parity error interrupt */ 154 uint32_t parity; member 325 /* Set initial character length / start/stop bit / parity configuration */ in uart_xlnx_ps_init() [all …]
|
| D | uart_pl011_registers.h | 67 #define PL011_RSR_ECR_PE BIT(1) /* parity error */ 76 #define PL011_LCRH_PEN BIT(1) /* enable parity */ 77 #define PL011_LCRH_EPS BIT(2) /* select even parity */ 82 #define PL011_LCRH_SPS BIT(7) /* stick parity bit */ 134 #define PL011_IMSC_PEIM BIT(8) /* parity error interrupt mask */
|
| D | uart_gecko.c | 427 static inline USART_Parity_TypeDef uart_gecko_cfg2ll_parity(enum uart_config_parity parity) in uart_gecko_cfg2ll_parity() argument 429 switch (parity) { in uart_gecko_cfg2ll_parity() 440 static inline enum uart_config_parity uart_gecko_ll2cfg_parity(USART_Parity_TypeDef parity) in uart_gecko_ll2cfg_parity() argument 442 switch (parity) { in uart_gecko_ll2cfg_parity() 579 if (uart_cfg->parity != cfg->parity) { in uart_gecko_configure() 614 cfg->parity = uart_cfg->parity; in uart_gecko_config_get() 646 usartInit.parity = uart_gecko_cfg2ll_parity(uart_cfg->parity); in uart_gecko_init() 648 usartInit.databits = uart_gecko_cfg2ll_databits(uart_cfg->data_bits, uart_cfg->parity); in uart_gecko_init() 842 .parity = DT_INST_ENUM_IDX(idx, parity), \ 909 .parity = DT_INST_ENUM_IDX(idx, parity), \ [all …]
|
| D | lpuart_esp32.c | 37 uint8_t parity; member 114 uart_hal_set_parity(&data->hal, cfg->parity); in lp_uart_esp32_param_config() 187 .parity = DT_ENUM_IDX(DT_NODELABEL(lp_uart), parity),
|
| D | uart_native_tty.c | 82 switch (cfg->parity) { in native_tty_conv_to_bottom_cfg() 84 bottom_cfg->parity = NTB_PARITY_NONE; in native_tty_conv_to_bottom_cfg() 87 bottom_cfg->parity = NTB_PARITY_ODD; in native_tty_conv_to_bottom_cfg() 90 bottom_cfg->parity = NTB_PARITY_EVEN; in native_tty_conv_to_bottom_cfg() 154 switch (bottom_cfg.parity) { in native_tty_conv_from_bottom_cfg() 156 cfg->parity = UART_CFG_PARITY_NONE; in native_tty_conv_from_bottom_cfg() 159 cfg->parity = UART_CFG_PARITY_ODD; in native_tty_conv_from_bottom_cfg() 162 cfg->parity = UART_CFG_PARITY_EVEN; in native_tty_conv_from_bottom_cfg() 484 .parity = UART_CFG_PARITY_NONE, \
|
| /Zephyr-4.3.0/tests/drivers/uart/uart_elementary/src/ |
| D | main.c | 141 .parity = UART_CFG_PARITY_NONE, in ZTEST() 156 zassert_equal(test_uart_config.parity, test_expected_uart_config.parity, in ZTEST() 157 "Set and actual UART config parity mismatch: %d != %d", 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-4.3.0/drivers/edac/ |
| D | shell.c | 28 * edac info Show EDAC ECC / Parity error info 30 * edac info parity_error [show|clear] Show Parity Errors 93 shell_error(sh, "Error getting parity error log (err %d)", err); in parity_error_show() 97 shell_fprintf(sh, SHELL_NORMAL, "Parity Error: 0x%llx\n", error); in parity_error_show() 382 shell_error(sh, "Error clear parity error log (err %d)", in cmd_parity_error_clear() 387 shell_fprintf(sh, SHELL_NORMAL, "Parity Error Log cleared\n"); in cmd_parity_error_clear() 393 SHELL_CMD(show, NULL, "Show Parity errors", cmd_parity_error_show), 394 SHELL_CMD(clear, NULL, "Clear Parity errors", cmd_parity_error_clear), 403 "Parity Error Show / Clear commands", cmd_parity_error_show),
|
| /Zephyr-4.3.0/include/zephyr/bluetooth/classic/ |
| D | rfcomm.h | 182 /** @brief RFCOMM RPN parity bit values */ 191 /** @brief Combine data bits, stop bits and parity into a single line settings byte 195 * @param parity Parity value (0-7) 199 #define BT_RFCOMM_SET_LINE_SETTINGS(data, stop, parity) ((data & 0x3) | \ argument 201 ((parity & 0x7) << 3))
|
| /Zephyr-4.3.0/tests/subsys/modbus/src/ |
| D | test_modbus_server.c | 180 .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()
|
| /Zephyr-4.3.0/tests/drivers/build_all/uart/boards/ |
| D | qemu_cortex_m3.overlay | 16 parity = "none";
|
| /Zephyr-4.3.0/tests/drivers/uart/uart_async_api/boards/ |
| D | max32655evkit_max32655_m4.overlay | 17 parity = "none";
|
| D | max32655fthr_max32655_m4.overlay | 17 parity = "none";
|
| D | max32666evkit_max32666_cpu0.overlay | 17 parity = "none";
|
| D | max32666fthr_max32666_cpu0.overlay | 17 parity = "none";
|
| D | max32670evkit.overlay | 17 parity = "none";
|
| D | max32690evkit_max32690_m4.overlay | 17 parity = "none";
|