Page 1 of 1

CRC16 Code for ARM and x86 (python)

Posted: Tue Mar 17, 2015 8:47 am
by Jameson
From one of our developers (consider this version 1):

The instructions below work great on both ARM and x86.

To use it, drop both files into your directory and call:

Code: Select all

python setup.py build_ext -inplace
which will generate the ekmcrc.so library.

In the python code

Code: Select all

import ekmcrc
And then call

Code: Select all

my_crc_as_hex_string_crc = ekmcrc.ekmcrc(my_data_string)
All the usual caveats apply: gcc and python-devel need to be installed. Should work on any standard linux distro.

Here is a link to the files: https://www.dropbox.com/sh/9wounarabxyh ... o4dQa?dl=0