-
-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #118 from messon007/master
fix bug for nican driver and support nixnet candriver
- Loading branch information
Showing
3 changed files
with
44 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"TRANSPORT": "CAN", | ||
"CAN_DRIVER": "NiXnet", | ||
"CAN_USE_DEFAULT_LISTENER": true, | ||
"CHANNEL": "CAN4", | ||
"ACCEPT_VIRTUAL": true, | ||
"BAUDRATE_PRESET": true, | ||
"CAN_ID_MASTER": 1911, | ||
"CAN_ID_SLAVE": 819, | ||
"CAN_ID_BROADCAST": 256, | ||
"MAX_DLC_REQUIRED": false, | ||
"BITRATE": 500000, | ||
"BTL_CYCLES": 16, | ||
"SAMPLE_RATE": 1, | ||
"SAMPLE_POINT": 87.5, | ||
"SJW": 2, | ||
"TSEG1": 5, | ||
"TSEG2": 2, | ||
"CREATE_DAQ_TIMESTAMPS": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
""" | ||
python-can driver for National Instruments xnet interfaces. | ||
""" | ||
import pyxcp.transport.can as can | ||
import pyxcp.transport.candriver.python_can as python_can | ||
|
||
|
||
class NiXnet(python_can.PythonCAN, can.CanInterfaceBase): | ||
"""""" | ||
|
||
PARAMETER_MAP = { | ||
# Type Req'd Default | ||
"LOG_ERRORS": (bool, False, False), | ||
} | ||
|
||
PARAMETER_TO_KW_ARG_MAP = { | ||
"LOG_ERRORS": "log_errors", | ||
} | ||
|
||
def __init__(self): | ||
super(NiXnet, self).__init__(bustype="nixnet") |