Download English - PEAK
Transcript
PCAN-ISO-TP API Documentation – User Guide 4.3 PCAN-API Also called CanApi2 interface, is a synonym for CAN Application Programming Interface (version 2) and is a comprehensively programming interface to the PCAN system of the company PEAK‐System Technik GmbH. This interface is more comprehensive than PCAN‐Basic. Important difference to PCAN‐Basic: Transmit a CAN message at a fixed point of time Several application programs could be connected to one PCAN‐PC hardware Detailed information to PCAN‐PC hardware and the PCAN system (PCAN net and PCAN client). The PCAN client is connected via the net to the PCAN‐PC hardware The following text is a short overview to the CanApi2 functions. The functions itself can be categorized as follows: Fields Control, Register and remove functions for nets and hardware. Function Description CloseAll Disconnects all hardware, nets, and clients RegisterHardware Registers a Not‐Plug‐and‐Play CAN hardware RegisterHardwarePCI Registers a PCI CAN hardware RegisterNet Defines of a PCAN net RemoveHardware Removes and deactivates CAN hardware RemoveNet Removes a PCAN net Fields Configuaration, Configuration functions for nets and hardware. Function Description SetDeviceName Sets the PCAN device to be used for subsequent CanApi2 function calls SetDriverParam Configures a driver parameter, e.g. the size of the receive or transmit buffer SetHwParam Configures a hardware parameter, e.g. ‐ the PEAK serial number, ‐ and additional parameters for the PCAN‐USB hardware SetNetParam Configures net parameter Fields Client, Functions for the management of the clients. Function Description ConnectToNet Connects a client to a PCAN net DisconnectFromNet Disconnects a client from a PCAN net RegisterClient Registers an application as PCAN client RegisterMsg Expands the reception filter of a client RemoveAllMsgs Resets the filter of a Client for a connected Net. RemoveClient Removes a client from the driver ResetClient Resets the receive and transmit queue of a client ResetHardware Resets a CAN hardware SetClientFilter Configures the reception filter of a client SetClientFilterEx Configures the reception filter of a client SetClientParam Configures a client parameter, e.g. ‐ self‐receive mode of transmitted messages ‐ improve the accuracy of the reception filter 105