<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>
+ <field name="I2CStatus" start="16" bits="8" purpose="status" errorflag="true" format="enum" >
+ <description>Status flags I2C master</description>
+ <enumItem value="80">E_START</enumItem>
+ <enumItem value="40">E_RSTART</enumItem>
+ <enumItem value="20">E_ADDR</enumItem>
+ <enumItem value="10">E_RADDR</enumItem>
+ <enumItem value="8">E_CMD</enumItem>
+ <enumItem value="4">E_WD</enumItem>
+ <enumItem value="2">E_WD2</enumItem>
+ <enumItem value="0">OK</enumItem>
+ </field>
<field name="I2CFsmState" start="24" bits="5" format="hex" noflag="true" >
<description>Status of I2C state machine</description>
</field>