include/rtdm/rtdm.h File Reference


Detailed Description

Real-Time Driver Model for Xenomai, user API header.

Note:
Copyright (C) 2005, 2006 Jan Kiszka <jan.kiszka@web.de>

Copyright (C) 2005 Joerg Langenberg <joerg.langenberg@gmx.net>

Xenomai is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

Xenomai is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with Xenomai; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

#include <fcntl.h>
#include <stdint.h>
#include <sys/ioctl.h>
#include <sys/socket.h>

Go to the source code of this file.

API Versioning



#define RTDM_API_VER   5
 Common user and driver API version.
#define RTDM_API_MIN_COMPAT_VER   5
 Minimum API revision compatible with the current release.

RTDM_TIMEOUT_xxx

Special timeout values

#define RTDM_TIMEOUT_INFINITE   0
 Block forever.
#define RTDM_TIMEOUT_NONE   (-1)
 Any negative timeout means non-blocking.

RTDM_CLASS_xxx

Device classes

#define RTDM_CLASS_PARPORT   1
#define RTDM_CLASS_SERIAL   2
#define RTDM_CLASS_CAN   3
#define RTDM_CLASS_NETWORK   4
#define RTDM_CLASS_RTMAC   5
#define RTDM_CLASS_TESTING   6
#define RTDM_CLASS_EXPERIMENTAL   224
#define RTDM_CLASS_MAX   255

Device Naming

Maximum length of device names (excluding the final null character)

#define RTDM_MAX_DEVNAME_LEN   31

RTDM_PURGE_xxx_BUFFER

Flags selecting buffers to be purged

#define RTDM_PURGE_RX_BUFFER   0x0001
#define RTDM_PURGE_TX_BUFFER   0x0002

Common IOCTLs

The following IOCTLs shall be supported by any device profile if applicable

#define RTIOC_PURGE   _IOW(RTIOC_TYPE_COMMON, 0x10, int)
 Purge internal device or socket buffers.

Typedefs

typedef uint64_t nanosecs_abs_t
 RTDM type for representing absolute dates.
typedef int64_t nanosecs_rel_t
 RTDM type for representing relative intervals.


Generated on Mon Dec 25 13:57:10 2006 for Xenomai API by  doxygen 1.4.6