
PCI-1680U User Manual 26
4.3.3 Software Interfaces
AdsCAN.dll should follow the CAN software-programming interface, so
that users can use Advantech’s driver software in the same way.
You can access the CAN functionality via the AdsCAN.dll Library as
shown in the following table. For detailed function library definitions and
descriptions please see the file ‘can.chm’ on the CD-ROM.
Path in CD-ROM: Documents\Software Manuals\CAN
Table 4.1: Function Table of AdsCAN.dll
Function Syntax (in C) Description
1 CANCheckEvent() Check event status from kernel-
mode and clear event.
2 CANEnableEvent() Enables or disables the event mech-
anism
3 CANEnableMessaging() Select the data transmit interrupt
4 CANEnableRxInt() Enable the receive interrupt
5 CANGetArbitrationLost-
CatchMsgEx()
Get arbitrate lost catch information
6 CANGetBaudRate() Get the card current baud rate
7 CANGetControllerError-
CodeEx()
Get Controller error code
8 CANGetErrorMessage() Get error message
9 CANGetEventName() Queries and gets CAN port's event
name
10 CANGetProtocolType() Get the card current protocol type
11 CANHwReset() Reset the hardware
12 CANInit() Controls CAN port settings
13 CANInpb() Inputs a byte data from the specified
address on CAN card
14 CANOutpb() Outputs a byte data to the specified
address on CAN card
15 CANPortClose() Releases settings, close port
16 CANPortOpen() Open the CAN port
17 CANQueryID() Query the message ID
18 CANQueryMsg () Reads data from the card
Comentarios a estos manuales