Home
last modified time | relevance | path

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

123

/Zephyr-Core-2.7.6/drivers/serial/
Duart_numicro.c87 static inline uint32_t uart_numicro_convert_parity(enum uart_config_parity parity) in uart_numicro_convert_parity() argument
89 switch (parity) { in uart_numicro_convert_parity()
110 uint32_t parity; in uart_numicro_configure() local
130 parity = uart_numicro_convert_parity(cfg->parity); in uart_numicro_configure()
133 parity, stopbits); in uart_numicro_configure()
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()
250 uint8_t parity; in uart_b91_configure() local
256 if (cfg->parity == UART_CFG_PARITY_NONE) { in uart_b91_configure()
257 parity = UART_PARITY_NONE; in uart_b91_configure()
258 } else if (cfg->parity == UART_CFG_PARITY_ODD) { in uart_b91_configure()
259 parity = UART_PARITY_ODD; in uart_b91_configure()
260 } else if (cfg->parity == UART_CFG_PARITY_EVEN) { in uart_b91_configure()
[all …]
Duart_stm32.c180 uint32_t parity) in uart_stm32_set_parity() argument
184 LL_USART_SetParity(UartInstance, parity); in uart_stm32_set_parity()
239 static inline uint32_t uart_stm32_cfg2ll_parity(enum uart_config_parity parity) in uart_stm32_cfg2ll_parity() argument
241 switch (parity) { in uart_stm32_cfg2ll_parity()
252 static inline enum uart_config_parity uart_stm32_ll2cfg_parity(uint32_t parity) in uart_stm32_ll2cfg_parity() argument
254 switch (parity) { in uart_stm32_ll2cfg_parity()
406 const uint32_t parity = uart_stm32_cfg2ll_parity(cfg->parity); in uart_stm32_configure() local
409 cfg->parity); in uart_stm32_configure()
413 if ((cfg->parity == UART_CFG_PARITY_MARK) || in uart_stm32_configure()
414 (cfg->parity == UART_CFG_PARITY_SPACE)) { in uart_stm32_configure()
[all …]
Duart_mcux_flexcomm.c30 uint8_t parity; member
260 if (config->parity == UART_CFG_PARITY_ODD) { in mcux_flexcomm_init()
262 } else if (config->parity == UART_CFG_PARITY_EVEN) { in mcux_flexcomm_init()
335 .parity = DT_ENUM_IDX_OR(DT_DRV_INST(n), parity, UART_CFG_PARITY_NONE), \
Duart_lpc11u6x.c117 switch (cfg->parity) { in lpc11u6x_uart0_configure()
185 data->parity = cfg->parity; in lpc11u6x_uart0_configure()
196 cfg->parity = data->parity; in lpc11u6x_uart0_config_get()
380 data->parity = UART_CFG_PARITY_NONE; in lpc11u6x_uart0_init()
539 switch (cfg->parity) { in lpc11u6x_uartx_configure()
609 data->parity = cfg->parity; in lpc11u6x_uartx_configure()
623 cfg->parity = data->parity; in lpc11u6x_uartx_config_get()
825 data->parity = UART_CFG_PARITY_NONE; in lpc11u6x_uartx_init()
Duart_apbuart.c240 switch (cfg->parity) { in apbuart_configure()
285 cfg->parity = UART_CFG_PARITY_NONE; in apbuart_config_get()
288 cfg->parity = UART_CFG_PARITY_ODD; in apbuart_config_get()
290 cfg->parity = UART_CFG_PARITY_EVEN; in apbuart_config_get()
Duart_mchp_xec.c298 switch (cfg->parity) { in uart_xec_configure()
300 uart_cfg.parity = LCR_PDIS; in uart_xec_configure()
303 uart_cfg.parity = LCR_EPS; in uart_xec_configure()
313 regs->LCR = uart_cfg.data_bits | uart_cfg.stop_bits | uart_cfg.parity; in uart_xec_configure()
347 cfg->parity = data->uart_config.parity; in uart_xec_config_get()
888 .uart_config.parity = UART_CFG_PARITY_NONE, \
Duart_lpc11u6x.h145 uint8_t parity; member
186 uint8_t parity; member
DKconfig.nrfx62 bool "Enable parity bit"
64 Enable parity bit.
141 bool "Enable parity bit"
143 Enable parity bit.
218 bool "Enable parity bit"
220 Enable parity bit.
294 bool "Enable parity bit"
296 Enable parity bit.
Duart_stm32.h25 int parity; member
Duart_ns16550.c428 switch (cfg->parity) { in uart_ns16550_configure()
430 uart_cfg.parity = LCR_PDIS; in uart_ns16550_configure()
433 uart_cfg.parity = LCR_EPS; in uart_ns16550_configure()
444 uart_cfg.data_bits | uart_cfg.stop_bits | uart_cfg.parity); in uart_ns16550_configure()
485 cfg->parity = data->uart_config.parity; in uart_ns16550_config_get()
1085 .uart_config.parity = UART_CFG_PARITY_NONE, \
Duart_esp32.c177 cfg->parity = UART_GET_PARITY(DEV_BASE(dev)->conf0); in uart_esp32_config_get()
179 cfg->parity = UART_CFG_PARITY_NONE; in uart_esp32_config_get()
267 switch (cfg->parity) { in uart_esp32_configure()
507 .parity = UART_CFG_PARITY_NONE, \
Duart_xlnx_ps.c142 uint32_t parity; member
409 enum uart_config_parity parity) in uart_xlnx_ps_cfg2ll_parity() argument
421 switch (parity) { in uart_xlnx_ps_cfg2ll_parity()
620 if ((!uart_xlnx_ps_cfg2ll_parity(&mode_reg, cfg->parity)) || in uart_xlnx_ps_configure()
823 cfg->parity = uart_xlnx_ps_ll2cfg_parity(mode_reg); in uart_xlnx_ps_config_get()
Duart_nrfx_uart.c364 switch (cfg->parity) { in uart_nrfx_configure()
366 uart_cfg.parity = NRF_UART_PARITY_EXCLUDED; in uart_nrfx_configure()
369 uart_cfg.parity = NRF_UART_PARITY_INCLUDED; in uart_nrfx_configure()
373 uart_cfg.parity = NRF_UART_PARITY_INCLUDED; in uart_nrfx_configure()
1175 .parity = UART_CFG_PARITY_EVEN,
1177 .parity = UART_CFG_PARITY_NONE,
Duart_mcux.c81 switch (cfg->parity) { in uart_mcux_configure()
403 .parity = UART_CFG_PARITY_NONE, \
/Zephyr-Core-2.7.6/tests/subsys/modbus/src/
Dtest_modbus_server.c182 .parity = UART_CFG_PARITY_ODD,
195 server_param.serial.parity = UART_CFG_PARITY_ODD; in test_server_setup_low_odd()
214 server_param.serial.parity = UART_CFG_PARITY_NONE; in test_server_setup_low_none()
233 server_param.serial.parity = UART_CFG_PARITY_EVEN; in test_server_setup_high_even()
252 server_param.serial.parity = UART_CFG_PARITY_EVEN; in test_server_setup_ascii()
Dtest_modbus_client.c210 .parity = UART_CFG_PARITY_ODD,
223 client_param.serial.parity = UART_CFG_PARITY_NONE; in test_client_setup_low_none()
238 client_param.serial.parity = UART_CFG_PARITY_ODD; in test_client_setup_low_odd()
253 client_param.serial.parity = UART_CFG_PARITY_EVEN; in test_client_setup_high_even()
268 client_param.serial.parity = UART_CFG_PARITY_EVEN; in test_client_setup_ascii()
/Zephyr-Core-2.7.6/subsys/debug/gdbstub/
Dgdbstub_backend_serial.c18 .parity = UART_CFG_PARITY_NONE, in z_gdb_backend_init()
/Zephyr-Core-2.7.6/subsys/bluetooth/host/
Drfcomm_internal.h116 #define BT_RFCOMM_SET_LINE_SETTINGS(data, stop, parity) ((data & 0x3) | \ argument
118 ((parity & 0x7) << 3))
/Zephyr-Core-2.7.6/subsys/modbus/
Dmodbus_serial.c566 switch (param.serial.parity) { in modbus_serial_init()
569 uart_cfg.parity = param.serial.parity; in modbus_serial_init()
574 uart_cfg.parity = param.serial.parity; in modbus_serial_init()
/Zephyr-Core-2.7.6/tests/drivers/uart/uart_basic_api/src/
Dtest_uart_config.c31 .parity = UART_CFG_PARITY_NONE,
/Zephyr-Core-2.7.6/samples/subsys/modbus/rtu_client/src/
Dmain.c22 .parity = UART_CFG_PARITY_NONE,
/Zephyr-Core-2.7.6/samples/subsys/modbus/rtu_server/src/
Dmain.c106 .parity = UART_CFG_PARITY_NONE,
/Zephyr-Core-2.7.6/samples/subsys/modbus/tcp_gateway/src/
Dmain.c26 .parity = UART_CFG_PARITY_NONE,
/Zephyr-Core-2.7.6/include/modbus/
Dmodbus.h408 enum uart_config_parity parity; member

123