Skip to content

Implement serial communication functions and refactor existing code#19

Draft
Katze719 wants to merge 7 commits into
mainfrom
upgrade/cpp-core-v2-linux
Draft

Implement serial communication functions and refactor existing code#19
Katze719 wants to merge 7 commits into
mainfrom
upgrade/cpp-core-v2-linux

Conversation

@Katze719

Copy link
Copy Markdown
Member
  • Added new functions for serial communication including:

    • serialOutBytesTotal
    • serialOutBytesWaiting
    • serialReadLine
    • serialReadUntil
    • serialReadUntilSequence
    • serialSendBreak
    • serialSetBaudrate
    • serialSetDataBits
    • serialSetDtr
    • serialSetFlowControl
    • serialSetParity
    • serialSetReadCallback
    • serialSetRts
    • serialSetStopBits
    • serialSetWriteCallback
  • Refactored serialRead and serialWrite functions to use a common implementation (readImpl and writeImpl).

  • Updated error handling to use new status code definitions.

  • Modified unit tests to reflect changes in error codes and added new tests for the newly implemented functions.

  • Ensured consistent naming and usage of status codes across the codebase.

Katze719 and others added 7 commits June 17, 2026 22:36
- Added new functions for serial communication including:
  - `serialOutBytesTotal`
  - `serialOutBytesWaiting`
  - `serialReadLine`
  - `serialReadUntil`
  - `serialReadUntilSequence`
  - `serialSendBreak`
  - `serialSetBaudrate`
  - `serialSetDataBits`
  - `serialSetDtr`
  - `serialSetFlowControl`
  - `serialSetParity`
  - `serialSetReadCallback`
  - `serialSetRts`
  - `serialSetStopBits`
  - `serialSetWriteCallback`

- Refactored `serialRead` and `serialWrite` functions to use a common implementation (`readImpl` and `writeImpl`).
- Updated error handling to use new status code definitions.
- Modified unit tests to reflect changes in error codes and added new tests for the newly implemented functions.
- Ensured consistent naming and usage of status codes across the codebase.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants