import sigrokdecode as srd
regs = {
- 0: 'Product_ID',
- 1: 'Revision_ID',
- 2: 'Motion',
- 3: 'Delta_X',
- 4: 'Delta_Y',
- 5: 'SQUAL',
- 6: 'Shutter_Upper',
- 7: 'Shutter_Lower',
- 8: 'Maximum_Pixel',
- 9: 'Pixel_Sum',
- 0xa: 'Minimum_Pixel',
- 0xb: 'Pixel_Grab',
- 0xd: 'Mouse_Control',
- 0x3a: 'Chip_Reset',
- 0x3f: 'Inv_Rev_ID',
- 0x63: 'Motion_Burst',
+ 0: 'Product_ID',
+ 1: 'Revision_ID',
+ 2: 'Motion',
+ 3: 'Delta_X',
+ 4: 'Delta_Y',
+ 5: 'SQUAL',
+ 6: 'Shutter_Upper',
+ 7: 'Shutter_Lower',
+ 8: 'Maximum_Pixel',
+ 9: 'Pixel_Sum',
+ 0xa: 'Minimum_Pixel',
+ 0xb: 'Pixel_Grab',
+ 0xd: 'Mouse_Control',
+ 0x3a: 'Chip_Reset',
+ 0x3f: 'Inv_Rev_ID',
+ 0x63: 'Motion_Burst',
}
class Decoder(srd.Decoder):