mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
Create README.md
This commit is contained in:
parent
3cf2d4e7af
commit
db2d59b790
1 changed files with 19 additions and 0 deletions
19
test/README.md
Normal file
19
test/README.md
Normal file
|
@ -0,0 +1,19 @@
|
|||
###################### CHECKSUM COMPARISON FREEDV VS CRCENGINE ########
|
||||
#https://crccalc.com
|
||||
|
||||
teststring = b'TEST'
|
||||
|
||||
|
||||
|
||||
# freedv crc16 checksum
|
||||
crctest2 = c_ushort(self.c_lib.freedv_gen_crc16(teststring, len(teststring)))
|
||||
print("FREEDV2: " + str(crctest2.value) + " = " + hex(crctest2.value))
|
||||
|
||||
|
||||
#Python crc16 checksum
|
||||
crc_algorithm = crcengine.new('crc16-ccitt-false') #load crc16 library
|
||||
crctest3 = crc_algorithm(teststring)
|
||||
print("CRCENGINE: " + str(crctest3) + " = " + hex(crctest3))
|
||||
|
||||
|
||||
#######################################################################
|
Loading…
Reference in a new issue