-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Introduce section on driver polymorphism This commit introduces documentation for the experimental driver polymorphism being added to Mbed OS. See related issue there: ARMmbed/mbed-os#13209 * Add PlantUML sources for driver polymorphism diagrams * Apply suggestions from code review Co-authored-by: Vincent Coubard <[email protected]> Co-authored-by: George Beckstein <[email protected]> Co-authored-by: George Beckstein <[email protected]> Co-authored-by: Vincent Coubard <[email protected]>
- Loading branch information
1 parent
19060eb
commit 88d8a72
Showing
5 changed files
with
175 additions
and
0 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
@startuml | ||
class mbed::DigitalOut implements mbed::interface::DigitalOut | ||
|
||
abstract mbed::interface::DigitalOut { | ||
{abstract} void write(int value) | ||
{abstract} int read() | ||
{abstract} int is_connected() | ||
DigitalOut &operator=(int value) | ||
DigitalOut &operator=(DigitalOut &rhs) | ||
operator int() | ||
} | ||
|
||
class mbed::DigitalOut { | ||
void write(int value) | ||
int read() | ||
int is_connected() | ||
} | ||
@enduml |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
@startuml | ||
class mbed::DigitalOut implements mbed::interface::DigitalOut | ||
class my_company::I2CExpander::DigitalOut implements mbed::interface::DigitalOut | ||
|
||
abstract mbed::interface::DigitalOut { | ||
{abstract} void write(int value) | ||
{abstract} int read() | ||
{abstract} int is_connected() | ||
DigitalOut &operator=(int value) | ||
DigitalOut &operator=(DigitalOut &rhs) | ||
operator int() | ||
} | ||
|
||
class mbed::DigitalOut { | ||
void write(int value) | ||
int read() | ||
int is_connected() | ||
} | ||
|
||
class my_company::I2CExpander::DigitalOut { | ||
void write(int value) | ||
int read() | ||
int is_connected() | ||
} | ||
@enduml |