Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. QextSerialPort add new BaudRate
Qt 6.11 is out! See what's new in the release blog

QextSerialPort add new BaudRate

Scheduled Pinned Locked Moved 3rd Party Software
1 Posts 1 Posters 2.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    simonCpp
    wrote on last edited by
    #1

    Hey, I want to add the "691200" and "921600" baud rate to the Qextserialport baud rates list.

    1. I add the b.r. values to the enum BaudRateType.

    2. 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;
      

    @

    1. 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?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved