Skip to content

Commit

Permalink
feat: created I2cDriver Interface
Browse files Browse the repository at this point in the history
  • Loading branch information
jsilveira1409 committed Nov 7, 2024
1 parent 3c2ac53 commit b36685f
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 asynchronous writing to I2C
guarded input port write: Drv.I2c

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

@ Port for asynchronous 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 b36685f

Please sign in to comment.