Home
last modified time | relevance | path

Searched refs:c_cflag (Results 1 – 4 of 4) sorted by relevance

/hal_espressif-3.6.0/components/vfs/test/
Dtest_vfs_uart.c267 tios.c_cflag &= (~CSIZE);
268 tios.c_cflag &= (~CSTOPB);
269 tios.c_cflag &= (~PARENB);
270 tios.c_cflag |= CS6;
272 tios.c_cflag &= (~CSIZE);
274 TEST_ASSERT_EQUAL(CS6, tios_result.c_cflag & CS6);
277 TEST_ASSERT_EQUAL(0, tios_result.c_cflag & CSTOPB);
289 tios.c_cflag |= CSTOPB;
290 tios.c_cflag |= (PARENB | PARODD);
292 tios.c_cflag &= (~(CSTOPB | PARENB | PARODD));
[all …]
/hal_espressif-3.6.0/components/vfs/
Dvfs_uart.c560 const tcflag_t csize_bits = p->c_cflag & CSIZE; in uart_tcsetattr()
586 …if (uart_set_stop_bits(fd, (p->c_cflag & CSTOPB) ? UART_STOP_BITS_2 : UART_STOP_BITS_1) != ESP_OK)… in uart_tcsetattr()
591 if (uart_set_parity(fd, (p->c_cflag & PARENB) ? in uart_tcsetattr()
592 ((p->c_cflag & PARODD) ? UART_PARITY_ODD : UART_PARITY_EVEN) in uart_tcsetattr()
599 if (p->c_cflag & (CBAUD | CBAUDEX)) { in uart_tcsetattr()
605 if (p->c_cflag & BOTHER) { in uart_tcsetattr()
746 p->c_cflag &= (~CSIZE); in uart_tcgetattr()
750 p->c_cflag |= CS5; in uart_tcgetattr()
753 p->c_cflag |= CS6; in uart_tcgetattr()
756 p->c_cflag |= CS7; in uart_tcgetattr()
[all …]
Dvfs_usb_serial_jtag.c326 p->c_cflag &= (~CSIZE); in usb_serial_jtag_tcgetattr()
327 p->c_cflag |= CS8; in usb_serial_jtag_tcgetattr()
/hal_espressif-3.6.0/components/newlib/platform_include/sys/
Dtermios.h179 tcflag_t c_cflag; /** Control modes */ member