GithubHelp home page GithubHelp logo

driver_converter's Introduction

C to Python Drivers Converter

Converts a header, such as tl.h, to the format seen in _thorlabs_kst_wrap_basic.py.

  • struct_convert.py will parse the original header, looking for structs. It has two startup arguments that can be set in the file: IN_FILENAME and OUT_FILENAME. The script will parse IN_FILENAME and produce a file called OUT_FILENAME.

  • fn_convert.py will parse the original header, looking for functions. It has three startup arguments that can be set in the file: IN_FILENAME, OUT_FILENAME, and AUTO_DETECT_PREFIX. The script will parse IN_FILENAME and produce a file called OUT_FILENAME. The script, if AUTO_DETECT_PREFIX is set to True, will assume that everything ahead of the first underscore in a function name is a prefix, and will treat them appropriately. This script automatically corrects for function names formatted as either fn_name(args) or fn_name (args).

  • [DEPRECATED] strip.py converts a list of functions to their Sig(...) versions. This script requires a list of functions in a file such as tli_header.txt.

TODO

Update the auto-converter to include the following:

  • Enum declarations.
  • 'typedef' added to struct declarations.

Other Notes

  • Changed __int32 to int.
  • Changed __int16 to short.

driver_converter's People

Contributors

mitbailey avatar sunipkm avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.