Skip to content

feat: add serial helpers - #23

Closed
Katze719 wants to merge 0 commit into
mainfrom
feat/serial-helpers
Closed

Katze719 wants to merge 0 commit into
mainfrom
feat/serial-helpers

Conversation

@Katze719

@Katze719 Katze719 commented Sep 1, 2026

Copy link
Copy Markdown
Member

Adds a few serial helpers and deprecates the old variants.

@Katze719
Katze719 marked this pull request as draft September 1, 2026 18:55
* @param error_callback Optional error callback.
* @return 0 on success or a negative StatusCode value.
*/
MODULE_API auto serialApplyConfig(int64_t handle, const cpp_core::SerialPortConfig *config,

@Mqxx Mqxx Sep 1, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
MODULE_API auto serialApplyConfig(int64_t handle, const cpp_core::SerialPortConfig *config,
MODULE_API auto serialSetPortConfig(int64_t handle, const cpp_core::SerialPortConfig *config,

* @param error_callback Optional error callback.
* @return 0 on success or a negative StatusCode value.
*/
MODULE_API auto serialGetConfig(int64_t handle, cpp_core::SerialPortConfig *config,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
MODULE_API auto serialGetConfig(int64_t handle, cpp_core::SerialPortConfig *config,
MODULE_API auto serialGetPortConfig(int64_t handle, cpp_core::SerialPortConfig *config,

* @param error_callback Optional error callback.
* @return 0 on success or a negative StatusCode value.
*/
MODULE_API auto serialPortListGet(int64_t list_handle, int index, cpp_core::SerialPortInfo *port_info,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
MODULE_API auto serialPortListGet(int64_t list_handle, int index, cpp_core::SerialPortInfo *port_info,
MODULE_API auto serialGetPortList(int64_t list_handle, int index, cpp_core::SerialPortInfo *port_info,

@Katze719 Katze719 closed this Sep 2, 2026
@Katze719
Katze719 force-pushed the feat/serial-helpers branch from 2bd6714 to a0fe1c3 Compare September 2, 2026 07:10
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