硬汉嵌入式论坛

 找回密码
 立即注册
查看: 2052|回复: 0
收起左侧

STM32F4的HAL库SD卡信息结构体HAL_SD_CardInfoTypeDef相比H7少了一个卡速度参数

[复制链接]

1万

主题

7万

回帖

11万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
115667
QQ
发表于 2021-2-19 14:13:30 | 显示全部楼层 |阅读模式

STM32H7:

  1. typedef struct
  2. {
  3.   uint32_t CardType;                     /*!< Specifies the card Type                         */
  4.   uint32_t CardVersion;                  /*!< Specifies the card version                      */
  5.   uint32_t Class;                        /*!< Specifies the class of the card class           */
  6.   uint32_t RelCardAdd;                   /*!< Specifies the Relative Card Address             */
  7.   uint32_t BlockNbr;                     /*!< Specifies the Card Capacity in blocks           */
  8.   uint32_t BlockSize;                    /*!< Specifies one block size in bytes               */
  9.   uint32_t LogBlockNbr;                  /*!< Specifies the Card logical Capacity in blocks   */
  10.   uint32_t LogBlockSize;                 /*!< Specifies logical block size in bytes           */
  11.   uint32_t CardSpeed;                    /*!< Specifies the card Speed                        */
  12. }HAL_SD_CardInfoTypeDef;
复制代码


STM32F4:
少了一个CardSpeed
  1. /**
  2.   * @brief  SD Card Information Structure definition
  3.   */
  4. typedef struct
  5. {
  6.   uint32_t CardType;                     /*!< Specifies the card Type                         */
  7.   
  8.   uint32_t CardVersion;                  /*!< Specifies the card version                      */

  9.   uint32_t Class;                        /*!< Specifies the class of the card class           */

  10.   uint32_t RelCardAdd;                   /*!< Specifies the Relative Card Address             */
  11.   
  12.   uint32_t BlockNbr;                     /*!< Specifies the Card Capacity in blocks           */

  13.   uint32_t BlockSize;                    /*!< Specifies one block size in bytes               */
  14.   
  15.   uint32_t LogBlockNbr;                  /*!< Specifies the Card logical Capacity in blocks   */

  16.   uint32_t LogBlockSize;                 /*!< Specifies logical block size in bytes           */

  17. }HAL_SD_CardInfoTypeDef;
复制代码



回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|Archiver|手机版|硬汉嵌入式论坛

GMT+8, 2025-5-10 19:16 , Processed in 0.261047 second(s), 24 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表