Skip to content

Refactor serial communication functions to use typed configurations - #26

Open
Katze719 wants to merge 1 commit into
mainfrom
feat/implement-v3
Open

Refactor serial communication functions to use typed configurations#26
Katze719 wants to merge 1 commit into
mainfrom
feat/implement-v3

Conversation

@Katze719

Copy link
Copy Markdown
Member
  • Updated serialSetFlowControl, serialSetParity, and serialSetStopBits functions to accept typed enums instead of integers for better type safety.
  • Introduced serialWaitForDrain function to ensure all output data is transmitted before proceeding.
  • Modified serialWrite function to accept a SerialTimeoutConfig structure instead of separate timeout parameters.
  • Updated unit tests and integration tests to reflect changes in function signatures and ensure proper handling of timeout configurations.
  • Added new test cases for serialWaitForDrain and refactored existing tests to use the new configurations.
  • Ensured all relevant files include necessary headers for the new implementations.

- Updated `serialSetFlowControl`, `serialSetParity`, and `serialSetStopBits` functions to accept typed enums instead of integers for better type safety.
- Introduced `serialWaitForDrain` function to ensure all output data is transmitted before proceeding.
- Modified `serialWrite` function to accept a `SerialTimeoutConfig` structure instead of separate timeout parameters.
- Updated unit tests and integration tests to reflect changes in function signatures and ensure proper handling of timeout configurations.
- Added new test cases for `serialWaitForDrain` and refactored existing tests to use the new configurations.
- Ensured all relevant files include necessary headers for the new implementations.
@Katze719Katze719 self-assigned this Sep 6, 2026
@Katze719Katze719 added enhancement New feature or improvement breaking change Change requires users to adapt area: native api OS-specific implementation and exported native API area: ffi metadata ASTrein metadata generation and FFI surface area: build & ci CMake, toolchains, workflows, and release automation labels Sep 6, 2026
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: build & ciCMake, toolchains, workflows, and release automationarea: ffi metadataASTrein metadata generation and FFI surfacearea: native apiOS-specific implementation and exported native APIbreaking changeChange requires users to adaptenhancementNew feature or improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@Katze719