Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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.
Generated on Tue Jul 12 2022 15:37:38 by
1.7.2