File: vector.rst

package info (click to toggle)
python-can 4.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,372 kB
  • sloc: python: 25,840; makefile: 38; sh: 20
file content (121 lines) | stat: -rw-r--r-- 2,947 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
Vector
======

This interface adds support for CAN controllers by `Vector`_. Only Windows is supported.

Configuration
-------------

By default this library uses the channel configuration for CANalyzer.
To use a different application, open **Vector Hardware Configuration** program and create
a new application and assign the channels you may want to use.
Specify the application name as ``app_name='Your app name'`` when constructing
the bus or in a config file.

Channel should be given as a list of channels starting at 0.

Here is an example configuration file connecting to CAN 1 and CAN 2 for an
application named "python-can":

::

    [default]
    interface = vector
    channel = 0, 1
    app_name = python-can



VectorBus
---------

.. autoclass:: can.interfaces.vector.VectorBus
   :show-inheritance:
   :member-order: bysource
   :members:
      set_filters,
      recv,
      send,
      send_periodic,
      stop_all_periodic_tasks,
      flush_tx_buffer,
      reset,
      shutdown,
      popup_vector_hw_configuration,
      get_application_config,
      set_application_config

Exceptions
----------

.. autoexception:: can.interfaces.vector.VectorError
   :show-inheritance:
.. autoexception:: can.interfaces.vector.VectorInitializationError
   :show-inheritance:
.. autoexception:: can.interfaces.vector.VectorOperationError
   :show-inheritance:

Miscellaneous
-------------

.. autofunction:: can.interfaces.vector.get_channel_configs

.. autoclass:: can.interfaces.vector.VectorChannelConfig
   :show-inheritance:
   :class-doc-from: class

.. autoclass:: can.interfaces.vector.canlib.VectorBusParams
   :show-inheritance:
   :class-doc-from: class

.. autoclass:: can.interfaces.vector.canlib.VectorCanParams
   :show-inheritance:
   :class-doc-from: class

.. autoclass:: can.interfaces.vector.canlib.VectorCanFdParams
   :show-inheritance:
   :class-doc-from: class

.. autoclass:: can.interfaces.vector.xldefine.XL_HardwareType
   :show-inheritance:
   :member-order: bysource
   :members:
   :undoc-members:

.. autoclass:: can.interfaces.vector.xldefine.XL_ChannelCapabilities
   :show-inheritance:
   :member-order: bysource
   :members:
   :undoc-members:

.. autoclass:: can.interfaces.vector.xldefine.XL_BusCapabilities
   :show-inheritance:
   :member-order: bysource
   :members:
   :undoc-members:

.. autoclass:: can.interfaces.vector.xldefine.XL_BusTypes
   :show-inheritance:
   :member-order: bysource
   :members:
   :undoc-members:

.. autoclass:: can.interfaces.vector.xldefine.XL_OutputMode
   :show-inheritance:
   :member-order: bysource
   :members:
   :undoc-members:

.. autoclass:: can.interfaces.vector.xldefine.XL_CANFD_BusParams_CanOpMode
   :show-inheritance:
   :member-order: bysource
   :members:
   :undoc-members:

.. autoclass:: can.interfaces.vector.xldefine.XL_Status
   :show-inheritance:
   :member-order: bysource
   :members:
   :undoc-members:

.. _Vector: https://vector.com/