Skip to content

Conversation

JordanYates
Copy link
Contributor

Add a new API for devices that are intended for use by multiple other
devices and need some form of mediation to occur. This API performs
the mediation through a priority for the request state.

Add an implementation of the shared device API in the form of a SPDT
switch. Users of the switch can request a single common connection
to be routed through to either of the output connections. Access is
mediated through the shared device API.

This reverts commit 34d6f61.

This was not very well thought out as network key encryption is required
to determine the device public key in the first place.

Signed-off-by: Jordan Yates <[email protected]>
Add a new API for devices that are intended for use by multiple other
devices and need some form of mediation to occur. This API performs
the mediation through a priority for the request state.

Signed-off-by: Jordan Yates <[email protected]>
Add an implementation of the shared device API in the form of a SPDT
switch. Users of the switch can request a single common connection
to be routed through to either of the output connections. Access is
mediated through the shared device API.

Signed-off-by: Jordan Yates <[email protected]>
Add a test for the SPDT switch and the shared device API.

Signed-off-by: Jordan Yates <[email protected]>
Copy link

codecov bot commented Oct 10, 2024

Codecov Report

Attention: Patch coverage is 89.18919% with 8 lines in your changes missing coverage. Please review.

Project coverage is 90.67%. Comparing base (1cbd06f) to head (743d70a).
Report is 9 commits behind head on main.

Files with missing lines Patch % Lines
drivers/shared_device/spdt_switch.c 87.50% 5 Missing and 3 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #279      +/-   ##
==========================================
- Coverage   90.82%   90.67%   -0.15%     
==========================================
  Files         107      109       +2     
  Lines        4185     4259      +74     
  Branches      661      671      +10     
==========================================
+ Hits         3801     3862      +61     
- Misses        201      209       +8     
- Partials      183      188       +5     

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

@JordanYates JordanYates merged commit db20b2f into main Oct 10, 2024
11 checks passed
@JordanYates JordanYates deleted the feature/shared_devices branch October 10, 2024 11:46
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.

1 participant