SD信息 读取,包括制造SD卡厂商

    /**
      * @brief  Card Specific Data: CSD Register
      */
    typedef struct {
        __IO uint8_t  CSDStruct;            /*!< CSD structure */
        __IO uint8_t  SysSpecVersion;       /*!< System specification version */
        __IO uint8_t  Reserved1;            /*!< Reserved */
        __IO uint8_t  TAAC;                 /*!< Data read access-time 1 */
        __IO uint8_t  NSAC;                 /*!< Data read access-time 2 in CLK cycles */
        __IO uint8_t  MaxBusClkFrec;        /*!< Max. bus clock frequency */
        __IO uint16_t CardComdClasses;      /*!< Card command classes */
        __IO uint8_t  RdBlockLen;           /*!< Max. read data block length */
        __IO uint8_t  PartBlockRead;        /*!< Partial blocks for read allowed */
        __IO uint8_t  WrBlockMisalign;      /*!< Write block misalignment */
        __IO uint8_t  RdBlockMisalign;      /*!< Read block misalignment */
        __IO uint8_t  DSRImpl;              /*!< DSR implemented */
        __IO uint8_t  Reserved2;            /*!< Reserved */
        __IO uint32_t DeviceSize;           /*!< Device Size */
        __IO uint8_t  MaxRdCurrentVDDMin;   /*!< Max. read current @ VDD min */
        __IO uint8_t  MaxRdCurrentVDDMax;   /*!< Max. read current @ VDD max */
        __IO uint8_t  MaxWrCurrentVDDMin;   /*!< Max. write current @ VDD min */
        __IO uint8_t  MaxWrCurrentVDDMax;   /*!< Max. write current @ VDD max */
        __IO uint8_t  DeviceSizeMul;        /*!< Device size multiplier */
        __IO uint8_t  EraseGrSize;          /*!< Erase group size */
        __IO uint8_t  EraseGrMul;           /*!< Erase group size multiplier */
        __IO uint8_t  WrProtectGrSize;      /*!< Write protect group size */
        __IO uint8_t  WrProtectGrEnable;    /*!< Write protect group enable */
        __IO uint8_t  ManDeflECC;           /*!< Manufacturer default ECC */
        __IO uint8_t  WrSpeedFact;          /*!< Write speed factor */
        __IO uint8_t  MaxWrBlockLen;        /*!< Max. write data block length */
        __IO uint8_t  WriteBlockPaPartial;  /*!< Partial blocks for write allowed */
        __IO uint8_t  Reserved3;            /*!< Reserded */
        __IO uint8_t  ContentProtectAppli;  /*!< Content protection application */
        __IO uint8_t  FileFormatGrouop;     /*!< File format group */
        __IO uint8_t  CopyFlag;             /*!< Copy flag (OTP) */
        __IO uint8_t  PermWrProtect;        /*!< Permanent write protection */
        __IO uint8_t  TempWrProtect;        /*!< Temporary write protection */
        __IO uint8_t  FileFormat;           /*!< File Format */
        __IO uint8_t  ECC;                  /*!< ECC code */
        __IO uint8_t  CSD_CRC;              /*!< CSD CRC */
        __IO uint8_t  Reserved4;            /*!< always 1*/
    } SD_CSD;

    /**
      * @brief  Card Identification Data: CID Register
      */
    typedef struct {
        __IO uint8_t  ManufacturerID;       /*!< ManufacturerID */
        __IO uint16_t OEM_AppliID;          /*!< OEM/Application ID */
        __IO uint32_t ProdName1;            /*!< Product Name part1 */
        __IO uint8_t  ProdName2;            /*!< Product Name part2*/
        __IO uint8_t  ProdRev;              /*!< Product Revision */
        __IO uint32_t ProdSN;               /*!< Product Serial Number */
        __IO uint8_t  Reserved1;            /*!< Reserved1 */
        __IO uint16_t ManufactDate;         /*!< Manufacturing Date */
        __IO uint8_t  CID_CRC;              /*!< CID CRC */
        __IO uint8_t  Reserved2;            /*!< always 1 */
    } SD_CID;

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值