]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/spiflash/pd.py
spiflash: Handle chip erase
[libsigrokdecode.git] / decoders / spiflash / pd.py
index 1263cd8057845559cad085ef29fa3ed7e9f024db..536b55c56521f7e8bda7786115150d365810a988 100644 (file)
@@ -387,11 +387,13 @@ class Decoder(srd.Decoder):
     def handle_be(self, mosi, miso):
         pass # TODO
 
+    # TODO: Warn if WREN was not seen before.
     def handle_ce(self, mosi, miso):
-        pass # TODO
+        self.putx([Ann.CE, self.cmd_ann_list()])
 
+    # TODO: Warn if WREN was not seen before.
     def handle_ce2(self, mosi, miso):
-        pass # TODO
+        self.putx([Ann.CE2, self.cmd_ann_list()])
 
     def handle_pp(self, mosi, miso):
         # Page program: Master asserts CS#, sends PP command, sends 3-byte