You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: i2c_transactions.py
+6-3Lines changed: 6 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ class Transaction:
11
11
"""A class representing a complete read or write transaction between an I2C Master and a slave device with addressable registers"""
12
12
end_time: float
13
13
#is_multibyte_read: bool
14
-
is_write: bool
14
+
write: bool
15
15
start_time: float
16
16
_last_addr_frame: int
17
17
data: bytearray
@@ -22,7 +22,7 @@ def __init__(self, start_time):
22
22
self.end_time=None
23
23
self.register_address=None
24
24
self.data=bytearray()
25
-
self.write=True
25
+
self.write=None
26
26
27
27
# we would know this if prev start was a read and len(data) >1
28
28
# this means it is likely reading from a data register, right? Unless registers are muilti-byte (config). This would matter if reads were auto incrementing and we
@@ -47,6 +47,8 @@ class I2CRegisterTransactions(HighLevelAnalyzer):
ASIEN,0,RW,Spectral and Flicker Detect Saturation Interrupt Enable.,,Permits saturation interrupts to be generated,,,,,,,,,,,,,,,
15
-
SP_IEN,0,RW,Spectral Interrupt Enable.,,"Permits interrupts to be generated, subject to the spectral thresholds and persistence filter. Bit is mirrored in the ENABLE register.",,,,,,,,,,,,,,,
16
-
SP_MAN_AZ,0,RW,Spectral Engine Manual Autozero.,,Starts a manual autozero of the spectral engines.,,,,,,,,,,,,,,,
17
-
FIFO_CLR,0,RW,FIFO Buffer Clear.,,"Clears all FIFO data, FINT, FIFO_OV, and FIFO_LVL.",,,,,,,,,,,,,,,
AGAIN,9,RW,Spectral engine gain setting.,0.5x,1x,2x,4x,8x,16x,32x,64x,128x,256x,512x,,,,,,
20
-
SP_TH_CH,0,RW,,CH0,CH1,CH2,CH3,CH4,,,,,,,,,,,,
21
-
READY,0,R,,Spectral measurement status is busy,Spectral measurement status is ready,,,,,,,,,,,,,,,
22
-
REG_BANK,0,RW,Register Bank Access,Register access to register 0x80 and above,Register access to register 0x60 to 0x74,,,,,,,,,,,,,,,
23
-
SMUX_CMD,2,RW,SMUX command.,ROM code initialization of SMUX,Read SMUX configuration to RAM from SMUX chain,Write SMUX configuration from RAM to SMUX chain,"3 Reserved, do not use",,,,,,,,,,,,,
REG_BANK,0,RW,Register Bank Access,Registers 0x80 and above,Registers 0x60 to 0x74,,,,,,,,,,,,,,,
24
+
SMUX_CMD,2,RW,SMUX Command,ROM code initialization of SMUX,Read SMUX configuration to RAM from SMUX chain,Write SMUX configuration from RAM to SMUX chain,Reserved ,,,,,,,,,,,,,
25
+
SIEN_FD,0,RW,Flicker Detection INT Enable,Disabled, Enabled,,,,,,,,,,,,,,,
26
+
SIEN_SMUX,0,RW,SMUX CMD Completion INT Enable,Disabled,Enabled,,,,,,,,,,,,,,,
0 commit comments