Kvaser ISO-TP SDK
Loading...
Searching...
No Matches
WriteParams Struct Reference

A struct that holds the parameters for an ISO-TP write request. More...

#include <kvisotplib.h>

Data Fields

enum MType m_type
 The message type, diagnostics or remote diagnostics. This is used to determine if the message should use the address_extension or not.
 
unsigned int can_id
 The CAN ID to be used for the message.
 
enum TAType ta_type
 The target addressing type. This is used to determine if the message should use standard (11-bit) identifier or extended (29-bit) identifier and if the message should be sent as a classical CAN message or a CAN FD message.
 
unsigned char address_extension
 The address extension to be used for the message. This field is ignored if the message type is not RemoteDiagnostics and it must be set to Some value if the message type is RemoteDiagnostics.
 
const unsigned char * payload
 The message data to be sent.
 
unsigned int payload_length
 The length of the message data to be sent.
 
bool use_padding
 True if the message should be padded.
 
bool use_bit_rate_switch
 True if the message should be sent as a CAN FD message and should use bit rate switching. This field is ignored if the target addressing type isn't a CAN FD type.
 
unsigned int request_handle
 A unique request handle, if set to 0 then ConfirmCallback won't be called.
 

Detailed Description

A struct that holds the parameters for an ISO-TP write request.

Examples
/examples/c_obd_reader/obd_reader.c, and /examples/cpp_obd_reader/obd_reader.cpp.

The documentation for this struct was generated from the following file: