#QUALITY by cg
authorClaus Gittinger <cg@exept.de>
Mon, 25 Mar 2019 14:33:39 +0100
changeset 4919 1594f0a70c62
parent 4918 fbda05fa45dc
child 4920 8c94a1a0ed25
#QUALITY by cg class: CRC8Stream class added: #new_2F changed: #newSAE_J1850
CRC8Stream.st
--- a/CRC8Stream.st	Mon Mar 25 14:33:27 2019 +0100
+++ b/CRC8Stream.st	Mon Mar 25 14:33:39 2019 +0100
@@ -1,3 +1,5 @@
+"{ Encoding: utf8 }"
+
 "
  COPYRIGHT (c) 2019 by eXept Software AG
               All Rights Reserved
@@ -143,9 +145,21 @@
 newSAE_J1850
     "return an instance of the SAE_J1850 CRC8 (used in AUTOSAR)"
     
+    self error:'currently broken'.    
     ^ self generatorPolynomMSB:16r1D initValue:16rFF xorOut:16rFF
 
     "Created: / 24-03-2019 / 11:34:16 / Claus Gittinger"
+    "Modified: / 25-03-2019 / 14:27:48 / Claus Gittinger"
+!
+
+new_2F
+    "return an instance of the CRC8-2F (used in AUTOSAR).
+     Currently broken."
+
+    self error:'currently broken'.    
+    ^ self generatorPolynom:16r2F initValue:16rFF xorOut:16rFF
+
+    "Created: / 25-03-2019 / 14:25:16 / Claus Gittinger"
 ! !
 
 !CRC8Stream class methodsFor:'queries'!