Skip to content

Commit

Permalink
Created I2cDriver Interface (#3015)
Browse files Browse the repository at this point in the history
* feat: created I2cDriver Interface

* Changing `asynchronous` to `synchronous` in comments

---------

Co-authored-by: M Starch <LeStarch@googlemail.com>
  • Loading branch information
jsilveira1409 and LeStarch authored Nov 7, 2024
1 parent 3c2ac53 commit 3d49971
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
9 changes: 9 additions & 0 deletions Drv/Interfaces/I2cInterface.fppi
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

@ Port for guarded synchronous writing to I2C
guarded input port write: Drv.I2c

@ Port for guarded synchronous reading from I2C
guarded input port read: Drv.I2c

@ Port for synchronous writing and reading from I2C
guarded input port writeRead: Drv.I2cWriteRead
10 changes: 3 additions & 7 deletions Drv/LinuxI2cDriver/LinuxI2cDriver.fpp
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
module Drv {

passive component LinuxI2cDriver {
include "../Interfaces/I2cInterface.fppi"

guarded input port write: Drv.I2c

guarded input port read: Drv.I2c

guarded input port writeRead: Drv.I2cWriteRead

}

}

}

0 comments on commit 3d49971

Please sign in to comment.