13.07.2015 Views

VCI - Virtual CAN Interface - Ixxat

VCI - Virtual CAN Interface - Ixxat

VCI - Virtual CAN Interface - Ixxat

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Types and structures5.2.5 <strong>CAN</strong>MSGINFOThe data type summarizes various information on <strong>CAN</strong> messages in a 32-bit value.The value can be addressed either byte-wise or via individual bit fields.typedef union{struct{UINT8 bType;UINT8 bReserved;UINT8 bFlags;UINT8 bAccept;} Bytes;struct{UINT32 type: 8;UINT32 res : 8;UINT32 dlc : 4;UINT32 ovr : 1;UINT32 srr : 1;UINT32 rtr : 1;UINT32 ext : 1;UINT32 afc : 8;} Bits;} <strong>CAN</strong>MSGINFO, *P<strong>CAN</strong>MSGINFO;The information of a <strong>CAN</strong> message can be addressed byte-wise via the elementBytes. The following fields are defined for this:• Bytes.bType:[in/out] Type of the message. See also Bits.type.• Bytes.bReserved:Reserved. See also Bits.res.• Bytes.bFlags[in/out] Various flags. See also Bits.dlc, Bits.ovr, Bits.srr, Bits.rtr and Bits.ext.• Bytes.bAccept:[out] With receive messages displays which filter has accepted the message.See also Bits.afc.The information of a <strong>CAN</strong> message can be accessed bit-wise with the elementBits. The following bit fields are defined:• Bits.type:[in/out] Type of the message. The types listed in the following are defined forreceive messages. For transmit messages, only the message type<strong>CAN</strong>_MSGTYPE_DATA is currently defined. Other values are not permittedhere.96Copyright IXXAT Automation GmbH C-API Programming Manual, Version 1.5

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!