Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Created I2cDriver Interface #3015

Merged
merged 2 commits into from
Nov 7, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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

}

}

}
Loading