Skip to content

Conversation

@AhmedYasserrr
Copy link
Collaborator

This PR introduces significant refactoring and API improvements:

  • Refactored C ectool functions to return error codes instead of printing or exiting.
  • Added standard error codes (e.g. EC_ERR_INIT, EC_ERR_READMEM).
  • Introduced a C++ ECController class to wrap the C API, throwing C++ exceptions with clear error messages.
  • Exposed ECController to Python using pybind11 bindings.
  • Updated CMake to support the new C++ and pybind11 build flow.

AhmedYasserrr and others added 2 commits July 4, 2025 19:49
…bindings

- Refactored C ectool functions to return error codes instead of printing or exiting.
- Implemented standard error codes (e.g. EC_ERR_INIT, EC_ERR_READMEM).
- Created ECController C++ class to wrap C API and throw exceptions with meaningful messages.
- Exposed ECController to Python via pybind11.
- Updated CMake
@AhmedYasserrr AhmedYasserrr merged commit 99802e7 into dev Jul 6, 2025
6 checks passed
@AhmedYasserrr AhmedYasserrr deleted the dev-error-handling branch July 6, 2025 15:26
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