Home
last modified time | relevance | path

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

/dports/devel/libftdi1/libftdi1-1.5/test/
H A Dbaudrate.cpp54 int actual_baudrate; member
60 : actual_baudrate(actual) in calc_result()
68 : actual_baudrate(0) in calc_result()
112 …BOOST_CHECK_MESSAGE(res->actual_baudrate == calc_baudrate && res->divisor == divisor && res->fract… in test_baudrates()
116 BOOST_CHECK_EQUAL(res->actual_baudrate, calc_baudrate); in test_baudrates()
/dports/lang/micropython/micropython-1.17/ports/stm32/
H A Dmachine_uart.c273 uint32_t actual_baudrate = uart_get_baudrate(self); in pyb_uart_init_helper() local
277 if (actual_baudrate > baudrate) { in pyb_uart_init_helper()
278 baudrate_diff = actual_baudrate - baudrate; in pyb_uart_init_helper()
280 baudrate_diff = baudrate - actual_baudrate; in pyb_uart_init_helper()
282 if (20 * baudrate_diff > actual_baudrate) { in pyb_uart_init_helper()
283 …_ValueError, MP_ERROR_TEXT("set baudrate %d is not within 5%% of desired value"), actual_baudrate); in pyb_uart_init_helper()
/dports/devel/libftdi/libftdi-0.20/src/
H A Dftdi.c1106 int actual_baudrate; in ftdi_set_baudrate() local
1116 actual_baudrate = ftdi_convert_baudrate(baudrate, ftdi, &value, &index); in ftdi_set_baudrate()
1117 if (actual_baudrate <= 0) in ftdi_set_baudrate()
1121 if ((actual_baudrate * 2 < baudrate /* Catch overflows */ ) in ftdi_set_baudrate()
1122 || ((actual_baudrate < baudrate) in ftdi_set_baudrate()
1123 ? (actual_baudrate * 21 < baudrate * 20) in ftdi_set_baudrate()
1124 : (baudrate * 21 < actual_baudrate * 20))) in ftdi_set_baudrate()
/dports/devel/libftdi1/libftdi1-1.5/src/
H A Dftdi.c1454 int actual_baudrate; in ftdi_set_baudrate() local
1464 actual_baudrate = ftdi_convert_baudrate(baudrate, ftdi, &value, &index); in ftdi_set_baudrate()
1465 if (actual_baudrate <= 0) in ftdi_set_baudrate()
1469 if ((actual_baudrate * 2 < baudrate /* Catch overflows */ ) in ftdi_set_baudrate()
1470 || ((actual_baudrate < baudrate) in ftdi_set_baudrate()
1471 ? (actual_baudrate * 21 < baudrate * 20) in ftdi_set_baudrate()
1472 : (baudrate * 21 < actual_baudrate * 20))) in ftdi_set_baudrate()