CursedHardware / usb2660-sdk-cid-register

Read CID via USB2660

Home Page:https://microchip.com/product/usb2660

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Read CID via USB2660

Introduction

The SD_USB_CID.c gets and displays CID register of the SD/MMC card through Microchip's USB2660 device.

For detailed description of the CID register and its vaues referer JEDEC Standard No.JESD84-B42

For specific values check the connected eMMC card datasheet/manual.

Package Contains

This package contains the following files

  1. SD_USB_CID.c
  2. sd_usb.h
  3. sd_usb_win32.h
  4. README.md

Requirements

This file needs the following libraries to be installed

  1. sgutils2

sgutils is a scsi driver which will be used to send the SCSI commands to the device. It can be downloaded from https://sg.danny.cz/sg/sg3_utils.html

Compilation

Use the following command to compile the program

gcc -g -Wall -o SD_USB_CID SD_USB_CID.c -lpthread -lsgutils2

References

  1. USB82642/2642 SDIO over USB User's Guide.pdf
  2. USB2660 Linux SDK for CID

The above file can be downloaded from Microchips Website.

About

Read CID via USB2660

https://microchip.com/product/usb2660


Languages

Language:C 100.0%