Skip to content

Commit bd09a72

Browse files
committed
described the CSV format
1 parent 2eae299 commit bd09a72

1 file changed

Lines changed: 18 additions & 10 deletions

File tree

can/io/csv.py

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,24 @@
1818

1919

2020
class CSVWriter(Listener):
21-
"""Writes a comma separated text file of
22-
23-
* timestamp,
24-
* arbitration id,
25-
* flags (extended, remote, error),
26-
* dlc and
27-
* data
28-
29-
for each message received. Each line is terminated with a platform
30-
specific line seperator.
21+
"""Writes a comma separated text file with a line for
22+
each message.
23+
24+
The columns are as follows:
25+
26+
================ ======================= ===============
27+
name of column format description example
28+
================ ======================= ===============
29+
timestamp decimal float 1483389946.197
30+
arbitration_id hex 0x00dadada
31+
extended 1 == True, 0 == False 1
32+
remote 1 == True, 0 == False 0
33+
error 1 == True, 0 == False 0
34+
dlc int 6
35+
data base64 encoded WzQyLCA5XQ==
36+
================ ======================= ===============
37+
38+
Each line is terminated with a platform specific line seperator.
3139
"""
3240

3341
def __init__(self, filename):

0 commit comments

Comments
 (0)