Skip to content

Commit

Permalink
add userdata to ec_context
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-brinkman committed Feb 13, 2021
1 parent 61668c7 commit 59821cb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
cmake_minimum_required(VERSION 2.8.12)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_LIST_DIR}/cmake/Modules")
project(SOEM C)
cmake_policy(SET CMP0048 NEW)
project(SOEM
DESCRIPTION "Simple Open EtherCAT Master"
VERSION 1.4.0
LANGUAGES C)

if (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
# Default to installing in SOEM source directory
Expand Down
3 changes: 3 additions & 0 deletions soem/ethercatmain.h
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,9 @@ struct ecx_context
int (*EOEhook)(ecx_contextt * context, uint16 slave, void * eoembx);
/** flag to control legacy automatic state change or manual state change */
int manualstatechange;
/** userdata, promotes application configuration esp. in EC_VER2 with multiple
* ec_context instances. Note: userdata memory is managed by application, not SOEM */
void *userdata;
};

#ifdef EC_VER1
Expand Down

0 comments on commit 59821cb

Please sign in to comment.