Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
Conv TTL Blocking
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
5
Issues
5
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Conv TTL Blocking
Commits
fb3b71dd
Commit
fb3b71dd
authored
Jan 26, 2015
by
Theodor-Adrian Stana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sw: ei2c.py now has a function to return the value of BIDR
parent
92cca543
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
ei2c.py
software/ei2c/ei2c.py
+4
-1
No files found.
software/ei2c/ei2c.py
View file @
fb3b71dd
...
...
@@ -159,13 +159,16 @@ class EI2C:
def
get_ver
(
self
):
return
self
.
ver
def
print_bid
(
self
,
slot
):
# Get the board ID field from the BIDR and return it as ASCII string
def
get_bid
(
self
,
slot
):
bid
=
self
.
read
(
slot
,
0x000
);
bid
=
binascii
.
unhexlify
(
"
%
s"
%
"{0:x}"
.
format
(
bid
))
if
(
bid
==
"TBLO"
):
print
(
"CONV-TTL-BLO found in slot
%
d"
%
slot
)
elif
(
bid
==
"T485"
):
print
(
"CONV-TTL-RS485 found in slot
%
d"
%
slot
)
print
(
""
)
return
bid
def
_strip_resp
(
self
,
msg
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment