-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pw_digital_io: add IsStateActive and setters
Adds methods IsStateActive, SetStateActive, and SetStateInactive to query/update the active state of the line. These are wrappers for GetState and SetState. Updated tests to verify that derived classes expose the expected API methods. Change-Id: Ie17d48c0fb7adf9924ec7aeada56567018a9891e Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/98080 Reviewed-by: Tom Craig <[email protected]> Commit-Queue: Anton Markov <[email protected]> Reviewed-by: Wyatt Hepler <[email protected]>
- Loading branch information
Showing
2 changed files
with
130 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters