equal
deleted
inserted
replaced
365 |
365 |
366 /****************************************************************************** |
366 /****************************************************************************** |
367 * Master methods |
367 * Master methods |
368 *****************************************************************************/ |
368 *****************************************************************************/ |
369 |
369 |
|
370 #ifdef __KERNEL__ |
|
371 |
370 /** Sets the locking callbacks. |
372 /** Sets the locking callbacks. |
371 * |
373 * |
372 * For concurrent master access, the application has to provide a locking |
374 * For concurrent master access, the application has to provide a locking |
373 * mechanism (see section FIXME in the docs). The method takes two function |
375 * mechanism (see section FIXME in the docs). The method takes two function |
374 * pointers and a data value as its parameters. The arbitrary \a cb_data value |
376 * pointers and a data value as its parameters. The arbitrary \a cb_data value |
383 ec_master_t *master, /**< EtherCAT master */ |
385 ec_master_t *master, /**< EtherCAT master */ |
384 int (*request_cb)(void *), /**< Lock request function. */ |
386 int (*request_cb)(void *), /**< Lock request function. */ |
385 void (*release_cb)(void *), /**< Lock release function. */ |
387 void (*release_cb)(void *), /**< Lock release function. */ |
386 void *cb_data /**< Arbitrary user data. */ |
388 void *cb_data /**< Arbitrary user data. */ |
387 ); |
389 ); |
|
390 |
|
391 #endif /* __KERNEL__ */ |
388 |
392 |
389 /** Creates a new process data domain. |
393 /** Creates a new process data domain. |
390 * |
394 * |
391 * For process data exchange, at least one process data domain is needed. |
395 * For process data exchange, at least one process data domain is needed. |
392 * This method creates a new process data domain and returns a pointer to the |
396 * This method creates a new process data domain and returns a pointer to the |