PyCRC

Python Libraries for CRC Calculations

What is PyCRC?

  This is an intended port to python for lib_crc library. It requires at least python 2.7.

Version & Changelog

  1.0 (oct 2011)    Initial launch

How can it be used?

  The CRC Modules are designed to be used separately (if you wanted for example to use only CRC16 you include only the specific file).
  Usage: 

        from CRCModules.CRC16SICK import CRC16SICK
        crcobj = CRC16SICK()
        res = crcobj.calculate("some string")
        print "{:10X}".format(res)

  Check provided pyCRC.py for a more detailed look.

What CRC Modules are available?

  CRC16           CRC16.py        for CRC16 and CRC16 Modbus \\ 
  CRC32           CRC32.py        for CRC32 \\ 
  CRC16Kermit     CRC16Kermit.py  for CRC-CCITT (Kermit) \\ 
  CRC16SICK       CRC16SICK.py    for CRC16 (Sick) \\ 
  CRC16DNP        CRC16DNP.py     for CRC-DNP \\ 
  CRCCCITT        CRCCCITT.py     for CRC-CCITT (XModem), CRC-CCITT (0xFFFF) and CRC-CCITT (0x1D0F) \\ 

Downloads

Package: version 1.0

Latest version: GitHUB

 
myapps/pycrc.txt · Last modified: 2011/11/25 10:45 (external edit)
Email address
 
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki