frame

Add crcmod to library

I need to use crcmod library in my project, how can I add it?

http://crcmod.sourceforge.net/crcmod.html#mkcrcfun-crc-function-factory

Comments

  • Hi martinleon,

    Zerynth supports a subset of Python3.4 and Stdlib; here you can find all info about this (https://docs.zerynth.com/latest/official/core.zerynth.stdlib and https://docs.zerynth.com/latest/official/core.zerynth.stdlib/docs/vm.html#zerynthvm).

    According to that, you can implement your own Python or C/Python library.
    Analyzing the source code of crcmod library, you can start from python3 folder and follow our doc to built a hybrid C/Python script.

    Let me know if this can help you or if you need some more advice :)



    Matteo Cipriani
    Zerynth Support Team
  • How do I make my module accessible as a library so I don't have to include it in every project?
  • Hi martileon,

    if your lib is complete and you want to share it with the community, you can publish your project and, after our tech team review, it will be available as community lib for all Zerynth Users.

    If you are in developing phase and you need it in more then one project, you can locally add your lib in the Zerynth Official Library folder ("zerynth2/dist/r2.0.10/lib/official/").

    If you follow the hierarchical folder structure of one of our Official lib, you can import your lib as you do for each other ZLib (from folder_chip_manufacturer.folder_chip import chip_mudule).

    Hope this can help you :)
    Matteo Cipriani
    Zerynth Support Team
Sign In or Register to comment.

ZERYNTH Community

@ 2016 Zerynth.com, all rights reserved.