File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -145,12 +145,15 @@ class to add those features, at the cost of increased memory usage.
145
145
_mfg_id = ROUnaryStruct (_REG_MFGID , "<B" )
146
146
_int_temp = ROUnaryStruct (_INTERNAL_TEMP , "<b" )
147
147
148
+ # Some of these registers are defined as two halves because
149
+ # the chip does not support multi-byte reads or writes, and there
150
+ # is currently no way to tell Struct to do a transaction for each byte.
151
+
148
152
# IMPORTANT! the sign bit for the external temp is in the msbyte so mark it as signed
149
153
# and lsb as unsigned
150
154
_ext_temp_msb = ROUnaryStruct (_EXTERNAL_TEMP_MSB , "<b" )
151
155
_ext_temp_lsb = ROUnaryStruct (_EXTERNAL_TEMP_LSB , "<B" )
152
156
153
- # _tach_read = ROUnaryStruct(_TACH_LSB, "<H")
154
157
_tach_read_lsb = ROUnaryStruct (_TACH_LSB , "<B" )
155
158
_tach_read_msb = ROUnaryStruct (_TACH_MSB , "<B" )
156
159
_tach_mode_enable = RWBit (_REG_CONFIG , 2 )
You can’t perform that action at this time.
0 commit comments