Qt 6.11 is out! See what's new in the release
blog
QextSerialPort add new BaudRate
3rd Party Software
1
Posts
1
Posters
2.2k
Views
1
Watching
-
Hey, I want to add the "691200" and "921600" baud rate to the Qextserialport baud rates list.
-
I add the b.r. values to the enum BaudRateType.
-
On the "setBaudRate" function I add this cases:
@
/691200 baud/
case BAUD691200:
TTY_PORTABILITY_WARNING("Win_QextSerialPort Portability Warning: POSIX does not support 691200 baud operation.");
Win_CommConfig.dcb.BaudRate=CBR_691200;
break;/*921600 baud*/ case BAUD921600: TTY_PORTABILITY_WARNING("Win_QextSerialPort Portability Warning: POSIX does not support 921600 baud operation."); Win_CommConfig.dcb.BaudRate=CBR_921600; break;
@
- In the "winbase.h" file, I add this definetions.
@
#define CBR_691200 691200
#define CBR_921600 921600
@
Is this the correct way to do it? and how can I check it?
-