adi_study_watch.core package

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.