Ejemplo n.º 1
0
    def can_tx_io_mode(self):
        # type: () -> constants.CanIoMode
        ''':any:`nixnet._enums.CanIoMode`: CAN Transmit IO Mode

        This property specifies the I/O Mode the interface uses when
        transmitting a CAN frame. By default, it is the same as the XNET
        Cluster CAN:I/O Mode property. However, even if the interface is in CAN
        FD+BRS mode, you can force it to transmit frames in the standard CAN
        format. For this purpose, set this property to CAN.

        The Transmit I/O mode may not exceed the mode set by the XNET Cluster
        CAN:I/O Mode property.

        .. note:: This property is not supported in CAN FD+BRS ISO mode. If you
           are using ISO CAN FD mode, you define the transmit I/O mode in the
           database with the I/O Mode property of the frame. (When a database
           is not used (for example, in frame stream mode), define the transmit
           I/O mode with the frame type field of the frame data.) Note that ISO
           CAN FD mode is the default mode for CAN FD in NI-XNET.
        .. note:: This property affects only the transmission of frames. Even if
           you set the transmit I/O mode to CAN, the interface still can
           receive frames in FD modes (if the XNET Cluster CAN:I/O Mode
           property is configured in an FD mode).
        '''
        return constants.CanIoMode(
            _props.get_session_intf_can_tx_io_mode(self._handle))
Ejemplo n.º 2
0
    def can_io_mode(self):
        # type: () -> constants.CanIoMode
        ''':any:`nixnet._enums.CanIoMode`: CAN IO Mode.

        This property indicates the I/O Mode the interface is using.

        The value is initialized from the database cluster when the session is
        created and cannot be changed later. However, you can transmit standard
        CAN frames on a CAN FD network.
        '''
        return constants.CanIoMode(
            _props.get_session_intf_can_io_mode(self._handle))
    def can_io_mode(self):
        # type: () -> constants.CanIoMode
        """:any:`CanIoMode`: Get or set the frame's I/O mode.

        This property is used in ISO CAN FD+BRS mode only.
        In this mode,
        you can specify every frame to be transmitted in CAN 2.0, CAN FD, or CAN FD+BRS mode.
        CAN FD+BRS frames require the interface to be in CAN FD+BRS mode;
        otherwise, it is transmitted in CAN FD mode.

        When the interface is in Non-ISO CAN FD or Legacy ISO CAN FD mode,
        this property is disregarded.
        In Non-ISO CAN FD and Legacy ISO CAN FD mode,
        you must use :any:`Interface.can_tx_io_mode` to switch the transmit mode.

        When the assigned database does not define the property in ISO CAN FD mode,
        the frames are transmitted with :any:`Interface.can_io_mode`.
        """
        return constants.CanIoMode(_props.get_frame_can_io_mode(self._handle))
Ejemplo n.º 4
0
 def can_io_mode(self):
     return constants.CanIoMode(_props.get_cluster_can_io_mode(self._handle))
 def can_io_mode(self):
     # type: () -> constants.CanIoMode
     """:any:`CanIoMode`: Get or set the CAN I/O Mode of the cluster."""
     return constants.CanIoMode(_props.get_cluster_can_io_mode(
         self._handle))