]> jspc29.x-matter.uni-frankfurt.de Git - daqtools.git/commitdiff
Readable mimosis I2C error flags
authorMaps <maps@ikf>
Tue, 18 Apr 2023 14:35:47 +0000 (16:35 +0200)
committerMaps <maps@ikf>
Tue, 18 Apr 2023 14:38:20 +0000 (16:38 +0200)
xml-db/database/Mimosis.xml

index 71dfc1899463178270bc0d0da0f8e3af29b5f5c3..02f757b81ddbc872ed0f44ae4bf40db351562ccf 100644 (file)
       <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>