pyedbglib.mplabtransport

pyedbglib.mplabtransport.mplabtransport

mplabtransport replaces the hidtransport layer when running pyedbglib stack inside MPLAB.

class pyedbglib.mplabtransport.mplabtransport.MpLabTransport(tool)

Bases: object

MpLabTransport supports the same API as HidTransport:

  • hid_transfer for send and receive

  • get_report_size for determining the HID report size in use

get_report_size()

Report size as reported through the HID interface.

Usually 64b, but can be 512b

hid_read()

Waits for and receives a packet over HID

hid_transfer(packet)

Sends a packet and receives a response.

hid_write(packet)

Sends a packet to HID and does not wait for a response