Home
last modified time | relevance | path

Searched refs:GetUartSpeed (Results 1 - 6 of 6) sorted by relevance

/developtools/hdc/hdc_rust/src/cffi/
H A Duart.h93 int GetUartSpeed(int speed);
H A Duart_wrapper.cpp24 return static_cast<int32_t>(GetUartSpeed(static_cast<int>(speed))); in GetUartSpeedExt()
H A Duart.cpp318 int GetUartSpeed(int speed) { function
413 newttys1.c_cflag = GetUartSpeed(nSpeed);
/developtools/hdc/test/unittest/common/
H A Duart_test.cpp638 * @tc.name: GetUartSpeed
639 * @tc.desc: Check the behavior of the GetUartSpeed function
643 HWTEST_F(HdcUARTBaseTest, GetUartSpeed, TestSize.Level1) in HWTEST_F()
645 EXPECT_EQ(mockUARTBase.GetUartSpeed(UART_SPEED2400), B2400); in HWTEST_F()
646 EXPECT_EQ(mockUARTBase.GetUartSpeed(UART_SPEED4800), B4800); in HWTEST_F()
647 EXPECT_EQ(mockUARTBase.GetUartSpeed(UART_SPEED9600), B9600); in HWTEST_F()
648 EXPECT_EQ(mockUARTBase.GetUartSpeed(UART_SPEED115200), B115200); in HWTEST_F()
649 EXPECT_EQ(mockUARTBase.GetUartSpeed(UART_SPEED921600), B921600); in HWTEST_F()
650 EXPECT_EQ(mockUARTBase.GetUartSpeed(-1), B921600); in HWTEST_F()
655 * @tc.desc: Check the behavior of the GetUartSpeed functio
[all...]
/developtools/hdc/src/common/
H A Duart.h202 int GetUartSpeed(int speed);
H A Duart.cpp96 int HdcUARTBase::GetUartSpeed(int speed) in GetUartSpeed() function in Hdc::HdcUARTBase
187 newttys1.c_cflag = GetUartSpeed(nSpeed); in SetSerial()

Completed in 5 milliseconds