25 #define canCIRCUIT_ANY -1 26 #define canCARD_ANY -1 27 #define canCHANNEL_ANY -1 29 #define CANID_METAMSG (-1L) 30 #define CANID_WILDCARD (-2L) 39 typedef void* (*canMemoryAllocator) (
size_t size);
84 const unsigned int flags);
93 unsigned int * cardtype,
94 unsigned int * circtype,
102 #define canERR_BUFOFL canERR_RESERVED_3 103 #define canERR_REINIT canERR_RESERVED_4 104 #define canERR_MSGLOST canERR_RESERVED_5 105 #define canERR_OVERRUN canERR_RESERVED_6 106 #define canERR_CARDCOMMFAILED canERR_RESERVED_7 114 #define canCIRCSTAT_ERROR_PASSIVE 0x0001 115 #define canCIRCSTAT_BUS_OFF 0x0002 116 #define canCIRCSTAT_ERROR_WARNING 0x0004 124 #define canCHANNEL_CAP_DIAGNOSTICS 0x10000000L 125 #define canCHANNEL_CAP_CAN_DIAGNOSTICS canCHANNEL_CAP_RESERVED_2 126 #define canCHANNEL_CAP_REMOTE canCHANNEL_CAP_RESERVED_1 135 #define canSTICKY_ACK_ERROR 0x80000801 136 #define canSTICKY_FORM_ERROR 0x80000002 137 #define canSTICKY_STUFF_ERROR 0x80000004 138 #define canSTICKY_CRC_ERROR 0x80000008 139 #define canSTICKY_BIT0_ERROR 0x80000010 140 #define canSTICKY_BIT1_ERROR 0x80000020 141 #define canSTICKY_HW_OVERRUN 0x80000040 142 #define canSTICKY_SW_OVERRUN 0x80000080 145 #define canSTAT_INACTIVE canSTAT_RESERVED_1 177 #define canWANT_ACTIONS 0x01 178 #define canWANT_OWN_BUFFERS 0x02 179 #define canWANT_ERROR_COUNTERS 0x04 180 #define canWANT_EXCLUSIVE 0x08 181 #define canWANT_EXTENDED 0x10 182 #define canWANT_VIRTUAL 0x20 192 #define PCCAN_PHILIPS 1 193 #define PCCAN_INTEL526 2 194 #define PCCAN_INTEL527 3 195 #define CANCARD_NEC72005 4 196 #define CIRC_VIRTUAL 5 197 #define CIRC_SJA1000 6 205 #define canCARD_PCCAN 1 206 #define canCARD_CANCARD 2 207 #define canCARD_AC2 3 208 #define canCARD_LAPCAN 4 209 #define canCARD_ISACAN 5 210 #define canCARD_PCCAN_OEM 6 218 #define canFlgACCEPT 1 219 #define canFlgREJECT 2 229 #define canDISCARD_MESSAGE 3 230 #define canRETAIN_MESSAGE 4 239 #define canSLOW_MODE 0x01 249 #define canTRISTATE 1 251 #define canPULLDOWN 3 252 #define canPUSHPULL 4 253 #define canINVPULLUP 5 254 #define canINVPULLDOWN 6 255 #define canINVPUSHPULL 7 264 #define canIOCTL_LOCAL_ECHO_ON 3 265 #define canIOCTL_LOCAL_ECHO_OFF 4 267 #define canMSG_STATUS 0x0008 canStatus canGetCircuits(int *context, char *name, char *vendor, char *version, unsigned int *cardtype, unsigned int *circtype, unsigned int *channel)
unsigned int txBufSize
Definition: obsolete.h:60
canStatus
Definition: canstat.h:33
int circuitType
Definition: obsolete.h:50
canMemoryAllocator alloc
Definition: obsolete.h:61
canStatus canLocateHardware(void)
void *(* canMemoryAllocator)(size_t size)
Definition: obsolete.h:39
canStatus canUninstallAction(int handle, long id)
canStatus canInstallAction(int handle, long id, int(*fn)())
canStatus canInstallOwnBuffer(int handle, long id, unsigned int len, void *buf)
canMemoryDeallocator deAlloc
Definition: obsolete.h:62
int canOpen(const canHWDescr *const hwdescr, const canSWDescr *const swdescr, const unsigned int flags)
int cardType
Definition: obsolete.h:51
Definition: obsolete.h:49
struct tagCanSWDescr canSWDescr
int channel
Definition: obsolete.h:52
unsigned int rxBufSize
Definition: obsolete.h:59
Definition: obsolete.h:58
void(* canMemoryDeallocator)(void *p)
Definition: obsolete.h:44
struct tagCanHWDescr canHWDescr
unsigned int size
Definition: obsolete.h:69
canStatus canUninstallOwnBuffer(int handle, long id)
Definition: obsolete.h:68