nasa / fprime

F´ - A flight software and embedded systems framework
https://fprime.jpl.nasa.gov
Apache License 2.0
10.02k stars 1.29k forks source link

Create `Drv::I2cDriver` Interface #2580

Open LeStarch opened 5 months ago

LeStarch commented 5 months ago
F´ Version
Affected Component

Feature Description

Make an interface out of Drv/LinuxI2cDriver protocol. See #2255 for an example interface change set.

The following three ports should be pulled out of Drv::LinuxI2cDriver into Svc/Interfaces/I2cInterface.fppi such that other I2C implementations can use it.

https://github.com/nasa/fprime/blob/a73bff28617b96736c0e3e222e4c6e1dea1c6f5e/Drv/LinuxI2cDriver/LinuxI2cDriver.fpp#L5-L9

Note: annotations should be added to explain what each port does.