adi_study_watch.core.packets package¶
ad7156_packets module¶
-
class
adi_study_watch.core.packets.ad7156_packets.
AD7156DCBCommandPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.EDA: ['0xC3', '0x02']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': 20, 'checksum': 0 }, 'payload': { 'command': <DCBCommand.READ_CONFIG_RES: ['0x98']>, 'status': <DCBStatus.OK: ['0x97']>, 'size': 1, 'data': [ [ '0x0', '0x8' ] ] } }
-
class
adi_study_watch.core.packets.ad7156_packets.
AD7156DCBPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.AD7156: ['0xC8', '0x0B']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': 92, 'checksum': 0 }, 'payload': { 'command': <DCBCommand.READ_CONFIG_RES: ['0x98']>, 'status': <DCBStatus.OK: ['0x97']>, 'size': 7, 'data': [ [ '0x9', '0x19' ], [ '0xA', '0x66' ], ] } }
-
class
adi_study_watch.core.packets.ad7156_packets.
AD7156RegisterReadPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.AD7156: ['0xC8', '0x0B']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': 23, 'checksum': 0 }, 'payload': { 'command': <CommonCommand.REGISTER_READ_RES: ['0x22']>, 'status': <CommonStatus.OK: ['0x00']>, 'size': 3, 'data': [ [ '0x10', '0x40' ], [ '0x11', '0xC0' ], [ '0x12', '0xC0' ] ] } }
-
class
adi_study_watch.core.packets.ad7156_packets.
AD7156RegisterWritePacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.AD7156: ['0xC8', '0x0B']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': 15, 'checksum': 0 }, 'payload': { 'command': <CommonCommand.REGISTER_WRITE_RES: ['0x24']>, 'status': <CommonStatus.OK: ['0x00']>, 'size': 1, 'data': [ [ '0x10', '0x11' ] ] } }
adpd_packets module¶
-
class
adi_study_watch.core.packets.adpd_packets.
ADPDConfigPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.ADPD: ['0xC1', '0x10']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': '0x15', 'checksum': '0x0' }, 'payload': { 'command': <ADPDCommand.LOAD_CONFIG_RES: ['0x43']>, 'status': <CommonStatus.OK: ['0x00']>, 'device_id': <ADPDDevice.DEVICE_GREEN: ['0x28']>, 'data': [ 255, 255, 31, 0, 112, 7, 0, 99, 0, 0 ] } }
-
class
adi_study_watch.core.packets.adpd_packets.
ADPDCreateDeviceConfiguration
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.ADPD: ['0xC1', '0x10']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': 19, 'checksum': 0 }, 'payload': { 'command': <ADPDCommand.CREATE_DCFG_RES: ['0x71']>, 'status': <CommonStatus.OK: ['0x00']>, 'size': 2, 'data': [ [ <ADPDSlot.SLOT_A: ['0x01']>, <ADPDAppID.APP_ECG: ['0x00']> ], [ <ADPDSlot.SLOT_B: ['0x02']>, <ADPDAppID.APP_ADPD_GREEN: ['0x04']> ] ] } }
-
class
adi_study_watch.core.packets.adpd_packets.
ADPDDCBCommandPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.EDA: ['0xC3', '0x02']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': 20, 'checksum': 0 }, 'payload': { 'command': <DCBCommand.READ_CONFIG_RES: ['0x98']>, 'status': <DCBStatus.OK: ['0x97']>, 'size': 1, 'data': [ [ '0x0', '0x8' ] ] } }
-
class
adi_study_watch.core.packets.adpd_packets.
ADPDDCBPacket
(destination=None, command=None)¶ Packet Structure:
[ { 'header': { 'source': <Application.ADPD: ['0xC1', '0x10']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': 242, 'checksum': 0 }, 'payload': { 'command': <DCBCommand.READ_CONFIG_RES: ['0x98']>, 'status': <DCBStatus.OK: ['0x97']>, 'size': 57, 'packet_count': 2, 'data': [ [ '0x9', '0x97' ], [ '0xB', '0x6E2' ], ... [ '0x1A5', '0x5' ], [ '0x1A6', '0x0' ] ] } }, { 'header': { 'source': <Application.ADPD: ['0xC1', '0x10']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': 242, 'checksum': 0 }, 'payload': { 'command': <DCBCommand.READ_CONFIG_RES: ['0x98']>, 'status': <DCBStatus.OK: ['0x97']>, 'size': 10, 'packet_count': 2, 'data': [ [ '0x1A7', '0x120' ], [ '0x1A8', '0x0' ], ... [ '0x1AF', '0x0' ], [ '0x1B0', '0x4' ] ] } } ]
-
class
adi_study_watch.core.packets.adpd_packets.
ADPDDCFGPacket
(destination=None, command=None)¶ Packet Structure:
[ { 'header': { 'source': <Application.ADPD: ['0xC1', '0x10']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': 240, 'checksum': 0 }, 'payload': { 'command': <CommonCommand.GET_DCFG_RES: ['0x26']>, 'status': <CommonStatus.OK: ['0x00']>, 'size': 57, 'packet_count': 2, 'data': [ [ '0x9', '0x97' ], [ '0xB', '0x2E2' ], ... [ '0x1A5', '0x5' ], [ '0x1A6', '0x0' ] ] } }, { 'header': { 'source': <Application.ADPD: ['0xC1', '0x10']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': 240, 'checksum': 0 }, 'payload': { 'command': <CommonCommand.GET_DCFG_RES: ['0x26']>, 'status': <CommonStatus.OK: ['0x00']>, 'size': 10, 'packet_count': 2, 'data': [ [ '0x1A7', '0x120' ], [ '0x1A8', '0x0' ], ... [ '0x1AF', '0x0' ], [ '0x1B0', '0x4' ] ] } } ]
-
class
adi_study_watch.core.packets.adpd_packets.
ADPDLibraryConfigPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.ADPD: ['0xC1', '0x10']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': 14, 'checksum': 0 }, 'payload': { 'command': <CommonCommand.WRITE_LCFG_RES: ['0x19']>, 'status': <CommonStatus.OK: ['0x00']>, 'size': 1, 'data': [ [ '0x0', '0x1' ] ] } }
-
class
adi_study_watch.core.packets.adpd_packets.
ADPDPauseResumePacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.ADPD: ['0xC1', '0x10']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': '0x15', 'checksum': '0x0' }, 'payload': { 'command': <ADPDCommand.SET_PAUSE_RES: ['0x67']>, 'status': <CommonStatus.ERROR: ['0x01']>, 'device_id': <ADPDDevice.DEVICE_G_R_IR_B: ['0x2C']>, 'pause': True } }
-
class
adi_study_watch.core.packets.adpd_packets.
ADPDRegisterReadPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.ADPD: ['0xC1', '0x10']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': 23, 'checksum': 0 }, 'payload': { 'command': <CommonCommand.REGISTER_READ_RES: ['0x22']>, 'status': <CommonStatus.OK: ['0x00']>, 'size': 3, 'data': [ [ '0x20', '0x2222' ], [ '0x21', '0x0' ], [ '0x22', '0x3' ] ] } }
-
class
adi_study_watch.core.packets.adpd_packets.
ADPDRegisterWritePacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.ADPD: ['0xC1', '0x10']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': 23, 'checksum': 0 }, 'payload': { 'command': <CommonCommand.REGISTER_READ_RES: ['0x22']>, 'status': <CommonStatus.OK: ['0x00']>, 'size': 3, 'data': [ [ '0x20', '0x2222' ], [ '0x21', '0x0' ], [ '0x22', '0x3' ] ] } }
-
class
adi_study_watch.core.packets.adpd_packets.
ADPDUCHRPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.ADPD: ['0xC1', '0x10']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': 13, 'checksum': 0 }, 'payload': { 'command': <ADPDCommand.UC_HR_ENABLE_RES: ['0x83']>, 'status': <CommonStatus.OK: ['0x00']>, 'enabled': True, 'slot': <ADPDSlot.SLOT_F: ['0x06']> } }
-
class
adi_study_watch.core.packets.adpd_packets.
ActiveSlotPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.ADPD: ['0xC1', '0x10']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': '0xC', 'checksum': '0x0' }, 'payload': { 'command': <ADPDCommand.SET_SLOT_ACTIVE_RES: ['0x6B']>, 'status': <CommonStatus.OK: ['0x00']>, 'slot_num': <ADPDSlot.SLOT_A: ['0x01']>, 'slot_enabled': False } }
-
class
adi_study_watch.core.packets.adpd_packets.
AgcControlPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.ADPD: ['0xC1', '0x10']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': '0xF', 'checksum': '0x0' }, 'payload': { 'command': <ADPDCommand.AGC_ON_OFF_RES: ['0x77']>, 'status': <CommonStatus.OK: ['0x00']>, 'size': 2, 'data': [ [ <ADPDLed.LED_MWL: ['0x00']>, True ], [ <ADPDLed.LED_GREEN: ['0x01']>, True ] ] } }
-
class
adi_study_watch.core.packets.adpd_packets.
AgcInfoPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.ADPD: ['0xC1', '0x10']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': '0x61', 'checksum': '0x0' }, 'payload': { 'command': <ADPDCommand.AGC_INFO_RES: ['0x7B']>, 'status': <CommonStatus.OK: ['0x00']>, 'led_index': <ADPDLed.LED_GREEN: ['0x01']>, 'ch1': [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], 'ch2': [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], 'dc0_led_current': 0, 'tia_ch1': 0, 'tia_ch2': 0 } }
-
class
adi_study_watch.core.packets.adpd_packets.
AgcStatusPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.ADPD: ['0xC1', '0x10']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': '0xC', 'checksum': '0x0' }, 'payload': { 'command': <ADPDCommand.AGC_STATUS_RES: ['0x7D']>, 'status': <CommonStatus.OK: ['0x00']>, 'agc_type': <ADPDLed.LED_GREEN: ['0x01']>, 'agc_status': True } }
-
class
adi_study_watch.core.packets.adpd_packets.
ClockCalibrationPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.ADPD: ['0xC1', '0x10']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': '0xB', 'checksum': '0x0' }, 'payload': { 'command': <ADPDCommand.CLOCK_CALIBRATION_RES: ['0x45']>, 'status': <CommonStatus.OK: ['0x00']>, 'clock_id': <Clock.CLOCK_1M_AND_32M: ['0x06']> } }
-
class
adi_study_watch.core.packets.adpd_packets.
ComModePacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.ADPD: ['0xC1', '0x10']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': '0xB', 'checksum': '0x0' }, 'payload': { 'command': <ADPDCommand.COMMUNICATION_MODE_RES: ['0x69']>, 'status': <CommonStatus.OK: ['0x00']>, 'com_mode': 2 } }
-
class
adi_study_watch.core.packets.adpd_packets.
ExternalStreamData
(destination=None, command=None)¶ Packet Structure:
{ 'header':{ 'source': <Application.ADPD: ['0xC1','0x10']>, 'destination': <Application.APP_USB: ['0xC7','0x05']>, 'length': '0xC', 'checksum': '0x0' }, 'payload':{ 'command': <ADPDCommand.EXT_ADPD_DATA_STREAM: ['0x80']>, 'status': <CommonStatus.OK: ['0x00']>, 'sequence_num': [ 2, 0, 0, 0 ], 'data': [ 37, 26, 6, 0 ], 'timestamp': [ 148, 201, 188, 2 ] } }
-
class
adi_study_watch.core.packets.adpd_packets.
ExternalStreamODR
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.ADPD: ['0xC1', '0x10']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': '0xC', 'checksum': '0x0' }, 'payload': { 'command': <ADPDCommand.SET_EXT_DATA_STREAM_ODR_RES: ['0x7F']>, 'status': <CommonStatus.OK: ['0x00']>, 'odr': 50 } }
-
class
adi_study_watch.core.packets.adpd_packets.
SamplingFrequencyPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.ADPD: ['0xC1', '0x10']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': '0xC', 'checksum': '0x0' }, 'payload': { 'command': <ADPDCommand.SET_SAMPLING_FREQUENCY_RES: ['0x73']>, 'status': <CommonStatus.OK: ['0x00']>, 'odr': 100 } }
-
class
adi_study_watch.core.packets.adpd_packets.
SaturationCheckPacket
(destination=None, command=None)¶ Packet Structure:
-
class
adi_study_watch.core.packets.adpd_packets.
SlotPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.ADPD: ['0xC1', '0x10']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': '0xF', 'checksum': '0x0' }, 'payload': { 'command': <ADPDCommand.GET_SLOT_RES: ['0x49']>, 'status': <CommonStatus.OK: ['0x00']>, 'slot_num': <ADPDSlot.SLOT_F: ['0x06']>, 'slot_enabled': True, 'slot_format': 3, 'channel_num': 3 } }
-
class
adi_study_watch.core.packets.adpd_packets.
TestCommandPacket
(destination=None, command=None)¶
adxl_packets module¶
-
class
adi_study_watch.core.packets.adxl_packets.
ADXLConfigPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.ADXL: ['0xC1', '0x02']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': 12, 'checksum': 0 }, 'payload': { 'command': <ADXLCommand.LOAD_CONFIG_RES: ['0x43']>, 'status': <CommonStatus.OK: ['0x00']>, 'device_id': <ADXLDevice.DEVICE_362: ['0x6A', '0x01']> } }
-
class
adi_study_watch.core.packets.adxl_packets.
ADXLDCBCommandPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.EDA: ['0xC3', '0x02']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': 20, 'checksum': 0 }, 'payload': { 'command': <DCBCommand.READ_CONFIG_RES: ['0x98']>, 'status': <DCBStatus.OK: ['0x97']>, 'size': 1, 'data': [ [ '0x0', '0x8' ] ] } }
-
class
adi_study_watch.core.packets.adxl_packets.
ADXLDCBPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.ADXL: ['0xC1', '0x02']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': 112, 'checksum': 0 }, 'payload': { 'command': <DCBCommand.READ_CONFIG_RES: ['0x98']>, 'status': <DCBStatus.OK: ['0x97']>, 'size': 15, 'data': [ [ '0x20', '0x0' ], [ '0x21', '0x0' ], ... [ '0x2D', '0x10' ], [ '0x2E', '0x0' ] ] } }
-
class
adi_study_watch.core.packets.adxl_packets.
ADXLDCFGPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.ADXL: ['0xC1', '0x02']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': 240, 'checksum': 0 }, 'payload': { 'command': <CommonCommand.GET_DCFG_RES: ['0x26']>, 'status': <CommonStatus.OK: ['0x00']>, 'size': 15, 'packets_count': 1, 'data': [ [ '0x20', '0x1' ], [ '0x21', '0x2' ], ... [ '0x2D', '0x10' ], [ '0x2E', '0x3' ] ] } }
-
class
adi_study_watch.core.packets.adxl_packets.
ADXLRegisterReadPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.ADXL: ['0xC1', '0x02']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': 23, 'checksum': 0 }, 'payload': { 'command': <CommonCommand.REGISTER_READ_RES: ['0x22']>, 'status': <CommonStatus.OK: ['0x00']>, 'size': 3, 'data': [ [ '0x20', '0x1' ], [ '0x21', '0x2' ], [ '0x22', '0x0' ] ] } }
-
class
adi_study_watch.core.packets.adxl_packets.
ADXLRegisterWritePacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.ADXL: ['0xC1', '0x02']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': 23, 'checksum': 0 }, 'payload': { 'command': <CommonCommand.REGISTER_WRITE_RES: ['0x24']>, 'status': <CommonStatus.OK: ['0x00']>, 'size': 3, 'data': [ [ '0x20', '0x1' ], [ '0x21', '0x2' ], [ '0x2E', '0x3' ] ] } }
bia_packets module¶
-
class
adi_study_watch.core.packets.bia_packets.
BIADCBCommandPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.EDA: ['0xC3', '0x02']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': 20, 'checksum': 0 }, 'payload': { 'command': <DCBCommand.READ_CONFIG_RES: ['0x98']>, 'status': <DCBStatus.OK: ['0x97']>, 'size': 1, 'data': [ [ '0x0', '0x8' ] ] } }
-
class
adi_study_watch.core.packets.bia_packets.
BIADCBDCFGPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.EDA: ['0xC3', '0x02']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': 20, 'checksum': 0 }, 'payload': { 'command': <DCBCommand.READ_CONFIG_RES: ['0x98']>, 'status': <DCBStatus.OK: ['0x97']>, 'size': 1, 'data': [ [ '0x0', '0x8' ] ] } }
-
class
adi_study_watch.core.packets.bia_packets.
BIADCBLCFGPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.EDA: ['0xC3', '0x02']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': 20, 'checksum': 0 }, 'payload': { 'command': <DCBCommand.READ_CONFIG_RES: ['0x98']>, 'status': <DCBStatus.OK: ['0x97']>, 'size': 1, 'data': [ [ '0x0', '0x8' ] ] } }
-
class
adi_study_watch.core.packets.bia_packets.
BIADCFGPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.EDA: ['0xC3', '0x02']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': 23, 'checksum': 0 }, 'payload': { 'command': <CommonCommand.REGISTER_READ_RES: ['0x22']>, 'status': <CommonStatus.OK: ['0x00']>, 'size': 3, 'data': [ [ '0x0', '0x1' ], [ '0x1', '0x2' ], [ '0x2', '0x3' ] ] } }
-
class
adi_study_watch.core.packets.bia_packets.
BIADFTPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.BIA: ['0xC3', '0x07']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': 12, 'checksum': 0 }, 'payload': { 'command': <BIACommand.SET_DFT_NUM_RES: ['0x47']>, 'status': <CommonStatus.OK: ['0x00']>, 'dft_window': <BIADFTWindow.DFT_WINDOW_16384: ['0x00', '0x12']> } }
-
class
adi_study_watch.core.packets.bia_packets.
BIALibraryConfigPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.BIA: ['0xC3', '0x07']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': 16, 'checksum': 0 }, 'payload': { 'command': <CommonCommand.READ_LCFG_RES: ['0x17']>, 'status': <CommonStatus.OK: ['0x00']>, 'size': 1, 'data': [ [ '0x0', '0x0' ] ] } }
-
class
adi_study_watch.core.packets.bia_packets.
DCBTimingInfoPacket
(destination=None, command=None)¶
-
class
adi_study_watch.core.packets.bia_packets.
FDSStatusPacket
(destination=None, command=None)¶
-
class
adi_study_watch.core.packets.bia_packets.
HSRTIAPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.BIA: ['0xC3', '0x07']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': '0xC', 'checksum': '0x0' }, 'payload': { 'command': <BIACommand.SET_HS_TRANS_IMPEDANCE_AMPLIFIER_CAL_RES: ['0x49']>, 'status': <CommonStatus.OK: ['0x00']>, 'hs_resistor_tia': <HSResistorTIA.RESISTOR_1K: ['0x00', '0x01']> } }
command_packet module¶
-
class
adi_study_watch.core.packets.command_packet.
CommandPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.BIA: ['0xC3', '0x07']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': '0xC', 'checksum': '0x0' }, 'payload': { 'command': <BIACommand.SET_HS_TRANS_IMPEDANCE_AMPLIFIER_CAL_RES: ['0x49']>, 'status': <CommonStatus.OK: ['0x00']>, } }
common_packets module¶
-
class
adi_study_watch.core.packets.common_packets.
AlarmPacket
(destination=None, command=None)¶
-
class
adi_study_watch.core.packets.common_packets.
DecimationFactorPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.ADPD: ['0xC1', '0x10']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': '0xD', 'checksum': '0x0' }, 'payload': { 'command': <CommonCommand.GET_STREAM_DEC_FACTOR_RES: ['0x2A']>, 'status': <CommonStatus.OK: ['0x00']>, 'stream_address': <Stream.ADPD6: ['0xC2', '0x16']>, 'decimation_factor': 1 } }
-
class
adi_study_watch.core.packets.common_packets.
StreamPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.ADXL: ['0xC1', '0x02']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': '0xC', 'checksum': '0x0' }, 'payload': { 'command': <CommonCommand.SUBSCRIBE_STREAM_RES: ['0x0D']>, 'status': <CommonStatus.SUBSCRIBER_ADDED: ['0x09']>, 'stream_address': <Stream.ADXL: ['0xC2', '0x02']> } }
-
class
adi_study_watch.core.packets.common_packets.
StreamStatusPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.ADXL: ['0xC1', '0x02']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': '0xE', 'checksum': '0x0' }, 'payload': { 'command': <CommonCommand.GET_SENSOR_STATUS_RES: ['0x11']>, 'status': <CommonStatus.STREAM_STOPPED: ['0x03']>, 'stream_address': <Stream.ADXL: ['0xC2', '0x02']>, 'num_subscribers': 0, 'num_start_registered': 0 } }
-
class
adi_study_watch.core.packets.common_packets.
VersionPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.ADPD: ['0xC1', '0x10']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': '0x42', 'checksum': '0x0' }, 'payload': { 'command': <CommonCommand.GET_VERSION_RES: ['0x01']>, 'status': <CommonStatus.OK: ['0x00']>, 'major_version': 0, 'minor_version': 3, 'patch_version': 1, 'version_string': 'ADPD_App', 'build_version': 'TEST ADPD4000_VERSION STRING' } }
display_packets module¶
-
class
adi_study_watch.core.packets.display_packets.
EnableDisplayPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.DISPLAY: ['0xC5', '0x03']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': '0xB', 'checksum': '0x0' }, 'payload': { 'command': <DisplayCommand.BACKLIGHT_CONTROL_RES: ['0x45']>, 'status': <CommonStatus.OK: ['0x00']>, 'enabled': False } }
-
class
adi_study_watch.core.packets.display_packets.
SetDisplayPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.DISPLAY: ['0xC5', '0x03']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': '0xB', 'checksum': '0x0' }, 'payload': { 'command': <DisplayCommand.BACKLIGHT_CONTROL_RES: ['0x45']>, 'status': <CommonStatus.OK: ['0x00']>, 'enabled': False } }
ecg_packets module¶
-
class
adi_study_watch.core.packets.ecg_packets.
ECGDCBCommandPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.EDA: ['0xC3', '0x02']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': 20, 'checksum': 0 }, 'payload': { 'command': <DCBCommand.READ_CONFIG_RES: ['0x98']>, 'status': <DCBStatus.OK: ['0x97']>, 'size': 1, 'data': [ [ '0x0', '0x8' ] ] } }
-
class
adi_study_watch.core.packets.ecg_packets.
ECGDCBPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.ECG: ['0xC3', '0x01']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': 28, 'checksum': 0 }, 'payload': { 'command': <DCBCommand.READ_CONFIG_RES: ['0x98']>, 'status': <DCBStatus.ERROR_NO_DCB: ['0x98']>, 'size': 0, 'data': [ ] } }
-
class
adi_study_watch.core.packets.ecg_packets.
ECGLibraryConfigPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.ECG: ['0xC3', '0x01']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': 17, 'checksum': 0 }, 'payload': { 'command': <CommonCommand.READ_LCFG_RES: ['0x17']>, 'status': <CommonStatus.OK: ['0x00']>, 'size': 2, 'data': [ [ '0x0', '0x0' ], [ '0x1', '0x0' ] ] } }
eda_packets module¶
-
class
adi_study_watch.core.packets.eda_packets.
DynamicScalingPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.EDA: ['0xC3', '0x02']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': '0x11', 'checksum': '0x0' }, 'payload': { 'command': <EDACommand.DYNAMIC_SCALE_RES: ['0x43']>, 'status': <CommonStatus.OK: ['0x00']>, 'enabled': True, 'min_scale': <ScaleResistor.SCALE_RESISTOR_100K: ['0x14', '0x00']>, 'max_scale': <ScaleResistor.SCALE_RESISTOR_128K: ['0x16', '0x00']>, 'lp_resistor_tia': <ScaleResistor.SCALE_RESISTOR_100K: ['0x14', '0x00']> } }
-
class
adi_study_watch.core.packets.eda_packets.
EDABaselineImpedancePacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.EDA: ['0xC3', '0x02']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': 30, 'checksum': 0 }, 'payload': { 'command': <EDACommand.BASELINE_IMP_SET_RES: ['0x4D']>, 'status': <CommonStatus.OK: ['0x00']>, 'real_dft16': 25000.5, 'imaginary_dft16': 25000.5, 'real_dft8': 25000.5, 'imaginary_dft8': 25000.5, 'resistor_baseline': 19900 } }
-
class
adi_study_watch.core.packets.eda_packets.
EDADCBCommandPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.EDA: ['0xC3', '0x02']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': 20, 'checksum': 0 }, 'payload': { 'command': <DCBCommand.READ_CONFIG_RES: ['0x98']>, 'status': <DCBStatus.OK: ['0x97']>, 'size': 1, 'data': [ [ '0x0', '0x8' ] ] } }
-
class
adi_study_watch.core.packets.eda_packets.
EDADCBDCFGPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.EDA: ['0xC3', '0x02']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': 20, 'checksum': 0 }, 'payload': { 'command': <DCBCommand.READ_CONFIG_RES: ['0x98']>, 'status': <DCBStatus.OK: ['0x97']>, 'size': 1, 'data': [ [ '0x0', '0x8' ] ] } }
-
class
adi_study_watch.core.packets.eda_packets.
EDADCBLCFGPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.EDA: ['0xC3', '0x02']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': 20, 'checksum': 0 }, 'payload': { 'command': <DCBCommand.READ_CONFIG_RES: ['0x98']>, 'status': <DCBStatus.OK: ['0x97']>, 'size': 1, 'data': [ [ '0x0', '0x8' ] ] } }
-
class
adi_study_watch.core.packets.eda_packets.
EDADCFGPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.EDA: ['0xC3', '0x02']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': 23, 'checksum': 0 }, 'payload': { 'command': <CommonCommand.REGISTER_READ_RES: ['0x22']>, 'status': <CommonStatus.OK: ['0x00']>, 'size': 3, 'data': [ [ '0x0', '0x1' ], [ '0x1', '0x2' ], [ '0x2', '0x3' ] ] } }
-
class
adi_study_watch.core.packets.eda_packets.
EDADFTPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.EDA: ['0xC3', '0x02']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': 11, 'checksum': 0 }, 'payload': { 'command': <EDACommand.SET_DFT_NUM_RES: ['0x47']>, 'status': <CommonStatus.OK: ['0x00']>, 'dft_window': <EDADFTWindow.DFT_WINDOW_8: ['0x01']> } }
-
class
adi_study_watch.core.packets.eda_packets.
EDAGetBaselineImpedancePacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.EDA: ['0xC3', '0x02']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': 30, 'checksum': 0 }, 'payload': { 'command': <EDACommand.BASELINE_IMP_SET_RES: ['0x4D']>, 'status': <CommonStatus.OK: ['0x00']>, 'real_dft16': 25000.5, 'imaginary_dft16': 25000.5, 'real_dft8': 25000.5, 'imaginary_dft8': 25000.5, 'resistor_baseline': 19900 } }
-
class
adi_study_watch.core.packets.eda_packets.
EDALibraryConfigPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.EDA: ['0xC3', '0x02']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': 21, 'checksum': 0 }, 'payload': { 'command': <CommonCommand.READ_LCFG_RES: ['0x17']>, 'status': <CommonStatus.OK: ['0x00']>, 'size': 2, 'data': [ [ '0x1', '0x0' ], [ '0x0', '0x0' ] ] } }
-
class
adi_study_watch.core.packets.eda_packets.
EDARegisterReadPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.EDA: ['0xC3', '0x02']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': 23, 'checksum': 0 }, 'payload': { 'command': <CommonCommand.REGISTER_READ_RES: ['0x22']>, 'status': <CommonStatus.OK: ['0x00']>, 'size': 3, 'data': [ [ '0x0', '0x1' ], [ '0x1', '0x2' ], [ '0x2', '0x3' ] ] } }
-
class
adi_study_watch.core.packets.eda_packets.
EDARegisterWritePacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.EDA: ['0xC3', '0x02']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': 23, 'checksum': 0 }, 'payload': { 'command': <CommonCommand.REGISTER_READ_RES: ['0x22']>, 'status': <CommonStatus.OK: ['0x00']>, 'size': 3, 'data': [ [ '0x0', '0x1' ], [ '0x1', '0x2' ], [ '0x2', '0x3' ] ] } }
-
class
adi_study_watch.core.packets.eda_packets.
EDASleepWakeupPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.EDA: ['0xC3', '0x02']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': 20, 'checksum': 0 }, 'payload': { 'command': <DCBCommand.READ_CONFIG_RES: ['0x98']>, 'status': <DCBStatus.OK: ['0x97']>, } }
-
class
adi_study_watch.core.packets.eda_packets.
ResistorTIACalibratePacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.EDA: ['0xC3', '0x02']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': '0x2A', 'checksum': '0x0' }, 'payload': { 'command': <EDACommand.RESISTOR_TIA_CAL_RES: ['0x4B']>, 'status': <CommonStatus.OK: ['0x00']>, 'min_scale': <ScaleResistor.SCALE_RESISTOR_100K: ['0x14', '0x00']>, 'max_scale': <ScaleResistor.SCALE_RESISTOR_128K: ['0x16', '0x00']>, 'lp_resistor_tia': <ScaleResistor.SCALE_RESISTOR_100K: ['0x14', '0x00']>, 'calibrated_values_count': 3, 'calibrated_values': [ [ 106299, 100000 ], [ 127514, 120000 ], [ 136008, 128000 ] ] } }
fs_packets module¶
-
class
adi_study_watch.core.packets.fs_packets.
BadBlockPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.FS: ['0xC5', '0x01']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': '0xE', 'checksum': '0x0' }, 'payload': { 'command': <FSCommand.GET_BAD_BLOCKS_RES: ['0x7F']>, 'status': <CommonStatus.OK: ['0x00']>, 'bad_blocks': 0 } }
-
class
adi_study_watch.core.packets.fs_packets.
ConfigFilePacket
(destination=None, command=None)¶
-
class
adi_study_watch.core.packets.fs_packets.
DebugInfoPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.FS: ['0xC5', '0x01']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': '0x2A', 'checksum': '0x0' }, 'payload': { 'command': <FSCommand.GET_DEBUG_INFO_RES: ['0x89']>, 'status': <CommonStatus.OK: ['0x00']>, 'head_pointer': 374, 'tail_pointer': 4, 'usb_avg_tx_time': 0, 'usb_avg_port_write_time': 0, 'page_read_time': 0, 'page_write_time': 1 } }
-
class
adi_study_watch.core.packets.fs_packets.
FSStreamStatusPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.FS: ['0xC5', '0x01']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': '0xD', 'checksum': '0x0' }, 'payload': { 'command': <FSCommand.GET_STREAM_SUB_STATUS_RES: ['0x53']>, 'status': <FSStatus.OK: ['0x41']>, 'stream_address': <Stream.ADXL: ['0xC2', '0x02']>, 'sub_state': 0 } }
-
class
adi_study_watch.core.packets.fs_packets.
FileCountPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.FS: ['0xC5', '0x01']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': '0xC', 'checksum': '0x0' }, 'payload': { 'command': <FSCommand.GET_NUMBER_OF_FILE_RES: ['0x71']>, 'status': <CommonStatus.OK: ['0x00']>, 'file_count': 2 } }
-
class
adi_study_watch.core.packets.fs_packets.
FileInfoRequestPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.FS: ['0xC5', '0x01']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': '0x26', 'checksum': '0x0' }, 'payload': { 'command': <FSCommand.GET_FILE_INFO_RES: ['0x8D']>, 'status': <FSStatus.OK: ['0x41']>, } }
-
class
adi_study_watch.core.packets.fs_packets.
FileInfoResponsePacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.FS: ['0xC5', '0x01']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': '0x26', 'checksum': '0x0' }, 'payload': { 'command': <FSCommand.GET_FILE_INFO_RES: ['0x8D']>, 'status': <FSStatus.OK: ['0x41']>, 'filename': '03123EBD.LOG', 'start_page': 375, 'end_page': 375, 'file_size': 426 } }
-
class
adi_study_watch.core.packets.fs_packets.
KeyValuePairPacket
(destination=None, command=None)¶
-
class
adi_study_watch.core.packets.fs_packets.
KeyValuePairResponsePacket
(destination=None, command=None)¶
-
class
adi_study_watch.core.packets.fs_packets.
LSRequestPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.FS: ['0xC5', '0x01']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': '0x37', 'checksum': '0x0' }, 'payload': { 'command': <FSCommand.LS_RES: ['0x49']>, 'status': <FSStatus.OK: ['0x41']>, } }
-
class
adi_study_watch.core.packets.fs_packets.
LSResponsePacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.FS: ['0xC5', '0x01']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': '0x37', 'checksum': '0x0' }, 'payload': { 'command': <FSCommand.LS_RES: ['0x49']>, 'status': <FSStatus.OK: ['0x41']>, 'filename': '03043B06.LOG', 'filetype': <FileType.DATA_FILE: ['0x01']>, 'file_size': 160309 } }
-
class
adi_study_watch.core.packets.fs_packets.
LoggingPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.FS: ['0xC5', '0x01']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': '0xA', 'checksum': '0x0' }, 'payload': { 'command': <FSCommand.START_LOGGING_RES: ['0x77']>, 'status': <FSStatus.OK: ['0x41']> } }
-
class
adi_study_watch.core.packets.fs_packets.
PageInfoRequestPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.FS: ['0xC5', '0x01']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': '0x7A', 'checksum': '0x0' }, 'payload': { 'command': <FSCommand.PAGE_READ_TEST_RES: ['0x8F']>, 'status': <FSStatus.OK: ['0x41']>, 'page_num': 300, 'num_bytes': 10 } }
-
class
adi_study_watch.core.packets.fs_packets.
PageInfoResponsePacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.FS: ['0xC5', '0x01']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': '0x7A', 'checksum': '0x0' }, 'payload': { 'command': <FSCommand.PAGE_READ_TEST_RES: ['0x8F']>, 'status': <FSStatus.OK: ['0x41']>, 'page_num': 300, 'ecc_zone_status': 0, 'next_page': 301, 'occupied': 1, 'data_region_status': 0, 'data': [ 4, 0, 74, 71, 104, 6, 75, 126, 4, 0 ], 'num_bytes': 10 } }
-
class
adi_study_watch.core.packets.fs_packets.
PatternWritePacket
(destination=None, command=None)¶
-
class
adi_study_watch.core.packets.fs_packets.
StreamBleFileResponsePacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.FS: ['0xC5', '0x01']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': '0x20E', 'checksum': '0x0' }, 'payload': { 'command': <FSCommand.DOWNLOAD_LOG_RES: ['0x7B']>, 'status': <FSStatus.OK: ['0x41']>, 'page_chunk_number': 1, 'page_number': 0, 'page_chunk_size': 512, 'page_chunk_bytes': [ 0, 195, 0, ... , 0, 0, 0, 0, 0, 0, 0 ], 'crc16': 4312 } }
-
class
adi_study_watch.core.packets.fs_packets.
StreamDebugInfoPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.FS: ['0xC5', '0x01']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': '0x26', 'checksum': '0x0' }, 'payload': { 'command': <FSCommand.STREAM_DEBUG_INFO_RES: ['0x57']>, 'status': <FSStatus.OK: ['0x41']>, 'stream_address': <Stream.ADXL: ['0xC2', '0x02']>, 'packets_received': 0, 'packets_missed': 0, 'last_page_read': 0, 'last_page_read_offset': 0, 'last_page_read_status': 0, 'num_bytes_transferred': 0, 'bytes_read': 0, 'usb_cdc_write_failed': 0 } }
-
class
adi_study_watch.core.packets.fs_packets.
StreamFileChunkPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.FS: ['0xC5', '0x01']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': '0x20E', 'checksum': '0x0' }, 'payload': { 'command': <FSCommand.CHUNK_RETRANSMIT_RES: ['0x85']>, 'status': <FSStatus.OK: ['0x41']>, 'retransmit_type': 0, 'page_roll_over': 1, 'page_chunk_number': 0, 'page_number': 2, 'filename': 'FILENAME.LOG' } }
-
class
adi_study_watch.core.packets.fs_packets.
StreamFileRequestPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.FS: ['0xC5', '0x01']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': '0x20E', 'checksum': '0x0' }, 'payload': { 'command': <FSCommand.DOWNLOAD_LOG_RES: ['0x7B']>, 'status': <FSStatus.OK: ['0x41']>, 'filename': 'FILENAME.LOG' } }
-
class
adi_study_watch.core.packets.fs_packets.
StreamFileResponsePacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.FS: ['0xC5', '0x01']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': '0x20E', 'checksum': '0x0' }, 'payload': { 'command': <FSCommand.DOWNLOAD_LOG_RES: ['0x7B']>, 'status': <FSStatus.OK: ['0x41']>, 'page_chunk_number': 1, 'page_number': 0, 'page_chunk_size': 512, 'page_chunk_bytes': [ 0, 195, 0, ... , 0, 0, 0, 0, 0, 0, 0 ], 'crc16': 4312 } }
-
class
adi_study_watch.core.packets.fs_packets.
SystemTestInfoRequestPacket
(destination=None, command=None)¶
-
class
adi_study_watch.core.packets.fs_packets.
SystemTestInfoResponsePacket
(destination=None, command=None)¶
-
class
adi_study_watch.core.packets.fs_packets.
VolumeInfoPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.FS: ['0xC5', '0x01']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': '0x14', 'checksum': '0x0' }, 'payload': { 'command': <FSCommand.VOL_INFO_RES: ['0x4F']>, 'status': <FSStatus.OK: ['0x41']>, 'total_memory': 536870656, 'used_memory': 487424, 'available_memory': 99 } }
low_touch_packets module¶
-
class
adi_study_watch.core.packets.low_touch_packets.
CommandLogPacket
(destination=None, command=None)¶
-
class
adi_study_watch.core.packets.low_touch_packets.
LTDCBCommandPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.EDA: ['0xC3', '0x02']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': 20, 'checksum': 0 }, 'payload': { 'command': <DCBCommand.READ_CONFIG_RES: ['0x98']>, 'status': <DCBStatus.OK: ['0x97']>, 'size': 1, 'data': [ [ '0x0', '0x8' ] ] } }
-
class
adi_study_watch.core.packets.low_touch_packets.
LTDCBGENPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.LT_APP: ['0xC8', '0x0A']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': 242, 'checksum': 0 }, 'payload': { 'command': <DCBCommand.READ_CONFIG_RES: ['0x98']>, 'status': <DCBStatus.ERROR_NO_DCB: ['0x98']>, 'size': 0, 'packet_count': 0, 'data': [ ], 'start_command_count': 0, 'stop_command_count': 0 } }
-
class
adi_study_watch.core.packets.low_touch_packets.
LTDCBLCFGPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.PM: ['0xC5', '0x00']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': 32, 'checksum': 0 }, 'payload': { 'command': <DCBCommand.READ_CONFIG_RES: ['0x98']>, 'status': <DCBStatus.OK: ['0x97']>, 'size': 5, 'data': [ [ '0x0', '0x1B58' ], [ '0x1', '0x1388' ], [ '0x2', '0x564' ], [ '0x3', '0x53C' ], [ '0x4', '0x3' ] ] } }
-
class
adi_study_watch.core.packets.low_touch_packets.
LTDCBLCFGPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.PM: ['0xC5', '0x00']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': 32, 'checksum': 0 }, 'payload': { 'command': <DCBCommand.READ_CONFIG_RES: ['0x98']>, 'status': <DCBStatus.OK: ['0x97']>, 'size': 5, 'data': [ [ '0x0', '0x1B58' ], [ '0x1', '0x1388' ], [ '0x2', '0x564' ], [ '0x3', '0x53C' ], [ '0x4', '0x3' ] ] } }
-
class
adi_study_watch.core.packets.low_touch_packets.
LTLibraryConfigPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.LT_APP: ['0xC8', '0x0A']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': 14, 'checksum': 0 }, 'payload': { 'command': <CommonCommand.READ_LCFG_RES: ['0x17']>, 'status': <CommonStatus.OK: ['0x00']>, 'size': 1, 'data': [ [ '0x0', '0x1B58' ] ] } }
-
class
adi_study_watch.core.packets.low_touch_packets.
ReadCH2CapPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.LT_APP: ['0xC8', '0x0A']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': '0xC', 'checksum': '0x0' }, 'payload': { 'command': <LTCommand.READ_CH2_CAP_RES: ['0x47']>, 'status': <CommonStatus.OK: ['0x00']>, 'cap_value': 1179 } }
pm_packets module¶
-
class
adi_study_watch.core.packets.pm_packets.
AppsHealthPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.PM: ['0xC5', '0x00']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': '0x16', 'checksum': '0x0' }, 'payload': { 'command': <PMCommand.GET_APPS_HEALTH_RES: ['0x91']>, 'status': <CommonStatus.OK: ['0x00']>, 'ad5940_isr_count': 202, 'adpd_isr_count': 3350, 'adxl_isr_count': 1187 } }
-
class
adi_study_watch.core.packets.pm_packets.
ChipIDPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.PM: ['0xC5', '0x00']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': '0xD', 'checksum': '0x0' }, 'payload': { 'command': <PMCommand.CHIP_ID_RES: ['0x7D']>, 'status': <PMStatus.OK: ['0x41']>, 'chip_name': <ChipID.ADPD4K: ['0x02']>, 'chip_id': 192 } }
-
class
adi_study_watch.core.packets.pm_packets.
ControlPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.PM: ['0xC5', '0x00']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': '0xB', 'checksum': '0x0' }, 'payload': { 'command': <PMCommand.CAP_SENSE_TEST_RES: ['0x7F']>, 'status': <PMStatus.OK: ['0x41']>, 'enabled': False } }
-
class
adi_study_watch.core.packets.pm_packets.
DCBStatusPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.PM: ['0xC5', '0x00']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': '0x1A', 'checksum': '0x0' }, 'payload': { 'command': <DCBCommand.QUERY_STATUS_RES: ['0x9E']>, 'status': <PMStatus.OK: ['0x41']>, 'general_block': 0, 'ad5940_block': 0, 'adpd_block': 0, 'adxl_block': 0, 'ppg_block': 0, 'ecg_block': 0, 'eda_block': 0, 'ad7156_block': 1, 'pedometer_block': 0, 'temperature_block': 0, 'low_touch_block': 0, 'ui_config_block': 0, 'user0_block': 0, 'user1_block': 0, 'user2_block': 0, 'user3_block': 0 } }
-
class
adi_study_watch.core.packets.pm_packets.
DateTimePacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.PM: ['0xC5', '0x00']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': '0x15', 'checksum': '0x0' }, 'payload': { 'command': <PMCommand.GET_DATE_TIME_RES: ['0x53']>, 'status': <CommonStatus.OK: ['0x00']>, 'year': 2021, 'month': 3, 'day': 12, 'hour': 16, 'minute': 33, 'second': 12, 'tz_sec': 19800 } }
-
class
adi_study_watch.core.packets.pm_packets.
EEPROMPacket
(destination=None, command=None)¶
-
class
adi_study_watch.core.packets.pm_packets.
HibernateModePacket
(destination=None, command=None)¶
-
class
adi_study_watch.core.packets.pm_packets.
LDOControlPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.PM: ['0xC5', '0x00']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': '0xC', 'checksum': '0x0' }, 'payload': { 'command': <PMCommand.LDO_CONTROL_RES: ['0x7B']>, 'status': <PMStatus.OK: ['0x41']>, 'ldo_name': <LDO.OPTICAL: ['0x02']>, 'enabled': False } }
-
class
adi_study_watch.core.packets.pm_packets.
MCUVersionPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.PM: ['0xC5', '0x00']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': '0xB', 'checksum': '0x0' }, 'payload': { 'command': <PMCommand.GET_MCU_VERSION_RES: ['0x59']>, 'status': <PMStatus.OK: ['0x41']>, 'mcu': <MCUType.MCU_M4: ['0x02']> } }
-
class
adi_study_watch.core.packets.pm_packets.
PingPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.PM: ['0xC5', '0x00']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': '0x49', 'checksum': '0x0' }, 'payload': { 'command': <CommonCommand.PING_RES: ['0x1B']>, 'status': <CommonStatus.OK: ['0x00']>, 'sequence_num': 1, 'data': [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ... , 0, 0, 0, 0 ], 'elapsed_time': 0.016231060028076172 } }
-
class
adi_study_watch.core.packets.pm_packets.
PowerStatePacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.PM: ['0xC5', '0x00']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': '0xB', 'checksum': '0x0' }, 'payload': { 'command': <PMCommand.SET_POWER_STATE_RES: ['0x49']>, 'status': <PMStatus.OK: ['0x41']>, 'power_state': <PowerMode.ACTIVE: ['0x00']> } }
-
class
adi_study_watch.core.packets.pm_packets.
SwitchControlPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.PM: ['0xC5', '0x00']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': '0xC', 'checksum': '0x0' }, 'payload': { 'command': <PMCommand.SW_CONTROL_RES: ['0x79']>, 'status': <PMStatus.OK: ['0x41']>, 'switch_name': <ElectrodeSwitch.ADPD4000: ['0x02']>, 'enabled': False } }
-
class
adi_study_watch.core.packets.pm_packets.
SyncTimerPacket
(destination=None, command=None)¶
-
class
adi_study_watch.core.packets.pm_packets.
SystemInfoPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.PM: ['0xC5', '0x00']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': '0x24', 'checksum': '0x0' }, 'payload': { 'command': <PMCommand.SYS_INFO_RES: ['0x4B']>, 'status': <PMStatus.OK: ['0x41']>, 'version': 0, 'mac_address': 'C5-05-CA-F1-67-D5', 'device_id': 0, 'model_number': 0, 'hw_id': 0, 'bom_id': 0, 'batch_id': 0, 'date': 0, 'board_type': 0 } }
-
class
adi_study_watch.core.packets.pm_packets.
TopTouchControlPacket
(destination=None, command=None)¶
-
class
adi_study_watch.core.packets.pm_packets.
UICRCustomerRegistersPacket
(destination=None, command=None)¶ Packet Structure:
ppg_packets module¶
-
class
adi_study_watch.core.packets.ppg_packets.
LibraryConfigDataPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.PPG: ['0xC3', '0x00']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': 235, 'checksum': 0 }, 'payload': { 'command': <CommonCommand.GET_LCFG_RES: ['0x13']>, 'status': <CommonStatus.OK: ['0x00']>, 'size': 56, 'data': [ '0xC0', '0x20', ... ] } }
-
class
adi_study_watch.core.packets.ppg_packets.
PPGDCBCommandPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.EDA: ['0xC3', '0x02']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': 20, 'checksum': 0 }, 'payload': { 'command': <DCBCommand.READ_CONFIG_RES: ['0x98']>, 'status': <DCBStatus.OK: ['0x97']>, 'size': 1, 'data': [ [ '0x0', '0x8' ] ] } }
-
class
adi_study_watch.core.packets.ppg_packets.
PPGDCBPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.PPG: ['0xC3', '0x00']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': 236, 'checksum': 0 }, 'payload': { 'command': <DCBCommand.READ_CONFIG_RES: ['0x98']>, 'status': <DCBStatus.ERROR_NO_DCB: ['0x98']>, 'size': 0, 'data': [ ] } }
-
class
adi_study_watch.core.packets.ppg_packets.
PPGLibraryConfigPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.PPG: ['0xC3', '0x00']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': 16, 'checksum': 0 }, 'payload': { 'command': <CommonCommand.READ_LCFG_RES: ['0x17']>, 'status': <CommonStatus.OK: ['0x00']>, 'size': 1, 'data': [ [ '0x0', '0xC0' ] ] } }
-
class
adi_study_watch.core.packets.ppg_packets.
PPGStatesPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.PPG: ['0xC3', '0x00']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': '0x14', 'checksum': '0x0' }, 'payload': { 'command': <PPGCommand.GET_LAST_STATES_RES: ['0x43']>, 'status': <CommonStatus.OK: ['0x00']>, 'states': [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 7 ] } }
-
class
adi_study_watch.core.packets.ppg_packets.
SetLibraryConfigPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.PPG: ['0xC3', '0x00']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': 10, 'checksum': 0 }, 'payload': { 'command': <CommonCommand.SET_LCFG_RES: ['0x15']>, 'status': <CommonStatus.OK: ['0x00']> } }
sqi_packets module¶
-
class
adi_study_watch.core.packets.sqi_packets.
SQISlotPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.SQI: ['0xC8', '0x0C']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': '0xC', 'checksum': '0x0' }, 'payload': { 'command': <SQICommand.SET_SLOT_RES: ['0x5F']>, 'status': <CommonStatus.OK: ['0x00']>, 'slot': <SQISlot.SLOT_G: ['0x40', '0x00']> } }
stream_data_packets module¶
-
class
adi_study_watch.core.packets.stream_data_packets.
AD7156DataPacket
¶ -
get_dict
(last_timestamp=None)¶ Reorganising of stream data in stream_data key.
-
-
class
adi_study_watch.core.packets.stream_data_packets.
ADPDDataPacket
¶ Packet Structure:
{ 'header': { 'source': <Stream.ADPD6: ['0xC2', '0x16']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': '0x2C', 'checksum': '0x0' }, 'payload': { 'command': <CommonCommand.STREAM_DATA: ['0x28']>, 'status': <CommonStatus.OK: ['0x00']>, 'sequence_number': 0, 'data_type': 4, 'channel_num': 2, 'timestamp': 1751731879, 'sample_num': 2, 'signal_data': [ 351762, 351755 ], 'dark_data': [ 0, 0 ], } }
-
get_dict
(last_timestamp=None)¶ Reorganising of stream data in stream_data key.
-
-
class
adi_study_watch.core.packets.stream_data_packets.
ADXLDataPacket
¶ Packet Structure:
{ 'header': { 'source': <Stream.ADXL: ['0xC2', '0x02']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': '0x37', 'checksum': '0x0' }, 'payload': { 'command': <CommonCommand.STREAM_DATA: ['0x28']>, 'status': <CommonStatus.OK: ['0x00']>, 'sequence_number': 395, 'data_type': 0, 'stream_data': [ { 'timestamp': 1767361372, 'x': -85, 'y': 90, 'z': 55 }, { 'timestamp': 1767362027, 'x': -80, 'y': 88, 'z': 55 }, { 'timestamp': 1767362682, 'x': 40, 'y': 274, 'z': 79 }, { 'timestamp': 1767363337, 'x': 70, 'y': 273, 'z': 54 }, { 'timestamp': 1767363931, 'x': 57, 'y': 257, 'z': 48 } ] } }
-
get_dict
(last_timestamp=None)¶ Reorganising of stream data in stream_data key.
-
-
class
adi_study_watch.core.packets.stream_data_packets.
AGCDataPacket
¶ Packet Structure:
{ 'header': { 'source': <Stream.AGC: ['0xC6', '0xB0']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': 48, 'checksum': 0 }, 'payload': { 'command': <CommonCommand.STREAM_DATA: ['0x28']>, 'status': <CommonStatus.NEW_STREAM_STATUS: ['0x43']>, 'sequence_number': 0, 'timestamp': 1633077776386.271, 'mts': [ 65535, 0, 0, 0, 0, 0 ], 'setting': [ 7, 83, 0, 320, 58331, 50, 0, 0, 0, 0 ] } }
-
get_dict
(last_timestamp=None)¶ Postprocessing.
-
-
class
adi_study_watch.core.packets.stream_data_packets.
BCMDataPacket
¶ -
get_dict
(last_timestamp=None)¶ Postprocessing.
-
-
class
adi_study_watch.core.packets.stream_data_packets.
BCMDataPacket
¶ -
get_dict
(last_timestamp=None)¶ Postprocessing.
-
-
class
adi_study_watch.core.packets.stream_data_packets.
BIADataPacket
¶ Packet Structure:
{ 'header': { 'source': <Stream.BIA: ['0xC4', '0x07']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': '0x41', 'checksum': '0x0' }, 'payload': { 'command': <CommonCommand.STREAM_DATA: ['0x28']>, 'status': <CommonStatus.OK: ['0x00']>, 'sequence_number': 1, 'data_type': 0, 'stream_data': [ { 'timestamp': 1788107093, 'real': 0, 'imaginary': 0, 'frequency_index': 82 }, { 'timestamp': 1788114863, 'real': 0, 'imaginary': 0, 'frequency_index': 5 }, { 'timestamp': 1788122630, 'real': 0, 'imaginary': 0, 'frequency_index': 8 }, { 'timestamp': 1788130399, 'real': 0, 'imaginary': 0, 'frequency_index': 54 } ] } }
-
get_dict
(last_timestamp=None)¶ Reorganising of stream data in stream_data key.
-
-
class
adi_study_watch.core.packets.stream_data_packets.
CapSenseStreamDataPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.PM: ['0xC5', '0x00']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': '0xC', 'checksum': '0x0' }, 'payload': { 'command': <PMCommand.CAP_SENSE_STREAM_DATA: ['0x82']>, 'status': <CommonStatus.OK: ['0x00']>, 'position': 1, 'value': 0 } }
-
class
adi_study_watch.core.packets.stream_data_packets.
ECGDataPacket
¶ Packet Structure:
{ 'header': { 'source': <Stream.ECG: ['0xC4', '0x01']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': '0x3D', 'checksum': '0x0' }, 'payload': { 'command': <CommonCommand.STREAM_DATA: ['0x28']>, 'status': <CommonStatus.OK: ['0x00']>, 'sequence_number': 0, 'data_type': 1, 'ecg_info': 0, 'hr': 0, 'stream_data': [ { 'timestamp': 1771095376, 'ecg_data': 12351 }, { 'timestamp': 1771095703, 'ecg_data': 12353 }, { 'timestamp': 1771096030, 'ecg_data': 52470 }, { 'timestamp': 1771096357, 'ecg_data': 41129 }, { 'timestamp': 1771096676, 'ecg_data': 63838 }, { 'timestamp': 1771096995, 'ecg_data': 63848 }, { 'timestamp': 1771097314, 'ecg_data': 63848 }, { 'timestamp': 1771097633, 'ecg_data': 63848 }, { 'timestamp': 1771097954, 'ecg_data': 63833 }, { 'timestamp': 1771098273, 'ecg_data': 63846 }, { 'timestamp': 1771098592, 'ecg_data': 63846 } ] } }
-
get_dict
(last_timestamp=None)¶ Reorganising of stream data in stream_data key.
-
-
class
adi_study_watch.core.packets.stream_data_packets.
EDADataPacket
¶ Packet Structure:
{ 'header': { 'source': <Stream.EDA: ['0xC4', '0x02']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': '0x3D', 'checksum': '0x0' }, 'payload': { 'command': <CommonCommand.STREAM_DATA: ['0x28']>, 'status': <CommonStatus.OK: ['0x00']>, 'sequence_number': 0, 'data_type': 0, 'stream_data': [ { 'timestamp': 1774366622, 'real': 0, 'imaginary': 0 }, { 'timestamp': 1774374407, 'real': 0, 'imaginary': 16708 }, { 'timestamp': 1774382157, 'real': 16728, 'imaginary': 3257 }, { 'timestamp': 1774389924, 'real': 3277, 'imaginary': -20751 }, { 'timestamp': 1774397691, 'real': -20731, 'imaginary': -15161 }, { 'timestamp': 1774405458, 'real': -15141, 'imaginary': -30319 } ] } }
-
get_dict
(last_timestamp=None)¶ Reorganising of stream data in stream_data key.
-
-
class
adi_study_watch.core.packets.stream_data_packets.
HRVDataPacket
¶ Packet Structure:
{ 'header': { 'source': <Stream.HRV: ['0xC6', '0xC0']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': 46, 'checksum': 0 }, 'payload': { 'command': <CommonCommand.STREAM_DATA: ['0x28']>, 'status': <CommonStatus.NEW_STREAM_STATUS: ['0x43']>, 'sequence_number': 0, 'stream_data': [ { 'timestamp': 1633077488525.1702, 'rr_interval': 0, 'is_gap': 0, 'rmssd': 0 }, { 'timestamp': 1633077488527.2014, 'rr_interval': 0, 'is_gap': 0, 'rmssd': 0 }, { 'timestamp': 1633077488529.1702, 'rr_interval': 0, 'is_gap': 0, 'rmssd': 0 }, { 'timestamp': 1633077488531.2017, 'rr_interval': 0, 'is_gap': 0, 'rmssd': 0 } ] } }
-
get_dict
(last_timestamp=None)¶ Postprocessing.
-
-
class
adi_study_watch.core.packets.stream_data_packets.
KeyStreamDataPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.DISPLAY: ['0xC5', '0x03']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': '0xB', 'checksum': '0x0' }, 'payload': { 'command': <DisplayCommand.KEY_STREAM_DATA: ['0x48']>, 'status': <CommonStatus.OK: ['0x00']>, 'key_code': 18 } }
-
class
adi_study_watch.core.packets.stream_data_packets.
PPGDataPacket
¶ Packet Structure:
{ 'header': { 'source': <Stream.PPG: ['0xC4', '0x00']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': '0x2E', 'checksum': '0x0' }, 'payload': { 'command': <CommonCommand.STREAM_DATA: ['0x28']>, 'status': <CommonStatus.NEW_STREAM_STATUS: ['0x43']>, 'sequence_number': 9, 'timestamp': 1782357951, 'adpd_lib_state': 7, 'hr': 0, 'confidence': 0, 'hr_type': 0, 'rr_interval': 0, 'debug_info': [ 0, 320, 50, 0, 5, 0, 320, 50, 978 ] } }
-
get_dict
(last_timestamp=None)¶ Postprocessing.
-
-
class
adi_study_watch.core.packets.stream_data_packets.
PedometerDataPacket
¶ Packet Structure:
{ 'header': { 'source': <Stream.PEDOMETER: ['0xC4', '0x04']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': '0x17', 'checksum': '0x0' }, 'payload': { 'command': <CommonCommand.STREAM_DATA: ['0x28']>, 'status': <CommonStatus.OK: ['0x00']>, 'sequence_number': 1, 'steps': 0, 'algo_status': 8193, 'timestamp': 1776836792, 'reserved': 0 } }
-
get_dict
(last_timestamp=None)¶ Postprocessing.
-
-
class
adi_study_watch.core.packets.stream_data_packets.
SQIDataPacket
¶ Packet Structure:
{ 'header': { 'source': <Stream.SQI: ['0xC8', '0x0D']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': '0x19', 'checksum': '0x0' }, 'payload': { 'command': <CommonCommand.STREAM_DATA: ['0x28']>, 'status': <CommonStatus.OK: ['0x00']>, 'sequence_number': 0, 'sqi': 2.537532566293521e-07, 'sqi_slot': 42405, 'algo_status': 0, 'timestamp': 1786433199, 'reserved': 0 } }
-
get_dict
(last_timestamp=None)¶ Postprocessing.
-
-
class
adi_study_watch.core.packets.stream_data_packets.
SYNCPPGDataPacket
¶ Packet Structure:
{ 'header': { 'source': <Stream.SYNC_PPG: ['0xC4', '0x05']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': '0x48', 'checksum': '0x0' }, 'payload': { 'command': <CommonCommand.STREAM_DATA: ['0x28']>, 'status': <CommonStatus.OK: ['0x00']>, 'sequence_number': 119, 'stream_data': [ { 'ppg_timestamp': 1782379042, 'ppg_data': 186278, 'adxl_timestamp': 1782378429, 'adxl_x': 48, 'adxl_y': 268, 'adxl_z': 62 }, { 'ppg_timestamp': 1782379682, 'ppg_data': 186278, 'adxl_timestamp': 1782379070, 'adxl_x': 55, 'adxl_y': 264, 'adxl_z': 60 }, { 'ppg_timestamp': 1782380323, 'ppg_data': 186289, 'adxl_timestamp': 1782379709, 'adxl_x': 68, 'adxl_y': 268, 'adxl_z': 57 }, { 'ppg_timestamp': 1782380962, 'ppg_data': 186305, 'adxl_timestamp': 1782380349, 'adxl_x': 60, 'adxl_y': 263, 'adxl_z': 62 } ] } }
-
get_dict
(last_timestamp=None)¶ Postprocessing.
-
-
class
adi_study_watch.core.packets.stream_data_packets.
TemperatureDataPacket
¶ Packet Structure:
{ 'header': { 'source': <Stream.TEMPERATURE: ['0xC4', '0x06']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': '0x14', 'checksum': '0x0' }, 'payload': { 'command': <CommonCommand.STREAM_DATA: ['0x28']>, 'status': <CommonStatus.OK: ['0x00']>, 'sequence_number': 2, 'timestamp': 1779692742, 'skin_temperature': 30.1, # celsius 'impedance': 79000 # ohm } }
-
get_dict
(last_timestamp=None)¶ Postprocessing.
-
temperature_packets module¶
-
class
adi_study_watch.core.packets.temperature_packets.
TemperatureDCBCommandPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.EDA: ['0xC3', '0x02']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': 20, 'checksum': 0 }, 'payload': { 'command': <DCBCommand.READ_CONFIG_RES: ['0x98']>, 'status': <DCBStatus.OK: ['0x97']>, 'size': 1, 'data': [ [ '0x0', '0x8' ] ] } }
-
class
adi_study_watch.core.packets.temperature_packets.
TemperatureDCBPacket
(destination=None, command=None)¶ Packet Structure:
[ { 'header': { 'source': <Application.ADPD: ['0xC1', '0x10']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': 242, 'checksum': 0 }, 'payload': { 'command': <DCBCommand.READ_CONFIG_RES: ['0x98']>, 'status': <DCBStatus.OK: ['0x97']>, 'size': 57, 'packet_count': 2, 'data': [ [ '0x9', '0x97' ], [ '0xB', '0x6E2' ], ... [ '0x1A5', '0x5' ], [ '0x1A6', '0x0' ] ] } }, { 'header': { 'source': <Application.ADPD: ['0xC1', '0x10']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': 242, 'checksum': 0 }, 'payload': { 'command': <DCBCommand.READ_CONFIG_RES: ['0x98']>, 'status': <DCBStatus.OK: ['0x97']>, 'size': 10, 'packet_count': 2, 'data': [ [ '0x1A7', '0x120' ], [ '0x1A8', '0x0' ], ... [ '0x1AF', '0x0' ], [ '0x1B0', '0x4' ] ] } } ]
-
class
adi_study_watch.core.packets.temperature_packets.
TemperatureDCFGPacket
(destination=None, command=None)¶ Packet Structure:
[ { 'header': { 'source': <Application.TEMPERATURE: ['0xC3', '0x06']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': 240, 'checksum': 0 }, 'payload': { 'command': <CommonCommand.GET_DCFG_RES: ['0x26']>, 'status': <CommonStatus.OK: ['0x00']>, 'size': 57, 'packet_count': 2, 'data': [ [ 9, 151 ], [ 11, 738 ], ... [ 421, 5 ], [ 422, 0 ] ] } }, { 'header': { 'source': <Application.TEMPERATURE: ['0xC3', '0x06']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': 240, 'checksum': 0 }, 'payload': { 'command': <CommonCommand.GET_DCFG_RES: ['0x26']>, 'status': <CommonStatus.OK: ['0x00']>, 'size': 10, 'packet_count': 2, 'data': [ [ 423, 288 ], [ 424, 0 ], .. [ 431, 0 ], [ 432, 4 ] ] } } ]
-
class
adi_study_watch.core.packets.temperature_packets.
TemperatureLibraryConfigPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.PPG: ['0xC3', '0x00']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': 16, 'checksum': 0 }, 'payload': { 'command': <CommonCommand.READ_LCFG_RES: ['0x17']>, 'status': <CommonStatus.OK: ['0x00']>, 'field': 1, 'data': [ [ '0x0', '0xC0' ] ] } }
user0_packets module¶
-
class
adi_study_watch.core.packets.user0_packets.
BypassUser0TimingPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.USER0_APP: ['0xC8', '0x0F']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': 14, 'checksum': 0 }, 'payload': { 'command': <User0Command.ID_OP_RES: ['0x47']>, 'status': <User0Status.OK: ['0x41']>, 'enabled': false } }
-
class
adi_study_watch.core.packets.user0_packets.
User0DCBCommandPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.EDA: ['0xC3', '0x02']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': 20, 'checksum': 0 }, 'payload': { 'command': <DCBCommand.READ_CONFIG_RES: ['0x98']>, 'status': <DCBStatus.OK: ['0x97']>, 'size': 1, 'data': [ [ '0x0', '0x8' ] ] } }
-
class
adi_study_watch.core.packets.user0_packets.
User0DCBPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.USER0_APP: ['0xC8', '0x0F']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': 88, 'checksum': 0 }, 'payload': { 'command': <DCBCommand.READ_CONFIG_RES: ['0x98']>, 'status': <DCBStatus.OK: ['0x97']>, 'size': 19, 'data': [ [ '0x00', '0x42' ], [ '0x01', '0x1' ], ... [ '0x11', '0xF' ], [ '0x12', '0x249F0' ] ] } }
-
class
adi_study_watch.core.packets.user0_packets.
User0ExperimentIDPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.USER0_APP: ['0xC8', '0x0F']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': 14, 'checksum': 0 }, 'payload': { 'command': <User0Command.ID_OP_RES: ['0x47']>, 'status': <User0Status.OK: ['0x41']>, 'id': <User0ID.EXP_ID: ['0x01']>, 'operation': <User0OperationMode.READ: ['0x00']>, 'value': 9999 } }
-
class
adi_study_watch.core.packets.user0_packets.
User0HardwareIDPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.USER0_APP: ['0xC8', '0x0F']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': 14, 'checksum': 0 }, 'payload': { 'command': <User0Command.ID_OP_RES: ['0x47']>, 'status': <User0Status.OK: ['0x41']>, 'id': <User0ID.HW_ID: ['0x00']>, 'operation': <User0OperationMode.READ: ['0x00']>, 'value': 34 } }
-
class
adi_study_watch.core.packets.user0_packets.
User0LibraryConfigPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.USER0_APP: ['0xC8', '0x0F']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': 16, 'checksum': 0 }, 'payload': { 'command': <CommonCommand.READ_LCFG_RES: ['0x17']>, 'status': <CommonStatus.OK: ['0x00']>, 'size': 1, 'data': [ [ '0x0', '0x42' ] ] } }
-
class
adi_study_watch.core.packets.user0_packets.
User0PrevStateEventPacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.USER0_APP: ['0xC8', '0x0F']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': 36, 'checksum': 0 }, 'payload': { 'command': <User0Command.GET_PREV_ST_EVT_RES: ['0x4B']>, 'status': <User0Status.OK: ['0x41']>, 'intermittent_count': 1, 'stream_data': [ { 'state': <User0State.END_MONITORING: ['0x06']>, 'event': <User0Event.WATCH_ON_CRADLE_NAV_BUTTON_RESET: ['0x02']>, 'timestamp': 1633154418511.9675 }, { 'state': <User0State.END_MONITORING: ['0x06']>, 'event': <User0Event.FINISH_LOG_TRANSFER: ['0x0B']>, 'timestamp': 1633154737959.6863 }, { 'state': <User0State.END_MONITORING: ['0x06']>, 'event': <User0Event.WATCH_ON_CRADLE_NAV_BUTTON_RESET: ['0x02']>, 'timestamp': 1633161548514.8425 }, { 'state': <User0State.END_MONITORING: ['0x06']>, 'event': <User0Event.WATCH_ON_CRADLE_NAV_BUTTON_RESET: ['0x02']>, 'timestamp': 1633229664514.8113 } ] } }
-
get_dict
(last_timestamp=None)¶ Reorganising of data.
-
-
class
adi_study_watch.core.packets.user0_packets.
User0StatePacket
(destination=None, command=None)¶ Packet Structure:
{ 'header': { 'source': <Application.USER0_APP: ['0xC8', '0x0F']>, 'destination': <Application.APP_USB: ['0xC7', '0x05']>, 'length': 11, 'checksum': 0 }, 'payload': { 'command': <User0Command.GET_STATE_RES: ['0x45']>, 'status': <CommonStatus.OK: ['0x00']>, 'state': <User0State.END_MONITORING: ['0x06']> } }