drivers/can_can4linux/can4linux.h
author mwildbolz
Mon, 01 Oct 2012 17:09:55 +0200
changeset 752 48a0ebbefa74
parent 364 17edd8a028fa
permissions -rwxr-xr-x
Removed auto-generated object dictionary files from example folders
Updated .hgignore file (generated Makefiles, auto-generated OD files)
364
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
     1
/*
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
     2
 * can4linux.h - can4linux CAN driver module
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
     3
 *
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
     4
 * This file is subject to the terms and conditions of the GNU General Public
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
     5
 * License.  See the file "COPYING" in the main directory of this archive
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
     6
 * for more details.
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
     7
 *
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
     8
 * Copyright (c) 2001 port GmbH Halle/Saale
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
     9
 *------------------------------------------------------------------
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    10
 * $Header$
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    11
 *
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    12
 *--------------------------------------------------------------------------
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    13
 *
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    14
 *
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    15
 * modification history
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    16
 * --------------------
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    17
 * $Log$
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    18
 * Revision 1.1  2008-01-22 09:27:13  groke6
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    19
 * Added can4linux driver support.
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    20
 *
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    21
 * Revision 1.1  2004/08/12 10:14:31  jschoew
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    22
 * add can4linux examples
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    23
 *
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    24
 * Revision 1.5  2004/05/14 10:02:54  oe
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    25
 * - started supporting CPC-Card
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    26
 * - version number in can4linux.h available
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    27
 * - only one structure type for Config_par_t Command_par_t
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    28
 * - new ioctl command CMD_CLEARBUFFERS
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    29
 *
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    30
 * Revision 1.4  2003/08/27 17:49:04  oe
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    31
 * - New CanStatusPar structure
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    32
 *
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    33
 * Revision 1.3  2002/08/20 05:57:22  oe
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    34
 * - new write() handling, now not ovrwriting buffer content if buffer fill
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    35
 * - ioctl() get status returns buffer information
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    36
 *
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    37
 * Revision 1.2  2002/08/08 17:50:46  oe
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    38
 * - MSG_ERR_MASK extended
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    39
 *
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    40
 * Revision 1.1  2002/01/10 19:13:19  oe
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    41
 * - application header file changed name can.h -> can4linux.h
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    42
 *
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    43
 * Revision 1.2  2001/09/14 14:58:09  oe
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    44
 * first free release
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    45
 *
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    46
 * Revision 1.1.1.1  2001/06/11 18:30:54  oe
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    47
 * minimal version can4linux embedded, compile time Konfigurierbar
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    48
 *
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    49
 *
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    50
 *
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    51
 *
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    52
 *--------------------------------------------------------------------------
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    53
 */
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    54
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    55
/**
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    56
* \file can.h
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    57
* \author Heinz-Jrgen Oertel, port GmbH
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    58
* $Revision$
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    59
* $Date$
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    60
*
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    61
* can4linux interface definitions
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    62
*
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    63
*
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    64
*
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    65
*/
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    66
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    67
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    68
#ifndef __CAN_H
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    69
#define __CAN_H
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    70
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    71
#ifdef __cplusplus
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    72
extern "C" {
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    73
#endif
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    74
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    75
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    76
#define CAN4LINUXVERSION 0x0301 /*(Version 3.1)*/
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    77
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    78
#ifndef __KERNEL__
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    79
#include <sys/time.h>
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    80
#endif
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    81
 /*---------- the can message structure */
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    82
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    83
#define CAN_MSG_LENGTH 8		/**< maximum length of a CAN frame */
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    84
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    85
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    86
#define MSG_RTR		(1<<0)		/**< RTR Message */
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    87
#define MSG_OVR		(1<<1)		/**< CAN controller Msg overflow error */
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    88
#define MSG_EXT		(1<<2)		/**< extended message format */
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    89
#define MSG_PASSIVE	(1<<4)		/**< controller in error passive */
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    90
#define MSG_BUSOFF      (1<<5)		/**< controller Bus Off  */
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    91
#define MSG_       	(1<<6)		/**<  */
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    92
#define MSG_BOVR	(1<<7)		/**< receive/transmit buffer overflow */
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    93
/**
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    94
* mask used for detecting CAN errors in the canmsg_t flags field
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    95
*/
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    96
#define MSG_ERR_MASK	(MSG_OVR + MSG_PASSIVE + MSG_BUSOFF + MSG_BOVR)
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    97
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    98
/**
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
    99
* The CAN message structure.
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   100
* Used for all data transfers between the application and the driver
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   101
* using read() or write().
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   102
*/
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   103
typedef struct {
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   104
    /** flags, indicating or controlling special message properties */
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   105
    int             flags;
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   106
    int             cob;	 /**< CAN object number, used in Full CAN  */
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   107
    unsigned   long id;		 /**< CAN message ID, 4 bytes  */
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   108
    struct timeval  timestamp;	 /**< time stamp for received messages */
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   109
    short      int  length;	 /**< number of bytes in the CAN message */
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   110
    unsigned   char data[CAN_MSG_LENGTH]; /**< data, 0...8 bytes */
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   111
} canmsg_t;
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   112
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   113
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   114
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   115
/**
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   116
---------- IOCTL requests */
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   117
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   118
#define COMMAND 	 0	/**< IOCTL command request */
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   119
#define CONFIG 		 1	/**< IOCTL configuration request */
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   120
#define SEND 		 2	/**< IOCTL request */
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   121
#define RECEIVE 	 3	/**< IOCTL request */
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   122
#define CONFIGURERTR 	 4	/**< IOCTL request */
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   123
#define STATUS           5      /**< IOCTL status request */
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   124
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   125
/*---------- CAN ioctl parameter types */
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   126
/**
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   127
 IOCTL Command request parameter structure */
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   128
struct Command_par {
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   129
    int cmd;			/**< special driver command */
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   130
    int target;			/**< special configuration target */
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   131
    unsigned long val1;		/**< 1. parameter for the target */
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   132
    unsigned long val2;		/**< 2. parameter for the target */
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   133
    int error;	 		/**< return value */
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   134
    unsigned long retval;	/**< return value */
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   135
};
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   136
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   137
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   138
typedef struct Command_par Command_par_t ;
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   139
/**
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   140
 PSW made them all the same
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   141
 IOCTL Configuration request parameter structure */
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   142
typedef struct Command_par  Config_par_t ;
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   143
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   144
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   145
/**
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   146
 IOCTL generic CAN controller status request parameter structure */
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   147
typedef struct CanStatusPar { 
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   148
    unsigned int baud;			/**< actual bit rate */
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   149
    unsigned int status;		/**< CAN controller status register */
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   150
    unsigned int error_warning_limit;	/**< the error warning limit */
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   151
    unsigned int rx_errors;		/**< content of RX error counter */
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   152
    unsigned int tx_errors;		/**< content of TX error counter */
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   153
    unsigned int error_code;		/**< content of error code register */
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   154
    unsigned int rx_buffer_size;	/**< size of rx buffer  */
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   155
    unsigned int rx_buffer_used;	/**< number of messages */
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   156
    unsigned int tx_buffer_size;	/**< size of tx buffer  */
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   157
    unsigned int tx_buffer_used;	/**< number of messages */
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   158
    unsigned long retval;		/**< return value */
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   159
    unsigned int type;			/**< CAN controller / driver type */
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   160
} CanStatusPar_t;
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   161
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   162
/**
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   163
 IOCTL  CanStatusPar.type CAN controller hardware chips */
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   164
#define CAN_TYPE_UNSPEC		0
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   165
#define CAN_TYPE_SJA1000	1
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   166
#define CAN_TYPE_FlexCAN	2
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   167
#define CAN_TYPE_TouCAN		3
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   168
#define CAN_TYPE_82527		4
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   169
#define CAN_TYPE_TwinCAN	5
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   170
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   171
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   172
/**
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   173
 IOCTL Send request parameter structure */
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   174
typedef struct Send_par {
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   175
    canmsg_t *Tx;		/**< CAN message struct  */
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   176
    int error;	 		/**< return value for errno */
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   177
    unsigned long retval;	/**< return value */
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   178
} Send_par_t ;
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   179
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   180
/**
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   181
 IOCTL Receive request parameter structure */
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   182
typedef struct Receive_par {
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   183
    canmsg_t *Rx;		/**< CAN message struct  */
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   184
    int error;	 		/**< return value for errno */
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   185
    unsigned long retval;	/**< return value */
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   186
} Receive_par_t ;
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   187
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   188
/**
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   189
IOCTL ConfigureRTR request parameter structure */
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   190
typedef struct ConfigureRTR_par {
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   191
    unsigned message;		/**< CAN message ID */
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   192
    canmsg_t *Tx;		/**< CAN message struct  */
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   193
    int error;	 		/**< return value for errno */
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   194
    unsigned long retval;	/**< return value */
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   195
} ConfigureRTR_par_t ;
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   196
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   197
/**
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   198
---------- IOCTL Command subcommands and there targets */
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   199
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   200
# define CMD_START		1
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   201
# define CMD_STOP 		2
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   202
# define CMD_RESET		3
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   203
# define CMD_CLEARBUFFERS	4
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   204
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   205
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   206
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   207
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   208
/**
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   209
---------- IOCTL Configure targets */
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   210
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   211
# define CONF_ACC   	0	/* mask and code */
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   212
# define CONF_ACCM   	1	/* mask only */
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   213
# define CONF_ACCC   	2	/* code only */
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   214
# define CONF_TIMING	3	/* bit timing */
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   215
# define CONF_OMODE 	4	/* output control register */
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   216
# define CONF_FILTER	5
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   217
# define CONF_FENABLE	6
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   218
# define CONF_FDISABLE	7
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   219
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   220
#ifdef __cplusplus
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   221
}
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   222
#endif
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   223
17edd8a028fa Added can4linux driver support.
groke6
parents:
diff changeset
   224
#endif 	/* __CAN_H */