--- /dev/null
+<?xml version="1.0" encoding="utf-8" ?>
+<TrbNetEntity xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:noNamespaceSchemaLocation="../schema/TrbNetEntity.xsd"
+ name="I2C"
+ address="d680"
+ >
+ <description>Registers for I2C</description>
+
+
+ <group name="I2C" address="0000" size="6" purpose="status" mode="rw" continuous="true">
+ <register name="MimosisI2C0" address="0000" >
+ <description>First I2C register</description>
+ <field name="Speed" start="0" bits="6" format="unsigned" noflag="true" >
+ <description>Multiples of 8 System clock cycles for 1/2 I2C clock</description>
+ </field>
+ </register>
+
+ <register name="I2C1" address="0001" >
+ <description>Second I2C register</description>
+ <field name="WordByte" start="0" bits="1" format="bitmask" noflag="true" >
+ <description>Select to send one byte (0) or one word (1)</description>
+ </field>
+ <field name="SkipCommand" start="4" bits="1" format="bitmask" noflag="true" >
+ <description>Skip command, send only address plus data</description>
+ </field>
+ <field name="ReadWrite" start="8" bits="1" format="bitmask" noflag="true" >
+ <description>Select to write (0) or read (1)</description>
+ </field>
+ </register>
+
+ <register name="I2C2" address="0002" >
+ <description>Third I2C register / Command and data</description>
+ <field name="I2CExecute" start="7" bits="1" format="bitmask">
+ <description>Trigger I2C action</description>
+ </field>
+ <field name="I2CAddress" start="0" bits="7" format="hex" noflag="true" >
+ <description>I2C address byte, r/w bit is ignored</description>
+ </field>
+ <field name="I2CCommand" start="8" bits="8" format="hex" noflag="true" >
+ <description>Command byte, sent after address</description>
+ </field>
+ <field name="I2CData" start="16" bits="16" format="hex" noflag="true" >
+ <description>Data word, sent after command</description>
+ </field>
+ </register>
+
+ <!-- <register name="MimosisI2CTrigger" address="0002" > -->
+ <!-- <description>Trigger I2C action</description> -->
+ <!-- <field name="I2CExecute" start="0" bits="1" format="bitmask" /> -->
+ <!-- </register> -->
+
+ <register name="I2C4" address="0004" mode="r">
+ <description>Fourth I2C register / Status and read-back</description>
+ <field name="I2CDataRead" start="0" bits="16" format="hex" noflag="true" >
+ <description>Data word read back</description>
+ </field>
+ <field name="I2CStatus" start="16" bits="8" format="hex" noflag="true" >
+ <description>Status flags of I2C master</description>
+ </field>
+ <field name="I2CFsmState" start="24" bits="5" format="hex" noflag="true" >
+ <description>Status of I2C state machine</description>
+ </field>
+ <field name="I2CDone" start="29" bits="1" format="boolean" >
+ <description>Operation finished</description>
+ </field>
+ <field name="I2CBusy" start="30" bits="1" format="boolean" errorflag="true">
+ <description>I2C master busy</description>
+ </field>
+ <field name="I2CValid" start="31" bits="1" format="boolean" >
+ <description>Data valid</description>
+ </field>
+ </register>
+
+
+
+ </group>
+
+</TrbNetEntity>
</register>
<register name="FrameLength" address="0002" >
- <description>16bit words in last frame</description>
+ <description>32bit words in last frame</description>
<field name="FrameLength" start="0" bits="16" format="unsigned" noflag="true" />
</register>
<field name="WordByte" start="0" bits="1" format="bitmask" noflag="true" >
<description>Select to send one byte (0) or one word (1)</description>
</field>
+ <field name="SkipCommand" start="4" bits="1" format="bitmask" noflag="true" >
+ <description>Skip command, send only address plus data</description>
+ </field>
<field name="ReadWrite" start="8" bits="1" format="bitmask" noflag="true" >
<description>Select to write (0) or read (1)</description>
</field>
<register name="MimosisI2C2" address="0002" >
<description>Third I2C register / Command and data</description>
- <field name="I2CAddress" start="0" bits="8" format="hex" noflag="true" >
- <description>I2C address byte, r/w bit is ignored</description>
+ <field name="I2CAddress" start="1" bits="7" format="hex" noflag="true" >
+ <description>I2C address byte</description>
</field>
<field name="I2CCommand" start="8" bits="8" format="hex" noflag="true" >
<description>Command byte, sent after address</description>