RTDM interface.
More...
Go to the source code of this file.
|
|
#define | DEBUG 0 |
| | Set to 1 to enable device operations debugging.
|
| |
RTDM interface.
Definition in file rtdm.c.
◆ ec_rtdm_open()
| int ec_rtdm_open |
( |
struct rtdm_dev_context * |
context, |
|
|
rtdm_user_info_t * |
user_info, |
|
|
int |
oflags |
|
) |
| |
Driver open.
- Returns
- Always zero (success).
- Parameters
-
| context | Context. |
| user_info | User data. |
| oflags | Open flags. |
Definition at line 141 of file rtdm.c.
◆ ec_rtdm_close()
| int ec_rtdm_close |
( |
struct rtdm_dev_context * |
context, |
|
|
rtdm_user_info_t * |
user_info |
|
) |
| |
Driver close.
- Returns
- Always zero (success).
- Parameters
-
| context | Context. |
| user_info | User data. |
Definition at line 171 of file rtdm.c.
◆ ec_rtdm_ioctl()
| int ec_rtdm_ioctl |
( |
struct rtdm_dev_context * |
context, |
|
|
rtdm_user_info_t * |
user_info, |
|
|
unsigned int |
request, |
|
|
void __user * |
arg |
|
) |
| |
Driver ioctl.
- Returns
- ioctl() return code.
- Parameters
-
| context | Context. |
| user_info | User data. |
| request | Request. |
| arg | Argument. |
Definition at line 196 of file rtdm.c.
◆ ec_rtdm_dev_init()
Initialize an RTDM device.
- Returns
- Zero on success, otherwise a negative error code.
- Parameters
-
| rtdm_dev | EtherCAT RTDM device. |
| master | EtherCAT master. |
Definition at line 69 of file rtdm.c.
◆ ec_rtdm_dev_clear()
Clear an RTDM device.
- Parameters
-
| rtdm_dev | EtherCAT RTDM device. |
Definition at line 118 of file rtdm.c.
◆ ec_rtdm_mmap()
| int ec_rtdm_mmap |
( |
ec_ioctl_context_t * |
ioctl_ctx, |
|
|
void ** |
user_address |
|
) |
| |
Memory-map process data to user space.
- Returns
- Zero on success, otherwise a negative error code.
- Parameters
-
| ioctl_ctx | Context. |
| user_address | Userspace address. |
Definition at line 220 of file rtdm.c.