13.07.2015 Views

VCI - Virtual CAN Interface - Ixxat

VCI - Virtual CAN Interface - Ixxat

VCI - Virtual CAN Interface - Ixxat

SHOW MORE
SHOW LESS

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• dwStatus:[out] Current status of the <strong>CAN</strong> controller. The value is a combination of one ormore of the following constants:<strong>CAN</strong>_STATUS_TXPEND:The <strong>CAN</strong> controller is currently sending a message to the bus.<strong>CAN</strong>_STATUS_OVRRUN:A data overrun in the receive buffer of the <strong>CAN</strong> controller has taken place. This status canonly be reseted through a <strong>CAN</strong> controller reset ( see §4.3.1.7).<strong>CAN</strong>_STATUS_ERRLIM:An overrun of an error counter of the <strong>CAN</strong> controller has taken place.<strong>CAN</strong>_STATUS_BUSOFF:The <strong>CAN</strong> controller has changed to the “BUS-OFF” status.<strong>CAN</strong>_STATUS_ININIT:The <strong>CAN</strong> controller is in the stopped status.5.2.3 <strong>CAN</strong>CHANSTATUSThe data type describes the current status of a <strong>CAN</strong> message channel. The structureis as follows:typedef struct{<strong>CAN</strong>LINESTATUS sLineStatus;BOOL32fActivated;BOOL32fRxOverrun;UINT8bRxFifoLoad;UINT8bTxFifoLoad;} <strong>CAN</strong>CHANSTATUS, *P<strong>CAN</strong>CHANSTATUS;• sLineStatus:[out] Current status of the <strong>CAN</strong> controller. Further information is given in thedescription of the data structure <strong>CAN</strong>LINESTATUS.• fActivated:[out] Indicates whether the message channel is currently active (TRUE) or inactive(FALSE).• fRxOverrun:[out] Indicates with the value TRUE whether an overrun of the receive buffer ofthe <strong>CAN</strong> controller has taken place. (see §5.2.2 <strong>CAN</strong>_STATUS_OVRRUN).• bRxFifoLoad:[out] Current level of the receive buffer in per cent.• bTxFifoLoad:• [out] Current level of the transmit buffer in per cent.94Copyright 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!