Skip to content

Commit 3bbc89c

Browse files
oomzayhardbyte
authored andcommitted
VectorBus: Added reset() method.
1 parent 486f776 commit 3bbc89c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

can/interfaces/vector/canlib.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,3 +174,9 @@ def shutdown(self):
174174
vxlapi.xlDeactivateChannel(self.port_handle, self.mask)
175175
vxlapi.xlClosePort(self.port_handle)
176176
vxlapi.xlCloseDriver()
177+
178+
def reset(self):
179+
vxlapi.xlDeactivateChannel(self.port_handle, self.mask)
180+
vxlapi.xlActivateChannel(self.port_handle, self.mask,
181+
vxlapi.XL_BUS_TYPE_CAN, 0)
182+

0 commit comments

Comments
 (0)