Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[controller] add Thread controller interface for unified APIs #2304

Merged
merged 1 commit into from
May 31, 2024

Conversation

Irving-cl
Copy link
Contributor

This PR defines the Thread Controller Interface which is intended to
provide a set of unified, async thread control APIs for both NCP and
RCP cases.

This PR is a child PR of #2283. In this PR, only GetDeviceRole is
added. HostRcp implemented the interface and the dbus handler is
updated to directly call this unified API.

@Irving-cl Irving-cl requested review from wgtdkp, superwhd and abtink May 28, 2024 10:07
@Irving-cl Irving-cl marked this pull request as ready for review May 28, 2024 10:07
@Irving-cl Irving-cl force-pushed the add_thread_controller_interface branch from 1bb443b to d3b7f3b Compare May 28, 2024 10:14
Copy link

codecov bot commented May 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 55.71%. Comparing base (2b41187) to head (390da55).
Report is 671 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2304      +/-   ##
==========================================
- Coverage   55.77%   55.71%   -0.07%     
==========================================
  Files          87        5      -82     
  Lines        6890       70    -6820     
  Branches        0        2       +2     
==========================================
- Hits         3843       39    -3804     
+ Misses       3047       29    -3018     
- Partials        0        2       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Irving-cl Irving-cl force-pushed the add_thread_controller_interface branch 2 times, most recently from c43481e to 990f94b Compare May 29, 2024 04:41
@Irving-cl Irving-cl force-pushed the add_thread_controller_interface branch from 990f94b to 280b1f6 Compare May 29, 2024 05:49
@Irving-cl Irving-cl requested review from wgtdkp and superwhd May 29, 2024 05:50
src/ncp/thread_controller.hpp Outdated Show resolved Hide resolved
src/ncp/thread_controller.hpp Outdated Show resolved Hide resolved
src/ncp/thread_controller.hpp Outdated Show resolved Hide resolved
@Irving-cl Irving-cl force-pushed the add_thread_controller_interface branch from 280b1f6 to 2b4418c Compare May 29, 2024 06:19
@Irving-cl Irving-cl requested a review from superwhd May 29, 2024 06:20
src/ncp/rcp_host.cpp Outdated Show resolved Hide resolved
Copy link
Contributor

@superwhd superwhd left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@Irving-cl Irving-cl force-pushed the add_thread_controller_interface branch from 2b4418c to 8d63db7 Compare May 29, 2024 06:27
src/ncp/thread_controller.hpp Outdated Show resolved Hide resolved
src/ncp/thread_controller.hpp Show resolved Hide resolved
@Irving-cl Irving-cl force-pushed the add_thread_controller_interface branch from 8d63db7 to 390da55 Compare May 30, 2024 07:13
Copy link
Member

@abtink abtink left a comment

Choose a reason for hiding this comment

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

👍

@Irving-cl Irving-cl requested a review from jwhui May 31, 2024 16:51
@jwhui jwhui merged commit e2eed3c into openthread:main May 31, 2024
30 checks passed
@Irving-cl Irving-cl deleted the add_thread_controller_interface branch June 1, 2024 09:05
@Irving-cl Irving-cl mentioned this pull request Jul 23, 2024
17 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants