VCI - Virtual CAN Interface - Ixxat
VCI - Virtual CAN Interface - Ixxat
VCI - Virtual CAN Interface - Ixxat
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Types and structures• sLineStatus:[out] Current status of the LIN controller. Further information is given in thedescription of the data structure LINLINESTATUS.• fActivated:[out] Indicates whether the message monitor is currently active (TRUE) or inactive(FALSE).• fRxOverrun:[out] Indicates with the value TRUE whether the receive buffer has overrun.• bRxFifoLoad:[out] Current level of the receive buffer in per cent.5.3.4 LINMSGINFOThe data type contains various information on LIN messages in a 32-bit value. Thevalue can be addressed either bytewise or via individual bit fields.typedef union _LINMSGINFO{struct{UINT8 bPid;UINT8 bType;UINT8 bDlen;UINT8 bFlags;} Bytes;struct{UINT32 pid : 8;UINT32 type : 8;UINT32 dlen : 8;UINT32 ecs : 1;UINT32 sor : 1;UINT32 ovr : 1;UINT32 ido : 1;UINT32 res : 4;} Bits;} LINMSGINFO, *PLINMSGINFO;The information of a LIN message can be addressed bytewise via the elementBytes. The following fields are defined for this:• Bytes.bPid:[in/out] Protected identifier. See also Bits.pid.• Bytes.bType:[in/out] Type of message. See also Bits.type and Bits.ecs.• Bytes.bDlen:[in/out] Data length, see also Bits.dlen.• Bytes.bFlags[in/out] Various flags. see also Bits.ecs, Bits.sor, Bits.ovr and Bits.ido.103Copyright IXXAT Automation GmbH C-API Programming Manual, Version 1.5