RTDM interface.
More...
Go to the source code of this file.
|
|
#define | DEBUG_RTDM 0 |
| | Set to 1 to enable device operations debugging.
|
| |
|
|
static int | ec_rtdm_open (struct rtdm_fd *fd, int oflags) |
| |
|
static void | ec_rtdm_close (struct rtdm_fd *fd) |
| |
|
static int | ec_rtdm_ioctl_rt (struct rtdm_fd *fd, unsigned int request, void __user *arg) |
| |
|
static int | ec_rtdm_ioctl (struct rtdm_fd *fd, unsigned int request, void __user *arg) |
| |
| int | ec_rtdm_dev_init (ec_rtdm_dev_t *rtdm_dev, ec_master_t *master) |
| | Initialize an RTDM device. More...
|
| |
| void | ec_rtdm_dev_clear (ec_rtdm_dev_t *rtdm_dev) |
| | Clear an RTDM device. More...
|
| |
|
int | ec_rtdm_mmap (ec_ioctl_context_t *ioctl_ctx, void **user_address) |
| |
|
| static struct rtdm_driver | ec_rtdm_driver |
| |
RTDM interface.
Definition in file rtdm_xenomai_v3.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 292 of file rtdm_xenomai_v3.c.
◆ ec_rtdm_dev_clear()
Clear an RTDM device.
- Parameters
-
| rtdm_dev | EtherCAT RTDM device. |
Definition at line 325 of file rtdm_xenomai_v3.c.
◆ ec_rtdm_driver
| struct rtdm_driver ec_rtdm_driver |
|
static |
Initial value:= {
.profile_info = RTDM_PROFILE_INFO(ec_rtdm,
RTDM_CLASS_EXPERIMENTAL,
222,
0),
.device_flags = RTDM_NAMED_DEVICE,
.device_count = 1,
.ops = {
.ioctl_rt = ec_rtdm_ioctl_rt,
},
}
int ec_rtdm_close(struct rtdm_dev_context *, rtdm_user_info_t *)
Driver close.
int ec_rtdm_ioctl(struct rtdm_dev_context *, rtdm_user_info_t *, unsigned int, void __user *)
Driver ioctl.
int ec_rtdm_open(struct rtdm_dev_context *, rtdm_user_info_t *, int)
Driver open.
Definition at line 276 of file rtdm_xenomai_v3.c.