Crate peak_can_sys

Source

Structs§

tagCANTPChannelInformation
tagCANTPMsg
tagCANTPMsgFD
tagCANTPTimestamp

Constants§

FEATURE_DELAY_CAPABLE
FEATURE_FD_CAPABLE
FEATURE_IO_CAPABLE
LOG_FUNCTION_ALL
LOG_FUNCTION_DEFAULT
LOG_FUNCTION_ENTRY
LOG_FUNCTION_LEAVE
LOG_FUNCTION_PARAMETERS
LOG_FUNCTION_READ
LOG_FUNCTION_WRITE
MAX_LENGTH_HARDWARE_NAME
MAX_LENGTH_VERSION_STRING
PEAK_5VOLTS_POWER
PEAK_ACCEPTANCE_FILTER_11BIT
PEAK_ACCEPTANCE_FILTER_29BIT
PEAK_ALLOW_ERROR_FRAMES
PEAK_ALLOW_RTR_FRAMES
PEAK_ALLOW_STATUS_FRAMES
PEAK_API_VERSION
PEAK_ATTACHED_CHANNELS
PEAK_ATTACHED_CHANNELS_COUNT
PEAK_BAUD_1M
PEAK_BAUD_5K
PEAK_BAUD_10K
PEAK_BAUD_20K
PEAK_BAUD_33K
PEAK_BAUD_47K
PEAK_BAUD_50K
PEAK_BAUD_83K
PEAK_BAUD_95K
PEAK_BAUD_100K
PEAK_BAUD_125K
PEAK_BAUD_250K
PEAK_BAUD_500K
PEAK_BAUD_800K
PEAK_BITRATE_ADAPTING
PEAK_BITRATE_INFO
PEAK_BITRATE_INFO_FD
PEAK_BUSOFF_AUTORESET
PEAK_BUSSPEED_DATA
PEAK_BUSSPEED_NOMINAL
PEAK_CHANNEL_AVAILABLE
PEAK_CHANNEL_CONDITION
PEAK_CHANNEL_FEATURES
PEAK_CHANNEL_IDENTIFYING
PEAK_CHANNEL_OCCUPIED
PEAK_CHANNEL_UNAVAILABLE
PEAK_CHANNEL_VERSION
PEAK_CHANNEL_VIEW
PEAK_CONTROLLER_NUMBER
PEAK_DEVICE_ID
PEAK_DEVICE_NUMBER
PEAK_DNG
PEAK_DNGBUS1
PEAK_ERROR_ANYBUSERR
PEAK_ERROR_BUSHEAVY
PEAK_ERROR_BUSLIGHT
PEAK_ERROR_BUSOFF
PEAK_ERROR_BUSPASSIVE
PEAK_ERROR_BUSWARNING
PEAK_ERROR_CAUTION
PEAK_ERROR_HWINUSE
PEAK_ERROR_ILLCLIENT
PEAK_ERROR_ILLDATA
PEAK_ERROR_ILLHANDLE
PEAK_ERROR_ILLHW
PEAK_ERROR_ILLMODE
PEAK_ERROR_ILLNET
PEAK_ERROR_ILLOPERATION
PEAK_ERROR_ILLPARAMTYPE
PEAK_ERROR_ILLPARAMVAL
PEAK_ERROR_INITIALIZE
PEAK_ERROR_NETINUSE
PEAK_ERROR_NODRIVER
PEAK_ERROR_OK
PEAK_ERROR_OVERRUN
PEAK_ERROR_QOVERRUN
PEAK_ERROR_QRCVEMPTY
PEAK_ERROR_QXMTFULL
PEAK_ERROR_REGTEST
PEAK_ERROR_RESOURCE
PEAK_ERROR_UNKNOWN
PEAK_ERROR_XMTFULL
PEAK_FILTER_CLOSE
PEAK_FILTER_CUSTOM
PEAK_FILTER_OPEN
PEAK_FIRMWARE_VERSION
PEAK_HARDWARE_NAME
PEAK_INTERFRAME_DELAY
PEAK_IO_ANALOG_VALUE
PEAK_IO_DIGITAL_CLEAR
PEAK_IO_DIGITAL_CONFIGURATION
PEAK_IO_DIGITAL_SET
PEAK_IO_DIGITAL_VALUE
PEAK_IP_ADDRESS
PEAK_ISA
PEAK_ISABUS1
PEAK_ISABUS2
PEAK_ISABUS3
PEAK_ISABUS4
PEAK_ISABUS5
PEAK_ISABUS6
PEAK_ISABUS7
PEAK_ISABUS8
PEAK_LAN
PEAK_LANBUS1
PEAK_LANBUS2
PEAK_LANBUS3
PEAK_LANBUS4
PEAK_LANBUS5
PEAK_LANBUS6
PEAK_LANBUS7
PEAK_LANBUS8
PEAK_LANBUS9
PEAK_LANBUS10
PEAK_LANBUS11
PEAK_LANBUS12
PEAK_LANBUS13
PEAK_LANBUS14
PEAK_LANBUS15
PEAK_LANBUS16
PEAK_LAN_SERVICE_STATUS
PEAK_LISTEN_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E_STATUS_STOPPED
TRACE_FILE_DATE
TRACE_FILE_OVERWRITE
TRACE_FILE_SEGMENTED
TRACE_FILE_SINGLE
TRACE_FILE_TIME

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 CAN 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 CANTPStatus error code"
CAN_GetErrorText
Returns a descriptive text of a given CANTPStatus 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 CANTPStatus error code" "Indicates a 'Primary language ID'" "Buffer for a null terminated char array" "A CANTPStatus error code"
CAN_GetStatus
Gets the current status of a CAN Channel "The handle of a CAN Channel" "A CANTPStatus error code"
CAN_GetValue
Retrieves a CAN Channel value Parameters can be present or not according with the kind of Hardware (CAN Channel) being used. If a parameter is not available, a PEAK_ERROR_ILLPARAMTYPE error will be returned "The handle of a CAN Channel" "The CANTPParameter parameter to get" "Buffer for the parameter value" "Size in bytes of the buffer" "A CANTPStatus error code"
CAN_Initialize
Initializes a CAN Channel "The handle of a CAN Channel" "The speed for the communication (BTR0BTR1 code)" "Non-PnP: The type of hardware and operation mode" "Non-PnP: The I/O address for the parallel port" "Non-PnP: Interrupt number of the parallel port" "A CANTPStatus error code"
CAN_InitializeFD
f_clock=80000000,nom_brp=10,nom_tseg1=5,nom_tseg2=2,nom_sjw=1,data_brp=4,data_tseg1=7,data_tseg2=2,data_sjw=1 “A CANTPStatus error code”
CAN_Read
Reads a CAN message from the receive queue of a CAN Channel "The handle of a CAN Channel" "A CANTPMsg structure buffer to store the CAN message" "A CANTPTimestamp structure buffer to get the reception time of the message. If this value is not desired, this parameter should be passed as NULL" "A CANTPStatus error code"
CAN_ReadFD
Reads a CAN message from the receive queue of a FD capable CAN Channel "The handle of a FD capable CAN Channel" "A CANTPMsgFD structure buffer to store the CAN message" "A CANTPTimestampFD buffer to get the reception time of the message. If this value is not desired, this parameter should be passed as NULL" "A CANTPStatus error code"
CAN_Reset
Resets the receive and transmit queues of the CAN Channel A reset of the CAN controller is not performed. "The handle of a CAN Channel" "A CANTPStatus error code"
CAN_SetValue
Configures or sets a CAN Channel value Parameters can be present or not according with the kind of Hardware (CAN Channel) being used. If a parameter is not available, a PEAK_ERROR_ILLPARAMTYPE error will be returned "The handle of a CAN Channel" "The CANTPParameter parameter to set" "Buffer with the value to be set" "Size in bytes of the buffer" "A CANTPStatus error code"
CAN_Uninitialize
Uninitializes one or all CAN Channels initialized by CAN_Initialize Giving the CANTPHandle value "PEAK_NONEBUS", uninitialize all initialized channels "The handle of a CAN Channel" "A CANTPStatus error code"
CAN_Write
Transmits a CAN message "The handle of a CAN Channel" "A CANTPMsg buffer with the message to be sent" "A CANTPStatus error code"
CAN_WriteFD
Transmits a CAN message over a FD capable CAN Channel "The handle of a FD capable CAN Channel" "A CANTPMsgFD buffer with the message to be sent" "A CANTPStatus error code"

Type Aliases§

BYTE
CANTPChannelInformation
CANTPMsg
CANTPMsgFD
CANTPTimestamp
CHAR
DWORD
LPSTR
UINT64
WORD