23 #define canCIRCUIT_ANY -1 24 #define canCARD_ANY -1 25 #define canCHANNEL_ANY -1 27 #define CANID_METAMSG (-1L) 28 #define CANID_WILDCARD (-2L) 37 typedef void* (*canMemoryAllocator) (
size_t size);
69 unsigned int rxBufSize;
70 unsigned int txBufSize;
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 125 #define canCHANNEL_CAP_REMOTE canCHANNEL_CAP_RESERVED_1 133 #define canSTICKY_ACK_ERROR 0x80000801 134 #define canSTICKY_FORM_ERROR 0x80000002 135 #define canSTICKY_STUFF_ERROR 0x80000004 136 #define canSTICKY_CRC_ERROR 0x80000008 137 #define canSTICKY_BIT0_ERROR 0x80000010 138 #define canSTICKY_BIT1_ERROR 0x80000020 139 #define canSTICKY_HW_OVERRUN 0x80000040 140 #define canSTICKY_SW_OVERRUN 0x80000080 143 #define canSTAT_INACTIVE canSTAT_RESERVED_1 176 #define canWANT_ACTIONS 0x01 177 #define canWANT_OWN_BUFFERS 0x02 178 #define canWANT_ERROR_COUNTERS 0x04 179 #define canWANT_EXCLUSIVE 0x08 180 #define canWANT_EXTENDED 0x10 181 #define canWANT_VIRTUAL 0x20 191 #define PCCAN_PHILIPS 1 192 #define PCCAN_INTEL526 2 193 #define PCCAN_INTEL527 3 194 #define CANCARD_NEC72005 4 195 #define CIRC_VIRTUAL 5 196 #define CIRC_SJA1000 6 204 #define canCARD_PCCAN 1 205 #define canCARD_CANCARD 2 206 #define canCARD_AC2 3 207 #define canCARD_LAPCAN 4 208 #define canCARD_ISACAN 5 209 #define canCARD_PCCAN_OEM 6 217 #define canFlgACCEPT 1 218 #define canFlgREJECT 2 228 #define canDISCARD_MESSAGE 3 229 #define canRETAIN_MESSAGE 4 238 #define canSLOW_MODE 0x01 248 #define canTRISTATE 1 250 #define canPULLDOWN 3 251 #define canPUSHPULL 4 252 #define canINVPULLUP 5 253 #define canINVPULLDOWN 6 254 #define canINVPUSHPULL 7 263 #define canIOCTL_LOCAL_ECHO_ON 3 264 #define canIOCTL_LOCAL_ECHO_OFF 4 266 #define canMSG_STATUS 0x0008 int canOpen(const canHWDescr *const hwdescr, const canSWDescr *const swdescr, const unsigned int flags)
canStatus canInstallAction(int handle, long id, int(*fn)())
canMemoryAllocator alloc
Definition: obsolete.h:59
Definition: obsolete.h:56
void *(* canMemoryAllocator)(size_t size)
Definition: obsolete.h:37
int cardType
Definition: obsolete.h:49
Definition: obsolete.h:47
canStatus canGetCircuits(int *context, char *name, char *vendor, char *version, unsigned int *cardtype, unsigned int *circtype, unsigned int *channel)
unsigned int rxBufSize
Definition: obsolete.h:57
canStatus canInstallOwnBuffer(int handle, long id, unsigned int len, void *buf)
canMemoryDeallocator deAlloc
Definition: obsolete.h:60
int channel
Definition: obsolete.h:50
struct tagCanSWDescr canSWDescr
canStatus
Definition: canstat.h:46
canStatus canUninstallAction(int handle, long id)
struct tagCanHWDescr canHWDescr
unsigned int txBufSize
Definition: obsolete.h:58
canStatus canUninstallOwnBuffer(int handle, long id)
canStatus canLocateHardware(void)
void(* canMemoryDeallocator)(void *p)
Definition: obsolete.h:42
int circuitType
Definition: obsolete.h:48