Hello,
How do I instantiate I2C ports in my component? I am using Fprime v1.5.3. Right now, I have this code in my Component:
<!-- Import ports for i2c driver -->
<import_port_type>Drv/I2cDriverPorts/I2cPortAi.xml</import_port_type>
<ports>
<port name="I2CWrite" data_type="Drv::I2c" kind="guarded_input">
</port>
<port name="I2CRead" data_type="Drv::I2c" kind="guarded_input">
</port>
</ports>
and my cpp-template creates two functions for I2Cwrite_handle an I2CRead_Handler. Why does it create these two handlers? I thought it would be the same as serial driver where there is one handle for read but you can write in any other functions.