Download NI-CAN Hardware and Software Manual

Transcript
Chapter 8
Channel API for C
Philips SJA1000 CAN controller on Series 2 hardware, National
Instruments cannot guarantee compatibility for this property on future
hardware series. When using this property in the application, it is best
to get the nctPropHwSeries property to verify that the CAN
hardware is Series 2.
For information regarding the format of the bits in this property,
refer to the NC_ATTR_SERIES2_ERR_ARB_CAPTURE attribute in the
ncGetAttribute function of the Frame API.
u32 nctPropIntfSeries2Comp
Returns the value of the nctPropIntfSeries2Comp property
(refer to nctSetProperty).
u32 nctPropIntfSeries2FilterMode
Returns the value of the nctPropIntfSeries2FilterMode
property (refer to nctSetProperty).
u32 nctPropIntfSeries2Mask
Returns the value of the nctPropIntfSeries2Mask property
(refer to nctSetProperty.html).
u32 nctPropIntfSingleShotTx
Returns the value of the nctPropIntfSingleShotTx property
(refer to nctSetProperty).
u32 nctPropIntfTransceiverExternalIn
Returns the transceiver external inputs for the interface that was
initialized for the task.
Series 2 XS cards enable connection of an external transceiver. For an
external transceiver, this property allows you to determine the input
voltage on the STATUS pin of the CAN port.
For many models of CAN transceiver, an NERR pin is provided for
detection of faults and other status. For such transceivers, you can wire
the NERR pin to the STATUS pin of the CAN port.
This property is supported for Series 2 XS cards only.
This property uses a bit mask. When using the property, use bitwise
AND operations to check for values, not equality checks (equal,
greater than, and so on).
nctTransceiverInStatus (00000001 hex, STATUS pin)
This bit is set when 5 V exists on the STATUS pin.
This bit is clear when 0 V exists on the STATUS pin.
© National Instruments Corporation
8-39
NI-CAN Hardware and Software Manual