VCanD.h File Reference

#include <pshpack1.h>
#include <poppack.h>

Go to the source code of this file.

Classes

struct  s_vcan_msg
struct  s_vcan_chip_state
union  s_vcan_tag_data
struct  s_vcan_event
struct  _Vset_acceptance
struct  VchipParams
struct  s_vcan_channel_config
struct  s_vcan_driver_config

Defines

#define _EXPORT_API
#define _EXPORT_DECL   __declspec(dllimport) _EXPORT_API
#define _EXPORT_DEF   __declspec(dllimport) _EXPORT_API
#define MAX_MSG_LEN   8
#define EXT_MSG   0x80000000
#define VCAN_EXT_MSG_ID   EXT_MSG
#define VCAN_MSG_FLAG_ERROR_FRAME   0x01
#define VCAN_MSG_FLAG_OVERRUN   0x02
#define VCAN_MSG_FLAG_NERR   0x04
#define VCAN_MSG_FLAG_WAKEUP   0x08
#define VCAN_MSG_FLAG_REMOTE_FRAME   0x10
#define VCAN_MSG_FLAG_RESERVED_1   0x20
#define VCAN_MSG_FLAG_TX_NOTIFY   0x40
#define VCAN_MSG_FLAG_TX_START   0x80
#define MSGFLAG_ERROR_FRAME   VCAN_MSG_FLAG_ERROR_FRAME
#define MSGFLAG_OVERRUN   VCAN_MSG_FLAG_OVERRUN
#define MSGFLAG_NERR   VCAN_MSG_FLAG_NERR
#define MSGFLAG_WAKEUP   VCAN_MSG_FLAG_WAKEUP
#define MSGFLAG_REMOTE_FRAME   VCAN_MSG_FLAG_REMOTE_FRAME
#define MSGFLAG_RESERVED_1   VCAN_MSG_FLAG_RESERVED_1
#define MSGFLAG_TX   VCAN_MSG_FLAG_TX_NOTIFY
#define MSGFLAG_TXRQ   VCAN_MSG_FLAG_TX_START
#define CHIPSTAT_BUSOFF   0x01
#define CHIPSTAT_ERROR_PASSIVE   0x02
#define CHIPSTAT_ERROR_WARNING   0x04
#define CHIPSTAT_ERROR_ACTIVE   0x08
#define OUTPUT_MODE_SILENT   0
#define OUTPUT_MODE_NORMAL   1
#define TRANSCEIVER_EVENT_ERROR   1
#define TRANSCEIVER_EVENT_CHANGED   2
#define VCAN_TRANSCEIVER_TYPE_NONE   0
#define VCAN_TRANSCEIVER_TYPE_251   1
#define VCAN_TRANSCEIVER_TYPE_252   2
#define VCAN_TRANSCEIVER_TYPE_DNOPTO   3
#define VCAN_TRANSCEIVER_TYPE_W210   4
#define VCAN_TRANSCEIVER_TYPE_SWC_PROTO   5
#define VCAN_TRANSCEIVER_TYPE_SWC   6
#define VCAN_TRANSCEIVER_TYPE_EVA   7
#define VCAN_TRANSCEIVER_TYPE_FIBER   8
#define VCAN_TRANSCEIVER_TYPE_K251   9
#define VCAN_TRANSCEIVER_TYPE_K   10
#define VCAN_TRANSCEIVER_TYPE_1054_OPTO   11
#define VCAN_TRANSCEIVER_TYPE_SWC_OPTO   12
#define VCAN_TRANSCEIVER_TYPE_B10011S   13
#define VCAN_TRANSCEIVER_TYPE_1050   14
#define VCAN_TRANSCEIVER_TYPE_1050_OPTO   15
#define VCAN_TRANSCEIVER_TYPE_1041   16
#define VCAN_TRANSCEIVER_TYPE_1041_OPTO   17
#define TRANSCEIVER_TYPE_NONE   VCAN_TRANSCEIVER_TYPE_NONE
#define TRANSCEIVER_TYPE_251   VCAN_TRANSCEIVER_TYPE_251
#define TRANSCEIVER_TYPE_252   VCAN_TRANSCEIVER_TYPE_252
#define TRANSCEIVER_TYPE_DNOPTO   VCAN_TRANSCEIVER_TYPE_DNOPTO
#define TRANSCEIVER_TYPE_W210   VCAN_TRANSCEIVER_TYPE_W210
#define TRANSCEIVER_TYPE_SWC_PROTO   VCAN_TRANSCEIVER_TYPE_SWC_PROTO
#define TRANSCEIVER_TYPE_SWC   VCAN_TRANSCEIVER_TYPE_SWC
#define VCAN_TRANSCEIVER_LINEMODE_NA   0
#define VCAN_TRANSCEIVER_LINEMODE_TWO_LINE   1
#define VCAN_TRANSCEIVER_LINEMODE_CAN_H   2
#define VCAN_TRANSCEIVER_LINEMODE_CAN_L   3
#define VCAN_TRANSCEIVER_LINEMODE_SWC_SLEEP   4
#define VCAN_TRANSCEIVER_LINEMODE_SWC_NORMAL   5
#define VCAN_TRANSCEIVER_LINEMODE_SWC_FAST   6
#define VCAN_TRANSCEIVER_LINEMODE_SWC_WAKEUP   7
#define VCAN_TRANSCEIVER_LINEMODE_SLEEP   8
#define VCAN_TRANSCEIVER_LINEMODE_NORMAL   9
#define VCAN_TRANSCEIVER_LINEMODE_STDBY   10
#define VCAN_TRANSCEIVER_LINEMODE_TT_CAN_H   11
#define VCAN_TRANSCEIVER_LINEMODE_TT_CAN_L   12
#define TRANSCEIVER_LINEMODE_NA   VCAN_TRANSCEIVER_LINEMODE_NA
#define TRANSCEIVER_LINEMODE_TWO_LINE   VCAN_TRANSCEIVER_LINEMODE_TWO_LINE
#define TRANSCEIVER_LINEMODE_CAN_H   VCAN_TRANSCEIVER_LINEMODE_CAN_H
#define TRANSCEIVER_LINEMODE_CAN_L   VCAN_TRANSCEIVER_LINEMODE_CAN_L
#define TRANSCEIVER_LINEMODE_SWC_SLEEP   VCAN_TRANSCEIVER_LINEMODE_SWC_SLEEP
#define TRANSCEIVER_LINEMODE_SWC_NORMAL   VCAN_TRANSCEIVER_LINEMODE_SWC_NORMAL
#define TRANSCEIVER_LINEMODE_SWC_FAST   VCAN_TRANSCEIVER_LINEMODE_SWC_FAST
#define TRANSCEIVER_LINEMODE_SWC_WAKEUP   VCAN_TRANSCEIVER_LINEMODE_SWC_WAKEUP
#define TRANSCEIVER_LINEMODE_SLEEP   VCAN_TRANSCEIVER_LINEMODE_SLEEP
#define TRANSCEIVER_LINEMODE_NORMAL   VCAN_TRANSCEIVER_LINEMODE_NORMAL
#define VCAN_TRANSCEIVER_RESNET_NA   0
#define VCAN_TRANSCEIVER_RESNET_MASTER   1
#define VCAN_TRANSCEIVER_RESNET_MASTER_STBY   2
#define VCAN_TRANSCEIVER_RESNET_SLAVE   3
#define TRANSCEIVER_RESNET_NA   VCAN_TRANSCEIVER_RESNET_NA
#define TRANSCEIVER_RESNET_MASTER   VCAN_TRANSCEIVER_RESNET_MASTER
#define TRANSCEIVER_RESNET_MASTER_STBY   VCAN_TRANSCEIVER_RESNET_MASTER_STBY
#define TRANSCEIVER_RESNET_SLAVE   VCAN_TRANSCEIVER_RESNET_SLAVE
#define DriverNotifyMessageName   "VectorCanDriverChangeNotifyMessage"
#define HWTYPE_NONE   0
#define HWTYPE_VIRTUAL   1
#define HWTYPE_CANCARDX   2
#define HWTYPE_CANPARI   3
#define HWTYPE_CANAC2   5
#define HWTYPE_CANAC2PCI   6
#define HWTYPE_CANCARDY   12
#define MAX_HWTYPE   12
#define CHANNEL_MASK(x)   (1<<(x))
#define MAX_APPNAME   32
#define VCAN_WAIT   0
#define VCAN_POLL   1
#define VCAN_NOTIFY   2
#define VSUCCESS   0
#define VPENDING   1
#define VERR_QUEUE_IS_EMPTY   10
#define VERR_QUEUE_IS_FULL   11
#define VERR_TX_NOT_POSSIBLE   12
#define VERR_NO_LICENSE   14
#define VERR_WRONG_PARAMETER   101
#define VERR_TWICE_REGISTER   110
#define VERR_INVALID_CHAN_INDEX   111
#define VERR_INVALID_ACCESS   112
#define VERR_PORT_IS_OFFLINE   113
#define VERR_CHAN_IS_ONLINE   116
#define VERR_NOT_IMPLEMENTED   117
#define VERR_INVALID_PORT   118
#define VERR_HW_NOT_READY   120
#define VERR_CMD_TIMEOUT   121
#define VERR_HW_NOT_PRESENT   129
#define VERR_NOTIFY_ALREADY_ACTIVE   131
#define VERR_NO_RESOURCES   152
#define VERR_WRONG_CHIP_TYPE   153
#define VERR_WRONG_COMMAND   154
#define VERR_INVALID_HANDLE   155
#define VERR_CANNOT_OPEN_DRIVER   201
#define VERROR   255
#define MAX_DRIVER_NAME   31
#define MAX_CHANNEL_NAME   31
#define MAX_CHAN_NAME   MAX_CHANNEL_NAME
#define INVALID_PORTHANDLE   (-1)
#define SIZEOF_VDRIVERCONFIG(n)   (sizeof(VDriverConfig)+(n-1)*sizeof(VChannelConfig))

Typedefs

typedef char * ncdStringType
typedef unsigned long Vaccess
typedef unsigned char VeventTag
typedef struct s_vcan_event VCAN_EVENT
typedef struct s_vcan_event Vevent
typedef struct s_vcan_eventPVevent
typedef short Vstatus
typedef struct _Vset_acceptance VsetAcceptance
typedef long VportHandle
typedef long * PVportHandle
typedef struct
s_vcan_channel_config 
VCAN_CHANNEL_CONFIG
typedef VCAN_CHANNEL_CONFIG VChannelConfig
typedef VCAN_CHANNEL_CONFIGPVChannelConfig
typedef struct s_vcan_driver_config VCAN_DRIVER_CONFIG
typedef VCAN_DRIVER_CONFIG VDriverConfig
typedef VCAN_DRIVER_CONFIGPVDriverConfig

Enumerations

enum  e_vevent_type {
  V_NO_COMMAND = 0, V_RECEIVE_MSG = 1, V_CHIP_STATE = 4, V_TIMER = 8,
  V_TRANSMIT_MSG = 10
}
enum  VCAN_NOTIFY_REASON { UNKNOWN = 0, HARDWARE_CHANGED = 1, APP_SETTINGS_CHANGED = 2 }

Functions

Vstatus _EXPORT_DECL ncdOpenDriver (void)
Vstatus _EXPORT_DECL ncdGetDriverConfig (int *pChanCount, VDriverConfig *pDriverConfig)
int _EXPORT_DECL ncdGetChannelIndex (int hwType, int hwIndex, int hwChannel)
Vaccess _EXPORT_DECL ncdGetChannelMask (int hwType, int hwIndex, int hwChannel)
Vstatus _EXPORT_DECL ncdOpenPort (VportHandle *portHandle, char *userName, Vaccess accessMask, Vaccess initMask, Vaccess *permissionMask, int rxQueueSize)
Vstatus _EXPORT_DECL ncdSetChannelMode (VportHandle portHandle, Vaccess accessMask, int tx, int txrq)
Vstatus _EXPORT_DECL ncdSetChannelOutput (VportHandle portHandle, Vaccess accessMask, int mode)
Vstatus _EXPORT_DECL ncdSetChannelTransceiver (VportHandle portHandle, Vaccess accessMask, int type, int lineMode, int resNet)
Vstatus _EXPORT_DECL ncdSetChannelParams (VportHandle portHandle, Vaccess accessMask, VchipParams *pChipParams)
Vstatus _EXPORT_DECL ncdSetChannelParamsC200 (VportHandle portHandle, Vaccess accessMask, unsigned char btr0, unsigned char btr1)
Vstatus _EXPORT_DECL ncdSetChannelBitrate (VportHandle portHandle, Vaccess accessMask, unsigned long bitrate)
Vstatus _EXPORT_DECL ncdSetChannelAcceptance (VportHandle portHandle, Vaccess accessMask, VsetAcceptance *filter)
Vstatus _EXPORT_DECL ncdSetTimerRate (VportHandle portHandle, unsigned long timerRate)
Vstatus _EXPORT_DECL ncdResetClock (VportHandle portHandle)
Vstatus _EXPORT_DECL ncdSetNotification (VportHandle portHandle, unsigned long *handle, int queueLevel)
Vstatus _EXPORT_DECL ncdTransmit (VportHandle portHandle, Vaccess accessMask, Vevent *pEvent)
Vstatus _EXPORT_DECL ncdReceive1 (VportHandle portHandle, Vevent **ppEvent)
Vstatus _EXPORT_DECL ncdReceive (VportHandle portHandle, int receiveMode, unsigned int waitHandle, int *pEventCount, Vevent *pEventList)
Vstatus _EXPORT_DECL ncdRequestChipState (VportHandle portHandle, Vaccess accessMask)
Vstatus _EXPORT_DECL ncdFlushTransmitQueue (VportHandle portHandle, Vaccess accessMask)
Vstatus _EXPORT_DECL ncdFlushReceiveQueue (VportHandle portHandle)
Vstatus _EXPORT_DECL ncdGetReceiveQueueLevel (VportHandle portHandle, int *level)
Vstatus _EXPORT_DECL ncdGetState (VportHandle portHandle)
Vstatus _EXPORT_DECL ncdActivateChannel (VportHandle portHandle, Vaccess accessMask)
Vstatus _EXPORT_DECL ncdDeactivateChannel (VportHandle portHandle, Vaccess accessMask)
Vstatus _EXPORT_DECL ncdClosePort (VportHandle portHandle)
Vstatus _EXPORT_DECL ncdCloseDriver (void)
ncdStringType _EXPORT_DECL ncdGetErrorString (Vstatus err)
ncdStringType _EXPORT_DECL ncdGetEventString (Vevent *ev)
Vstatus _EXPORT_DECL ncdGetApplConfig (char *appName, int appChannel, int *hwType, int *hwIndex, int *hwChannel)
Vstatus _EXPORT_DECL ncdSetApplConfig (char *appName, int appChannel, int hwType, int hwIndex, int hwChannel)
Vstatus _EXPORT_DECL ncdGetChannelVersion (unsigned long ChannelIndex, unsigned long *FwVersion, unsigned long *HwVersion, unsigned long *SerialNumber)
Vstatus _EXPORT_DECL ncdSetReceiveMode (VportHandle Port, unsigned char ErrorFrame, unsigned char ChipState)
Vstatus _EXPORT_DECL ncdAddAcceptanceRange (VportHandle portHandle, Vaccess accessMask, unsigned long first_id, unsigned long last_id)
Vstatus _EXPORT_DECL ncdRemoveAcceptanceRange (VportHandle portHandle, Vaccess accessMask, unsigned long first_id, unsigned long last_id)
Vstatus _EXPORT_DECL ncdResetAcceptance (VportHandle portHandle, Vaccess accessMask, int extended)

Define Documentation

#define _EXPORT_API

Definition at line 28 of file VCanD.h.

#define _EXPORT_DECL   __declspec(dllimport) _EXPORT_API

Definition at line 36 of file VCanD.h.

#define _EXPORT_DEF   __declspec(dllimport) _EXPORT_API

Definition at line 37 of file VCanD.h.

#define CHANNEL_MASK (  )     (1<<(x))

Definition at line 243 of file VCanD.h.

#define CHIPSTAT_BUSOFF   0x01

Definition at line 93 of file VCanD.h.

#define CHIPSTAT_ERROR_ACTIVE   0x08

Definition at line 96 of file VCanD.h.

#define CHIPSTAT_ERROR_PASSIVE   0x02

Definition at line 94 of file VCanD.h.

#define CHIPSTAT_ERROR_WARNING   0x04

Definition at line 95 of file VCanD.h.

#define DriverNotifyMessageName   "VectorCanDriverChangeNotifyMessage"

Definition at line 223 of file VCanD.h.

#define EXT_MSG   0x80000000

Definition at line 57 of file VCanD.h.

#define HWTYPE_CANAC2   5

Definition at line 236 of file VCanD.h.

#define HWTYPE_CANAC2PCI   6

Definition at line 237 of file VCanD.h.

#define HWTYPE_CANCARDX   2

Definition at line 234 of file VCanD.h.

#define HWTYPE_CANCARDY   12

Definition at line 238 of file VCanD.h.

#define HWTYPE_CANPARI   3

Definition at line 235 of file VCanD.h.

#define HWTYPE_NONE   0

Definition at line 232 of file VCanD.h.

#define HWTYPE_VIRTUAL   1

Definition at line 233 of file VCanD.h.

#define INVALID_PORTHANDLE   (-1)

Definition at line 307 of file VCanD.h.

#define MAX_APPNAME   32

Definition at line 245 of file VCanD.h.

#define MAX_CHAN_NAME   MAX_CHANNEL_NAME

Definition at line 285 of file VCanD.h.

#define MAX_CHANNEL_NAME   31

Definition at line 284 of file VCanD.h.

#define MAX_DRIVER_NAME   31

Definition at line 283 of file VCanD.h.

#define MAX_HWTYPE   12

Definition at line 239 of file VCanD.h.

#define MAX_MSG_LEN   8

Definition at line 54 of file VCanD.h.

#define MSGFLAG_ERROR_FRAME   VCAN_MSG_FLAG_ERROR_FRAME

Definition at line 73 of file VCanD.h.

#define MSGFLAG_NERR   VCAN_MSG_FLAG_NERR

Definition at line 75 of file VCanD.h.

#define MSGFLAG_OVERRUN   VCAN_MSG_FLAG_OVERRUN

Definition at line 74 of file VCanD.h.

#define MSGFLAG_REMOTE_FRAME   VCAN_MSG_FLAG_REMOTE_FRAME

Definition at line 77 of file VCanD.h.

#define MSGFLAG_RESERVED_1   VCAN_MSG_FLAG_RESERVED_1

Definition at line 78 of file VCanD.h.

#define MSGFLAG_TX   VCAN_MSG_FLAG_TX_NOTIFY

Definition at line 79 of file VCanD.h.

#define MSGFLAG_TXRQ   VCAN_MSG_FLAG_TX_START

Definition at line 80 of file VCanD.h.

#define MSGFLAG_WAKEUP   VCAN_MSG_FLAG_WAKEUP

Definition at line 76 of file VCanD.h.

#define OUTPUT_MODE_NORMAL   1

Definition at line 107 of file VCanD.h.

#define OUTPUT_MODE_SILENT   0

Definition at line 106 of file VCanD.h.

#define SIZEOF_VDRIVERCONFIG (  )     (sizeof(VDriverConfig)+(n-1)*sizeof(VChannelConfig))

Definition at line 341 of file VCanD.h.

#define TRANSCEIVER_EVENT_CHANGED   2

Definition at line 112 of file VCanD.h.

#define TRANSCEIVER_EVENT_ERROR   1

Definition at line 111 of file VCanD.h.

#define TRANSCEIVER_LINEMODE_CAN_H   VCAN_TRANSCEIVER_LINEMODE_CAN_H

Definition at line 166 of file VCanD.h.

#define TRANSCEIVER_LINEMODE_CAN_L   VCAN_TRANSCEIVER_LINEMODE_CAN_L

Definition at line 167 of file VCanD.h.

#define TRANSCEIVER_LINEMODE_NA   VCAN_TRANSCEIVER_LINEMODE_NA

Definition at line 164 of file VCanD.h.

#define TRANSCEIVER_LINEMODE_NORMAL   VCAN_TRANSCEIVER_LINEMODE_NORMAL

Definition at line 173 of file VCanD.h.

#define TRANSCEIVER_LINEMODE_SLEEP   VCAN_TRANSCEIVER_LINEMODE_SLEEP

Definition at line 172 of file VCanD.h.

#define TRANSCEIVER_LINEMODE_SWC_FAST   VCAN_TRANSCEIVER_LINEMODE_SWC_FAST

Definition at line 170 of file VCanD.h.

#define TRANSCEIVER_LINEMODE_SWC_NORMAL   VCAN_TRANSCEIVER_LINEMODE_SWC_NORMAL

Definition at line 169 of file VCanD.h.

#define TRANSCEIVER_LINEMODE_SWC_SLEEP   VCAN_TRANSCEIVER_LINEMODE_SWC_SLEEP

Definition at line 168 of file VCanD.h.

#define TRANSCEIVER_LINEMODE_SWC_WAKEUP   VCAN_TRANSCEIVER_LINEMODE_SWC_WAKEUP

Definition at line 171 of file VCanD.h.

#define TRANSCEIVER_LINEMODE_TWO_LINE   VCAN_TRANSCEIVER_LINEMODE_TWO_LINE

Definition at line 165 of file VCanD.h.

#define TRANSCEIVER_RESNET_MASTER   VCAN_TRANSCEIVER_RESNET_MASTER

Definition at line 182 of file VCanD.h.

#define TRANSCEIVER_RESNET_MASTER_STBY   VCAN_TRANSCEIVER_RESNET_MASTER_STBY

Definition at line 183 of file VCanD.h.

#define TRANSCEIVER_RESNET_NA   VCAN_TRANSCEIVER_RESNET_NA

Definition at line 181 of file VCanD.h.

#define TRANSCEIVER_RESNET_SLAVE   VCAN_TRANSCEIVER_RESNET_SLAVE

Definition at line 184 of file VCanD.h.

#define TRANSCEIVER_TYPE_251   VCAN_TRANSCEIVER_TYPE_251

Definition at line 138 of file VCanD.h.

#define TRANSCEIVER_TYPE_252   VCAN_TRANSCEIVER_TYPE_252

Definition at line 139 of file VCanD.h.

#define TRANSCEIVER_TYPE_DNOPTO   VCAN_TRANSCEIVER_TYPE_DNOPTO

Definition at line 140 of file VCanD.h.

#define TRANSCEIVER_TYPE_NONE   VCAN_TRANSCEIVER_TYPE_NONE

Definition at line 137 of file VCanD.h.

#define TRANSCEIVER_TYPE_SWC   VCAN_TRANSCEIVER_TYPE_SWC

Definition at line 143 of file VCanD.h.

#define TRANSCEIVER_TYPE_SWC_PROTO   VCAN_TRANSCEIVER_TYPE_SWC_PROTO

Definition at line 142 of file VCanD.h.

#define TRANSCEIVER_TYPE_W210   VCAN_TRANSCEIVER_TYPE_W210

Definition at line 141 of file VCanD.h.

#define VCAN_EXT_MSG_ID   EXT_MSG

Definition at line 58 of file VCanD.h.

#define VCAN_MSG_FLAG_ERROR_FRAME   0x01

Definition at line 60 of file VCanD.h.

#define VCAN_MSG_FLAG_NERR   0x04

Definition at line 65 of file VCanD.h.

#define VCAN_MSG_FLAG_OVERRUN   0x02

Definition at line 61 of file VCanD.h.

#define VCAN_MSG_FLAG_REMOTE_FRAME   0x10

Definition at line 67 of file VCanD.h.

#define VCAN_MSG_FLAG_RESERVED_1   0x20

Definition at line 68 of file VCanD.h.

#define VCAN_MSG_FLAG_TX_NOTIFY   0x40

Definition at line 69 of file VCanD.h.

#define VCAN_MSG_FLAG_TX_START   0x80

Definition at line 70 of file VCanD.h.

#define VCAN_MSG_FLAG_WAKEUP   0x08

Definition at line 66 of file VCanD.h.

#define VCAN_NOTIFY   2

Definition at line 251 of file VCanD.h.

#define VCAN_POLL   1

Definition at line 250 of file VCanD.h.

#define VCAN_TRANSCEIVER_LINEMODE_CAN_H   2

Definition at line 150 of file VCanD.h.

#define VCAN_TRANSCEIVER_LINEMODE_CAN_L   3

Definition at line 151 of file VCanD.h.

#define VCAN_TRANSCEIVER_LINEMODE_NA   0

Definition at line 148 of file VCanD.h.

#define VCAN_TRANSCEIVER_LINEMODE_NORMAL   9

Definition at line 157 of file VCanD.h.

#define VCAN_TRANSCEIVER_LINEMODE_SLEEP   8

Definition at line 156 of file VCanD.h.

#define VCAN_TRANSCEIVER_LINEMODE_STDBY   10

Definition at line 158 of file VCanD.h.

#define VCAN_TRANSCEIVER_LINEMODE_SWC_FAST   6

Definition at line 154 of file VCanD.h.

#define VCAN_TRANSCEIVER_LINEMODE_SWC_NORMAL   5

Definition at line 153 of file VCanD.h.

#define VCAN_TRANSCEIVER_LINEMODE_SWC_SLEEP   4

Definition at line 152 of file VCanD.h.

#define VCAN_TRANSCEIVER_LINEMODE_SWC_WAKEUP   7

Definition at line 155 of file VCanD.h.

#define VCAN_TRANSCEIVER_LINEMODE_TT_CAN_H   11

Definition at line 159 of file VCanD.h.

#define VCAN_TRANSCEIVER_LINEMODE_TT_CAN_L   12

Definition at line 160 of file VCanD.h.

#define VCAN_TRANSCEIVER_LINEMODE_TWO_LINE   1

Definition at line 149 of file VCanD.h.

#define VCAN_TRANSCEIVER_RESNET_MASTER   1

Definition at line 177 of file VCanD.h.

#define VCAN_TRANSCEIVER_RESNET_MASTER_STBY   2

Definition at line 178 of file VCanD.h.

#define VCAN_TRANSCEIVER_RESNET_NA   0

Definition at line 176 of file VCanD.h.

#define VCAN_TRANSCEIVER_RESNET_SLAVE   3

Definition at line 179 of file VCanD.h.

#define VCAN_TRANSCEIVER_TYPE_1041   16

Definition at line 132 of file VCanD.h.

#define VCAN_TRANSCEIVER_TYPE_1041_OPTO   17

Definition at line 133 of file VCanD.h.

#define VCAN_TRANSCEIVER_TYPE_1050   14

Definition at line 130 of file VCanD.h.

#define VCAN_TRANSCEIVER_TYPE_1050_OPTO   15

Definition at line 131 of file VCanD.h.

#define VCAN_TRANSCEIVER_TYPE_1054_OPTO   11

Definition at line 127 of file VCanD.h.

#define VCAN_TRANSCEIVER_TYPE_251   1

Definition at line 117 of file VCanD.h.

#define VCAN_TRANSCEIVER_TYPE_252   2

Definition at line 118 of file VCanD.h.

#define VCAN_TRANSCEIVER_TYPE_B10011S   13

Definition at line 129 of file VCanD.h.

#define VCAN_TRANSCEIVER_TYPE_DNOPTO   3

Definition at line 119 of file VCanD.h.

#define VCAN_TRANSCEIVER_TYPE_EVA   7

Definition at line 123 of file VCanD.h.

#define VCAN_TRANSCEIVER_TYPE_FIBER   8

Definition at line 124 of file VCanD.h.

#define VCAN_TRANSCEIVER_TYPE_K   10

Definition at line 126 of file VCanD.h.

#define VCAN_TRANSCEIVER_TYPE_K251   9

Definition at line 125 of file VCanD.h.

#define VCAN_TRANSCEIVER_TYPE_NONE   0

Definition at line 116 of file VCanD.h.

#define VCAN_TRANSCEIVER_TYPE_SWC   6

Definition at line 122 of file VCanD.h.

#define VCAN_TRANSCEIVER_TYPE_SWC_OPTO   12

Definition at line 128 of file VCanD.h.

#define VCAN_TRANSCEIVER_TYPE_SWC_PROTO   5

Definition at line 121 of file VCanD.h.

#define VCAN_TRANSCEIVER_TYPE_W210   4

Definition at line 120 of file VCanD.h.

#define VCAN_WAIT   0

Definition at line 249 of file VCanD.h.

#define VERR_CANNOT_OPEN_DRIVER   201

Definition at line 280 of file VCanD.h.

#define VERR_CHAN_IS_ONLINE   116

Definition at line 269 of file VCanD.h.

#define VERR_CMD_TIMEOUT   121

Definition at line 273 of file VCanD.h.

#define VERR_HW_NOT_PRESENT   129

Definition at line 274 of file VCanD.h.

#define VERR_HW_NOT_READY   120

Definition at line 272 of file VCanD.h.

#define VERR_INVALID_ACCESS   112

Definition at line 267 of file VCanD.h.

#define VERR_INVALID_CHAN_INDEX   111

Definition at line 266 of file VCanD.h.

#define VERR_INVALID_HANDLE   155

Definition at line 279 of file VCanD.h.

#define VERR_INVALID_PORT   118

Definition at line 271 of file VCanD.h.

#define VERR_NO_LICENSE   14

Definition at line 263 of file VCanD.h.

#define VERR_NO_RESOURCES   152

Definition at line 276 of file VCanD.h.

#define VERR_NOT_IMPLEMENTED   117

Definition at line 270 of file VCanD.h.

#define VERR_NOTIFY_ALREADY_ACTIVE   131

Definition at line 275 of file VCanD.h.

#define VERR_PORT_IS_OFFLINE   113

Definition at line 268 of file VCanD.h.

#define VERR_QUEUE_IS_EMPTY   10

Definition at line 260 of file VCanD.h.

#define VERR_QUEUE_IS_FULL   11

Definition at line 261 of file VCanD.h.

#define VERR_TWICE_REGISTER   110

Definition at line 265 of file VCanD.h.

#define VERR_TX_NOT_POSSIBLE   12

Definition at line 262 of file VCanD.h.

#define VERR_WRONG_CHIP_TYPE   153

Definition at line 277 of file VCanD.h.

#define VERR_WRONG_COMMAND   154

Definition at line 278 of file VCanD.h.

#define VERR_WRONG_PARAMETER   101

Definition at line 264 of file VCanD.h.

#define VERROR   255

Definition at line 281 of file VCanD.h.

#define VPENDING   1

Definition at line 258 of file VCanD.h.

#define VSUCCESS   0

Definition at line 257 of file VCanD.h.


Typedef Documentation

typedef char* ncdStringType

Definition at line 42 of file VCanD.h.

Definition at line 327 of file VCanD.h.

Definition at line 339 of file VCanD.h.

typedef struct s_vcan_event * PVevent

Definition at line 220 of file VCanD.h.

typedef long * PVportHandle

Definition at line 308 of file VCanD.h.

typedef unsigned long Vaccess

Definition at line 46 of file VCanD.h.

typedef struct s_vcan_event VCAN_EVENT

Definition at line 220 of file VCanD.h.

Definition at line 326 of file VCanD.h.

Definition at line 338 of file VCanD.h.

typedef struct s_vcan_event Vevent

Definition at line 220 of file VCanD.h.

typedef unsigned char VeventTag

Definition at line 202 of file VCanD.h.

typedef long VportHandle

Definition at line 308 of file VCanD.h.

typedef short Vstatus

Definition at line 255 of file VCanD.h.


Enumeration Type Documentation

Enumerator:
V_NO_COMMAND 
V_RECEIVE_MSG 
V_CHIP_STATE 
V_TIMER 
V_TRANSMIT_MSG 

Definition at line 188 of file VCanD.h.

Enumerator:
UNKNOWN 
HARDWARE_CHANGED 
APP_SETTINGS_CHANGED 

Definition at line 225 of file VCanD.h.


Function Documentation

Vstatus _EXPORT_DECL ncdActivateChannel ( VportHandle  portHandle,
Vaccess  accessMask 
)
Vstatus _EXPORT_DECL ncdAddAcceptanceRange ( VportHandle  portHandle,
Vaccess  accessMask,
unsigned long  first_id,
unsigned long  last_id 
)
Vstatus _EXPORT_DECL ncdCloseDriver ( void   ) 
Vstatus _EXPORT_DECL ncdClosePort ( VportHandle  portHandle  ) 
Vstatus _EXPORT_DECL ncdDeactivateChannel ( VportHandle  portHandle,
Vaccess  accessMask 
)
Vstatus _EXPORT_DECL ncdFlushReceiveQueue ( VportHandle  portHandle  ) 
Vstatus _EXPORT_DECL ncdFlushTransmitQueue ( VportHandle  portHandle,
Vaccess  accessMask 
)
Vstatus _EXPORT_DECL ncdGetApplConfig ( char *  appName,
int  appChannel,
int *  hwType,
int *  hwIndex,
int *  hwChannel 
)
int _EXPORT_DECL ncdGetChannelIndex ( int  hwType,
int  hwIndex,
int  hwChannel 
)
Vaccess _EXPORT_DECL ncdGetChannelMask ( int  hwType,
int  hwIndex,
int  hwChannel 
)
Vstatus _EXPORT_DECL ncdGetChannelVersion ( unsigned long  ChannelIndex,
unsigned long *  FwVersion,
unsigned long *  HwVersion,
unsigned long *  SerialNumber 
)
Vstatus _EXPORT_DECL ncdGetDriverConfig ( int *  pChanCount,
VDriverConfig pDriverConfig 
)
ncdStringType _EXPORT_DECL ncdGetErrorString ( Vstatus  err  ) 
ncdStringType _EXPORT_DECL ncdGetEventString ( Vevent ev  ) 
Vstatus _EXPORT_DECL ncdGetReceiveQueueLevel ( VportHandle  portHandle,
int *  level 
)
Vstatus _EXPORT_DECL ncdGetState ( VportHandle  portHandle  ) 
Vstatus _EXPORT_DECL ncdOpenDriver ( void   ) 
Vstatus _EXPORT_DECL ncdOpenPort ( VportHandle portHandle,
char *  userName,
Vaccess  accessMask,
Vaccess  initMask,
Vaccess permissionMask,
int  rxQueueSize 
)
Vstatus _EXPORT_DECL ncdReceive ( VportHandle  portHandle,
int  receiveMode,
unsigned int  waitHandle,
int *  pEventCount,
Vevent pEventList 
)
Vstatus _EXPORT_DECL ncdReceive1 ( VportHandle  portHandle,
Vevent **  ppEvent 
)
Vstatus _EXPORT_DECL ncdRemoveAcceptanceRange ( VportHandle  portHandle,
Vaccess  accessMask,
unsigned long  first_id,
unsigned long  last_id 
)
Vstatus _EXPORT_DECL ncdRequestChipState ( VportHandle  portHandle,
Vaccess  accessMask 
)
Vstatus _EXPORT_DECL ncdResetAcceptance ( VportHandle  portHandle,
Vaccess  accessMask,
int  extended 
)
Vstatus _EXPORT_DECL ncdResetClock ( VportHandle  portHandle  ) 
Vstatus _EXPORT_DECL ncdSetApplConfig ( char *  appName,
int  appChannel,
int  hwType,
int  hwIndex,
int  hwChannel 
)
Vstatus _EXPORT_DECL ncdSetChannelAcceptance ( VportHandle  portHandle,
Vaccess  accessMask,
VsetAcceptance filter 
)
Vstatus _EXPORT_DECL ncdSetChannelBitrate ( VportHandle  portHandle,
Vaccess  accessMask,
unsigned long  bitrate 
)
Vstatus _EXPORT_DECL ncdSetChannelMode ( VportHandle  portHandle,
Vaccess  accessMask,
int  tx,
int  txrq 
)
Vstatus _EXPORT_DECL ncdSetChannelOutput ( VportHandle  portHandle,
Vaccess  accessMask,
int  mode 
)
Vstatus _EXPORT_DECL ncdSetChannelParams ( VportHandle  portHandle,
Vaccess  accessMask,
VchipParams pChipParams 
)
Vstatus _EXPORT_DECL ncdSetChannelParamsC200 ( VportHandle  portHandle,
Vaccess  accessMask,
unsigned char  btr0,
unsigned char  btr1 
)
Vstatus _EXPORT_DECL ncdSetChannelTransceiver ( VportHandle  portHandle,
Vaccess  accessMask,
int  type,
int  lineMode,
int  resNet 
)
Vstatus _EXPORT_DECL ncdSetNotification ( VportHandle  portHandle,
unsigned long *  handle,
int  queueLevel 
)
Vstatus _EXPORT_DECL ncdSetReceiveMode ( VportHandle  Port,
unsigned char  ErrorFrame,
unsigned char  ChipState 
)
Vstatus _EXPORT_DECL ncdSetTimerRate ( VportHandle  portHandle,
unsigned long  timerRate 
)
Vstatus _EXPORT_DECL ncdTransmit ( VportHandle  portHandle,
Vaccess  accessMask,
Vevent pEvent 
)
© 2004-2010 bbv Software Services AG / Apparatus Services