Crate pcan_basic_sys [] [src]

Structs

tagTPCANMsg
tagTPCANMsgFD
tagTPCANTimestamp

Constants

FEATURE_FD_CAPABLE
INT16_MAX
INT16_MIN
INT32_MAX
INT32_MIN
INT8_MAX
INT8_MIN
INTPTR_MAX
INTPTR_MIN
INT_FAST16_MAX
INT_FAST16_MIN
INT_FAST32_MAX
INT_FAST32_MIN
INT_FAST8_MAX
INT_FAST8_MIN
INT_LEAST16_MAX
INT_LEAST16_MIN
INT_LEAST32_MAX
INT_LEAST32_MIN
INT_LEAST8_MAX
INT_LEAST8_MIN
LOG_FUNCTION_ALL
LOG_FUNCTION_DEFAULT
LOG_FUNCTION_ENTRY
LOG_FUNCTION_LEAVE
LOG_FUNCTION_PARAMETERS
LOG_FUNCTION_READ
LOG_FUNCTION_WRITE
PCAN_5VOLTS_POWER
PCAN_API_VERSION
PCAN_BAUD_100K
PCAN_BAUD_10K
PCAN_BAUD_125K
PCAN_BAUD_1M
PCAN_BAUD_20K
PCAN_BAUD_250K
PCAN_BAUD_33K
PCAN_BAUD_47K
PCAN_BAUD_500K
PCAN_BAUD_50K
PCAN_BAUD_5K
PCAN_BAUD_800K
PCAN_BAUD_83K
PCAN_BAUD_95K
PCAN_BITRATE_ADAPTING
PCAN_BITRATE_INFO
PCAN_BITRATE_INFO_FD
PCAN_BUSOFF_AUTORESET
PCAN_BUSSPEED_DATA
PCAN_BUSSPEED_NOMINAL
PCAN_CHANNEL_AVAILABLE
PCAN_CHANNEL_CONDITION
PCAN_CHANNEL_FEATURES
PCAN_CHANNEL_IDENTIFYING
PCAN_CHANNEL_OCCUPIED
PCAN_CHANNEL_PCANVIEW
PCAN_CHANNEL_UNAVAILABLE
PCAN_CHANNEL_VERSION
PCAN_CONTROLLER_NUMBER
PCAN_DEVICE_NUMBER
PCAN_DNG
PCAN_DNGBUS1
PCAN_ERROR_ANYBUSERR
PCAN_ERROR_BUSHEAVY
PCAN_ERROR_BUSLIGHT
PCAN_ERROR_BUSOFF
PCAN_ERROR_BUSPASSIVE
PCAN_ERROR_BUSWARNING
PCAN_ERROR_CAUTION
PCAN_ERROR_HWINUSE
PCAN_ERROR_ILLCLIENT
PCAN_ERROR_ILLDATA
PCAN_ERROR_ILLHANDLE
PCAN_ERROR_ILLHW
PCAN_ERROR_ILLNET
PCAN_ERROR_ILLOPERATION
PCAN_ERROR_ILLPARAMTYPE
PCAN_ERROR_ILLPARAMVAL
PCAN_ERROR_INITIALIZE
PCAN_ERROR_NETINUSE
PCAN_ERROR_NODRIVER
PCAN_ERROR_OK
PCAN_ERROR_OVERRUN
PCAN_ERROR_QOVERRUN
PCAN_ERROR_QRCVEMPTY
PCAN_ERROR_QXMTFULL
PCAN_ERROR_REGTEST
PCAN_ERROR_RESOURCE
PCAN_ERROR_UNKNOWN
PCAN_ERROR_XMTFULL
PCAN_FILTER_CLOSE
PCAN_FILTER_CUSTOM
PCAN_FILTER_OPEN
PCAN_HARDWARE_NAME
PCAN_IP_ADDRESS
PCAN_ISA
PCAN_ISABUS1
PCAN_ISABUS2
PCAN_ISABUS3
PCAN_ISABUS4
PCAN_ISABUS5
PCAN_ISABUS6
PCAN_ISABUS7
PCAN_ISABUS8
PCAN_LAN
PCAN_LANBUS1
PCAN_LANBUS2
PCAN_LANBUS3
PCAN_LANBUS4
PCAN_LANBUS5
PCAN_LANBUS6
PCAN_LANBUS7
PCAN_LANBUS8
PCAN_LANBUS9
PCAN_LANBUS10
PCAN_LANBUS11
PCAN_LANBUS12
PCAN_LANBUS13
PCAN_LANBUS14
PCAN_LANBUS15
PCAN_LANBUS16
PCAN_LAN_SERVICE_STATUS
PCAN_LISTEN_ONLY
PCAN_LOG_CONFIGURE
PCAN_LOG_LOCATION
PCAN_LOG_STATUS
PCAN_LOG_TEXT
PCAN_MESSAGE_BRS
PCAN_MESSAGE_ESI
PCAN_MESSAGE_EXTENDED
PCAN_MESSAGE_FD
PCAN_MESSAGE_FILTER
PCAN_MESSAGE_RTR
PCAN_MESSAGE_STANDARD
PCAN_MESSAGE_STATUS
PCAN_MODE_EXTENDED
PCAN_MODE_STANDARD
PCAN_NONE
PCAN_NONEBUS
PCAN_PARAMETER_OFF
PCAN_PARAMETER_ON
PCAN_PCC
PCAN_PCCBUS1
PCAN_PCCBUS2
PCAN_PCI
PCAN_PCIBUS1
PCAN_PCIBUS2
PCAN_PCIBUS3
PCAN_PCIBUS4
PCAN_PCIBUS5
PCAN_PCIBUS6
PCAN_PCIBUS7
PCAN_PCIBUS8
PCAN_PCIBUS9
PCAN_PCIBUS10
PCAN_PCIBUS11
PCAN_PCIBUS12
PCAN_PCIBUS13
PCAN_PCIBUS14
PCAN_PCIBUS15
PCAN_PCIBUS16
PCAN_PEAKCAN
PCAN_RECEIVE_EVENT
PCAN_RECEIVE_STATUS
PCAN_TRACE_CONFIGURE
PCAN_TRACE_LOCATION
PCAN_TRACE_SIZE
PCAN_TRACE_STATUS
PCAN_TYPE_DNG
PCAN_TYPE_DNG_EPP
PCAN_TYPE_DNG_SJA
PCAN_TYPE_DNG_SJA_EPP
PCAN_TYPE_ISA
PCAN_TYPE_ISA_PHYTEC
PCAN_TYPE_ISA_SJA
PCAN_USB
PCAN_USBBUS1
PCAN_USBBUS2
PCAN_USBBUS3
PCAN_USBBUS4
PCAN_USBBUS5
PCAN_USBBUS6
PCAN_USBBUS7
PCAN_USBBUS8
PCAN_USBBUS9
PCAN_USBBUS10
PCAN_USBBUS11
PCAN_USBBUS12
PCAN_USBBUS13
PCAN_USBBUS14
PCAN_USBBUS15
PCAN_USBBUS16
PCAN_VIRTUAL
PTRDIFF_MAX
PTRDIFF_MIN
SERVICE_STATUS_RUNNING
SERVICE_STATUS_STOPPED
SIG_ATOMIC_MAX
SIG_ATOMIC_MIN
SIZE_MAX
TRACE_FILE_DATE
TRACE_FILE_OVERWRITE
TRACE_FILE_SEGMENTED
TRACE_FILE_SINGLE
TRACE_FILE_TIME
UINT16_MAX
UINT32_MAX
UINT8_MAX
UINTPTR_MAX
UINT_FAST16_MAX
UINT_FAST32_MAX
UINT_FAST8_MAX
UINT_LEAST16_MAX
UINT_LEAST32_MAX
UINT_LEAST8_MAX
WINT_MAX
WINT_MIN
_ATFILE_SOURCE
_BITS_WCHAR_H
_DEFAULT_SOURCE
_FEATURES_H
_POSIX_C_SOURCE
_POSIX_SOURCE
_STDC_PREDEF_H
_STDINT_H
_SYS_CDEFS_H
__GLIBC_MINOR__
__GLIBC__
__GNU_LIBRARY__
__STDC_IEC_559_COMPLEX__
__STDC_IEC_559__
__STDC_ISO_10646__
__STDC_NO_THREADS__
__SYSCALL_WORDSIZE
__USE_ATFILE
__USE_FORTIFY_LEVEL
__USE_ISOC11
__USE_ISOC95
__USE_ISOC99
__USE_MISC
__USE_POSIX
__USE_POSIX2
__USE_POSIX199309
__USE_POSIX199506
__USE_POSIX_IMPLICITLY
__USE_XOPEN2K
__USE_XOPEN2K8
__WORDSIZE
__WORDSIZE_TIME64_COMPAT32

Functions

CAN_FilterMessages

Configures the reception filter. The message filter will be expanded with every call to this function. If it is desired to reset the filter, please use the CAN_SetValue function "The handle of a PCAN Channel" "The lowest CAN ID to be received" "The highest CAN ID to be received" "Message type, Standard (11-bit identifier) or Extended (29-bit identifier)" "A TPCANStatus error code"

CAN_GetErrorText

Returns a descriptive text of a given TPCANStatus error code, in any desired language The current languages available for translation are: Neutral (0x00), German (0x07), English (0x09), Spanish (0x0A), Italian (0x10) and French (0x0C) "A TPCANStatus error code" "Indicates a 'Primary language ID'" "Buffer for a null terminated char array" "A TPCANStatus error code"

CAN_GetStatus

Gets the current status of a PCAN Channel "The handle of a PCAN Channel" "A TPCANStatus error code"

CAN_GetValue

Retrieves a PCAN Channel value Parameters can be present or not according with the kind of Hardware (PCAN Channel) being used. If a parameter is not available, a PCAN_ERROR_ILLPARAMTYPE error will be returned "The handle of a PCAN Channel" "The TPCANParameter parameter to get" "Buffer for the parameter value" "Size in bytes of the buffer" "A TPCANStatus error code"

CAN_Initialize

Initializes a PCAN Channel "The handle of a PCAN Channel" "The speed for the communication (BTR0BTR1 code)" "NON PLUG&PLAY: The type of hardware and operation mode" "NON PLUG&PLAY: The I/O address for the parallel port" "NON PLUG&PLAY: Interrupt number of the parallel port" "A TPCANStatus error code"

CAN_InitializeFD

f_clock_mhz=80,nom_brp=0,nom_tseg1=13,nom_tseg2=0,nom_sjw=0,data_brp=0, data_tseg1=13,data_tseg2=0,data_sjw=0 "A TPCANStatus error code"

CAN_Read

Reads a CAN message from the receive queue of a PCAN Channel "The handle of a PCAN Channel" "A TPCANMsg structure buffer to store the CAN message" "A TPCANTimestamp structure buffer to get the reception time of the message. If this value is not desired, this parameter should be passed as NULL" "A TPCANStatus error code"

CAN_ReadFD

Reads a CAN message from the receive queue of a FD capable PCAN Channel "The handle of a FD capable PCAN Channel" "A TPCANMsgFD structure buffer to store the CAN message" "A TPCANTimestampFD buffer to get the reception time of the message. If this value is not desired, this parameter should be passed as NULL" "A TPCANStatus error code"

CAN_Reset

Resets the receive and transmit queues of the PCAN Channel A reset of the CAN controller is not performed. "The handle of a PCAN Channel" "A TPCANStatus error code"

CAN_SetValue

Configures or sets a PCAN Channel value Parameters can be present or not according with the kind of Hardware (PCAN Channel) being used. If a parameter is not available, a PCAN_ERROR_ILLPARAMTYPE error will be returned "The handle of a PCAN Channel" "The TPCANParameter parameter to set" "Buffer with the value to be set" "Size in bytes of the buffer" "A TPCANStatus error code"

CAN_Uninitialize

Uninitializes one or all PCAN Channels initialized by CAN_Initialize Giving the TPCANHandle value "PCAN_NONEBUS", uninitialize all initialized channels "The handle of a PCAN Channel" "A TPCANStatus error code"

CAN_Write

Transmits a CAN message "The handle of a PCAN Channel" "A TPCANMsg buffer with the message to be sent" "A TPCANStatus error code"

CAN_WriteFD

Transmits a CAN message over a FD capable PCAN Channel "The handle of a FD capable PCAN Channel" "A TPCANMsgFD buffer with the message to be sent" "A TPCANStatus error code"

Type Definitions

TPCANMsg
TPCANMsgFD
TPCANTimestamp
int_fast16_t
int_fast32_t
int_fast64_t
int_fast8_t
int_least16_t
int_least32_t
int_least64_t
int_least8_t
intmax_t
uint_fast16_t
uint_fast32_t
uint_fast64_t
uint_fast8_t
uint_least16_t
uint_least32_t
uint_least64_t
uint_least8_t
uintmax_t