Device Profiles
[Real-Time Driver Model]


Detailed Description

Device profiles define which operation handlers a driver of a certain class has to implement, which name or protocol it has to register, which IOCTLs it has to provide, and further details. Sub-classes can be defined in order to extend a device profile with more hardware-specific functions.


Modules

 CAN Devices
 Serial Devices
 Testing Devices

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.


Define Documentation

#define RTIOC_PURGE   _IOW(RTIOC_TYPE_COMMON, 0x10, int)
 

Purge internal device or socket buffers.

Parameters:
[in] arg Purge mask, see RTDM_PURGE_xxx_BUFFER


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