Skip to content

Add routines based on MMC INQUIRY - #17

Open
skr4n wants to merge 4 commits into
mainfrom
inquiry-and-test-ready
Open

Add routines based on MMC INQUIRY#17
skr4n wants to merge 4 commits into
mainfrom
inquiry-and-test-ready

Conversation

@skr4n

@skr4n skr4n commented Jul 27, 2026

Copy link
Copy Markdown
Collaborator

Add routines based on MMC command INQUIRY:

  • hardware_identifiers(): Returns Vendor, Product and Revision of the device

@skr4n skr4n changed the title Implement INQUIRY and TEST UNIT READY Implement MMC INQUIRY and TEST UNIT READY Jul 27, 2026
@skr4n
skr4n force-pushed the inquiry-and-test-ready branch 3 times, most recently from 580dbb5 to 285b701 Compare July 28, 2026 09:11
@skr4n skr4n changed the title Implement MMC INQUIRY and TEST UNIT READY Implement MMC INQUIRY Jul 28, 2026
@skr4n
skr4n force-pushed the inquiry-and-test-ready branch from 285b701 to ae1b7a2 Compare July 28, 2026 15:07
@skr4n skr4n changed the title Implement MMC INQUIRY Add routines based on MMC INQUIRY Jul 28, 2026
const PRODUCT_ID_END_POS: usize = 31;
const REVISION_START_POS: usize = 32;
const REVISION_END_POS: usize = 35;
}

@rocky rocky Jul 28, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What, if any, are the implications of having this appear after the return statement as opposed to at the start of the function or before the return?

To verify that this information is correct. I went to a MMC-5 PDF that then directed me to a SPC3 PDF https://www.t10.org/ftp/t10/document.08/08-309r1.pdf where I found

Image

What can we do to make it more transparent and easier for someone to be able to verify this kind of information?

}
}

/// could not get hardware identifers

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// could not get hardware identifers
/// could not get hardware identifiers


/// could not get hardware identifers
#[derive(Debug, Display, Error)]
pub struct GetHardwareIdentifersError {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
pub struct GetHardwareIdentifersError {
pub struct GetHardwareIdentifiersError {

/// Routines based on MMC `INQUIRY`.
impl Mmc {
/// Get the hardware identifiers (Product, Vendor and Revision).
pub fn hardware_identifiers(&self) -> Result<HardwareIdentifiers, GetHardwareIdentifersError> {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
pub fn hardware_identifiers(&self) -> Result<HardwareIdentifiers, GetHardwareIdentifersError> {
pub fn hardware_identifiers(&self) -> Result<HardwareIdentifiers, GetHardwareIdentifiersError> {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants