mirror of
https://github.com/aaru-dps/Aaru.Decoders.git
synced 2025-12-16 19:24:32 +00:00
Add MMC vendor ID for Nokia.
This commit is contained in:
@@ -32,16 +32,18 @@
|
|||||||
|
|
||||||
namespace Aaru.Decoders.MMC
|
namespace Aaru.Decoders.MMC
|
||||||
{
|
{
|
||||||
|
/// <summary>Decodes MultiMediaCard vendors</summary>
|
||||||
public static class VendorString
|
public static class VendorString
|
||||||
{
|
{
|
||||||
public static string Prettify(byte mmcVendorId)
|
/// <summary>Converts the byte value of a MultiMediaCard vendor ID to the manufacturer's name string</summary>
|
||||||
|
/// <param name="mmcVendorId">MMC vendor ID</param>
|
||||||
|
/// <returns>Manufacturer</returns>
|
||||||
|
public static string Prettify(byte mmcVendorId) => mmcVendorId switch
|
||||||
{
|
{
|
||||||
switch(mmcVendorId)
|
0x07 => "Nokia",
|
||||||
{
|
0x15 => "Samsung",
|
||||||
case 0x15: return "Samsung";
|
0x2C => "extreMEmory",
|
||||||
case 0x2C: return "extreMEmory";
|
_ => $"Unknown manufacturer ID 0x{mmcVendorId:X2}"
|
||||||
default: return $"Unknown manufacturer ID 0x{mmcVendorId:X2}";
|
};
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user