Home
last modified time | relevance | path

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

/developtools/hdc/hdc_rust/src/cffi/
Duart_wrapper.cpp24 return static_cast<int32_t>(GetUartSpeed(static_cast<int>(speed))); in GetUartSpeedExt()
Duart.h94 int GetUartSpeed(int speed);
Duart.cpp319 int GetUartSpeed(int speed) { function
408 newttys1.c_cflag = GetUartSpeed(nSpeed);
/developtools/hdc/test/unittest/common/
Duart_test.cpp643 HWTEST_F(HdcUARTBaseTest, GetUartSpeed, TestSize.Level1)
645 EXPECT_EQ(mockUARTBase.GetUartSpeed(UART_SPEED2400), B2400);
646 EXPECT_EQ(mockUARTBase.GetUartSpeed(UART_SPEED4800), B4800);
647 EXPECT_EQ(mockUARTBase.GetUartSpeed(UART_SPEED9600), B9600);
648 EXPECT_EQ(mockUARTBase.GetUartSpeed(UART_SPEED115200), B115200);
649 EXPECT_EQ(mockUARTBase.GetUartSpeed(UART_SPEED921600), B921600);
650 EXPECT_EQ(mockUARTBase.GetUartSpeed(-1), B921600);
/developtools/hdc/src/common/
Duart.h202 int GetUartSpeed(int speed);
Duart.cpp96 int HdcUARTBase::GetUartSpeed(int speed) in GetUartSpeed() function in Hdc::HdcUARTBase
187 newttys1.c_cflag = GetUartSpeed(nSpeed); in SetSerial()