Ident codes for CC2531, CC2531
[goodfet] / client / GoodFETCC.py
index f426a5b..9b07a28 100644 (file)
@@ -64,12 +64,18 @@ class GoodFETCC(GoodFET):
     def CCwr_config(self,config):
         """Write the config register of a Chipcon."""
         self.writecmd(0x30,0x81,1,[config&0xFF]);
+    def CClockchip(self):
+        """Set the flash lock bit in info mem."""
+        self.writecmd(0x30, 0x9A, 0, None);
     
+
     CCversions={0x0100:"CC1110",
                 0x8500:"CC2430",
                 0x8900:"CC2431",
                 0x8100:"CC2510",
                 0x9100:"CC2511",
+                0xA500:"CC2530", #page 52 of SWRU191
+                0xB500:"CC2531",
                 0xFF00:"CCmissing"};
     def CCidentstr(self):
         ident=self.CCident();