lebai sdk  1.1.28
lebai c++ sdk with swig to support sereval languages.
Functions
serial.

串口相关的接口. More...

Functions

void lebai::l_master::Robot::set_serial_baud_rate (std::string device, unsigned int baud_rate)
 设置串口波特率. More...
 
void lebai::l_master::Robot::set_serial_parity (std::string device, unsigned int parity)
 设置串口校验位. More...
 

Detailed Description

串口相关的接口.

Function Documentation

◆ set_serial_baud_rate()

void lebai::l_master::Robot::set_serial_baud_rate ( std::string  device,
unsigned int  baud_rate 
)

设置串口波特率.

Parameters
device设备名称.
baud_rate波特率.

◆ set_serial_parity()

void lebai::l_master::Robot::set_serial_parity ( std::string  device,
unsigned int  parity 
)

设置串口校验位.

Parameters
device设备名称.
parity校验位. 0:无校验; 1:奇校验; 2:偶校验.