Arrow / Mbed OS DAPLink Reset
Embed: (wiki syntax)

« Back to documentation index

USBMsd Class Reference

USBMsd Class Reference

Public Member Functions

def lock
def unlock
def scsi_read10
def scsi_write10
def scsi_test_unit_ready

Detailed Description

Wrapper class for a MSD usb device

Definition at line 26 of file usb_msd.py.


Member Function Documentation

def lock (   self )
Acquire exclisive access to MSD

Definition at line 105 of file usb_msd.py.

def scsi_read10 (   self,
  lba,
  block_count 
)
Send the SCSI read 10 command and return the data read

Definition at line 134 of file usb_msd.py.

def scsi_test_unit_ready (   self )
Send the SCSI test unit ready command and return status

Definition at line 170 of file usb_msd.py.

def scsi_write10 (   self,
  lba,
  data 
)
Send the SCSI write 10 command

Definition at line 151 of file usb_msd.py.

def unlock (   self )
Release exclusive access to MSD

Definition at line 120 of file usb_msd.py.