for_developers:wrapper_lib
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| for_developers:wrapper_lib [2017/04/18 11:45] – kalberer | for_developers:wrapper_lib [2017/04/18 12:43] (current) – kalberer | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| - Create new CMake project for a shared library. | - Create new CMake project for a shared library. | ||
| + | - Include and link against EEROS: < | ||
| + | include_directories(${EEROS_INCLUDE_DIR}) | ||
| + | link_directories(${EEROS_LIB_DIR})</ | ||
| - Include and link against necessary hardware library. If the required hardware library generates a CMake Package, use '' | - Include and link against necessary hardware library. If the required hardware library generates a CMake Package, use '' | ||
| include_directories(${FLINK_INCLUDE_DIR}) | include_directories(${FLINK_INCLUDE_DIR}) | ||
| - | link_directories(${FLINK_LIB_DIR})</ | + | link_directories(${FLINK_LIB_DIR})</ |
| + | if(COMEDI_INCLUDE_DIR) | ||
| + | include_directories(${COMEDI_INCLUDE_DIR}) | ||
| + | endif() | ||
| + | |||
| + | find_library(COMEDI_LIBRARY comedi) | ||
| + | if(COMEDI_LIBRARY) | ||
| + | message(STATUS "-> libcomedi available" | ||
| + | set(COMEDI_LIBRARY_DIR ${COMEDI_LIBRARY_DIR} comedi) | ||
| + | endif()</ | ||
| - Create classes for every type you intend to support (AnalogOut, DigitalIn, PWM, ...): | - Create classes for every type you intend to support (AnalogOut, DigitalIn, PWM, ...): | ||
| - These classes have to derive from the EEROS HAL classes In- or Output respectively ScalableIn- or ScalableOutput. You can find these classes in the EEROS repository in folder ''/ | - These classes have to derive from the EEROS HAL classes In- or Output respectively ScalableIn- or ScalableOutput. You can find these classes in the EEROS repository in folder ''/ | ||
| + | - Implement the derived functions for every class. The '' | ||
| - For scalable channels '' | - For scalable channels '' | ||
| - Create a C function '' | - Create a C function '' | ||
| - Create all necessary Feature Functions as C functions. These are intended to use for all actions which cannot be called with the derived functions like setting a PWM frequency. | - Create all necessary Feature Functions as C functions. These are intended to use for all actions which cannot be called with the derived functions like setting a PWM frequency. | ||
| - Create a class to handle the hardware device node ('' | - Create a class to handle the hardware device node ('' | ||
for_developers/wrapper_lib.1492508736.txt.gz · Last modified: 2017/04/18 11:45 by kalberer