You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/ar_ibus.md
+23Lines changed: 23 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,29 @@ For bus communication, the SparkFun Toolkit is designed to provide a common impl
8
8
9
9
This pattern allows an application to develop against the common bus interface without regard to the underlying bus type or implementation. This *plug-in* nature of this model enables core application reuse across a range of bus devices. What to use a different bus type? Just use a different driver.
10
10
11
+
```mermaid
12
+
---
13
+
title: Design Pattern Bus Interface
14
+
---
15
+
classDiagram
16
+
class MyApplication
17
+
18
+
class IBus
19
+
<<Interface>> IBus
20
+
IBus : writeData(...)
21
+
IBus : readRegister(...)
22
+
IBus : writeRegister(...)
23
+
24
+
MyApplication --> IBus
25
+
26
+
IBus <|-- IBusType
27
+
28
+
note for MyApplication "Application/library that <br>uses the IBus Interface"
29
+
note for IBus "Defines the bus interface"
30
+
note for IBusType "Specific implementation type <br> methods [I2C, SPI, UART,...]"
0 commit comments