Lines Matching full:parity

222 					 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()
508 uart_stm32_set_parity(dev, parity); in uart_stm32_parameters_set()
544 const uint32_t parity = uart_stm32_cfg2ll_parity(cfg->parity); in uart_stm32_configure() local
547 cfg->parity); in uart_stm32_configure()
549 /* Hardware doesn't support mark or space parity */ in uart_stm32_configure()
550 if ((cfg->parity == UART_CFG_PARITY_MARK) || in uart_stm32_configure()
551 (cfg->parity == UART_CFG_PARITY_SPACE)) { in uart_stm32_configure()
555 /* Driver does not supports parity + 9 databits */ in uart_stm32_configure()
556 if ((cfg->parity != UART_CFG_PARITY_NONE) && in uart_stm32_configure()
571 if (uart_stm32_ll2cfg_databits(databits, parity) != cfg->data_bits) { in uart_stm32_configure()
589 /* Set basic parameters, such as data-/stop-bit, parity, and baudrate */ in uart_stm32_configure()
611 cfg->parity = uart_stm32_ll2cfg_parity(uart_stm32_get_parity(dev)); in uart_stm32_config_get()
1045 /* Enable parity error interruption */ in uart_stm32_irq_err_enable()
1062 /* Disable parity error interruption */ in uart_stm32_irq_err_disable()
2002 /* Set basic parameters, such as data-/stop-bit, parity, and baudrate */ in uart_stm32_registers_configure()
2296 /* Ensure DTS doesn't present an incompatible parity configuration.
2297 * Mark/space parity isn't supported on the STM32 family.
2298 * If 9 data bits are configured, ensure that a parity bit isn't set.
2302 !(DT_INST_ENUM_IDX_OR(index, parity, STM32_UART_DEFAULT_PARITY) \
2304 DT_INST_ENUM_IDX_OR(index, parity, STM32_UART_DEFAULT_PARITY) \
2307 " has unsupported parity configuration"); \
2309 !(DT_INST_ENUM_IDX_OR(index, parity, STM32_UART_DEFAULT_PARITY) \
2315 " has unsupported parity + data bits combination");
2318 * The STM32 family doesn't support 5 data bits, or 6 data bits without parity.
2330 DT_INST_ENUM_IDX_OR(index, parity, \
2347 DT_INST_ENUM_IDX_OR(index, parity, \
2413 .parity = DT_INST_ENUM_IDX_OR(index, parity, \