adi_study_watch.core package¶
Subpackages¶
- adi_study_watch.core.enums package
- ad7156_enums module
- adpd_enums module
- adxl_enums module
- bia_enums module
- board_enums module
- common_enums module
- dcb_enums module
- display_enums module
- ecg_enums module
- eda_enums module
- fs_enums module
- low_touch_enums module
- pedometer_enums module
- pm_enums module
- ppg_enums module
- sqi_enum module
- user0_enum module
- adi_study_watch.core.packets package
- ad7156_packets module
- adpd_packets module
- adxl_packets module
- bia_packets module
- command_packet module
- common_packets module
- display_packets module
- ecg_packets module
- eda_packets module
- fs_packets module
- low_touch_packets module
- pm_packets module
- ppg_packets module
- sqi_packets module
- stream_data_packets module
- temperature_packets module
- user0_packets module
Submodules¶
core.ble_manager module¶
core.packet_manager module¶
-
class
adi_study_watch.core.packet_manager.
PacketManager
(serial_object, filename=None)¶ -
close
()¶ Closes serial port
-
process_file
(display_progress, progress_callback)¶ Reads packet from file and store it in file queue.
-
process_queue
()¶ Reads the packet from queue and send to relevant callback function.
-
receive_packet
()¶ Reads packet from serial port and store it in queue.
-
send_packet
(packet)¶ Receives packet from sdk and send it to the serial to port for device to process.
-
send_packet_to_callback
(pkt)¶ Sends Packet to callback
-
start_receive_and_process_threads
()¶ start process and receive thread.
-
subscribe
(packet_id, callback)¶ Subscribe packet id to the callback.
-
unsubscribe
(packet_id, application_callback)¶ Unsubscribe packet id and removes the callback.
-
core.utils module¶
-
adi_study_watch.core.utils.
convert_int_array_to_hex
(arr)¶ Convert int to hex.
-
adi_study_watch.core.utils.
join_multi_length_packets
(packet, sign=False, reverse=False, convert_to_hex=False)¶ Joins array of bytes into integer.
-
adi_study_watch.core.utils.
pretty
(value, tab_char='\t', next_line_char='\n', indent=0)¶ Print dict in clean format.
-
adi_study_watch.core.utils.
split_int_in_bytes
(value, length=None, reverse=False)¶ Breaks int into array of byte array of specified length.