SDK  23.9.2
For IoT System Software Development
Public Types | Public Member Functions | List of all members
SdCard Class Referenceabstract
Inheritance diagram for SdCard:
Storage

Public Types

enum  SdTransfer_t { TRANSFER_OK, TRANSFER_BUSY, TRANSFER_ERROR }
 
enum  SdType_t {
  StdCapacitySdCardV1_1 = 0, StdCapacitySdCardV2_0 = 1, HiCapacitySdCard = 2, MultiMediaCard = 3,
  SecureDigitalIOCard = 4, HiSpeedMultiMediaCard = 5, SecureDigitalIOComboCard = 6, HiCapacityMMC = 7,
  Unknown = 255
}
 

Public Member Functions

virtual bool isDetected ()=0
 
virtual error_t readBlocks (void *dst, uint64_t addr, uint32_t blockSize, uint32_t numBlocks)=0
 
virtual error_t writeBlocks (const void *dst, uint64_t addr, uint32_t blockSize, uint32_t numBlocks)=0
 
virtual SdTransfer_t getTransferStatus ()=0
 
virtual uint32_t getCardBlockSize ()=0
 
virtual uint16_t getRelativeCardAddress ()=0
 
virtual SdType_t getCardType ()=0
 
- Public Member Functions inherited from Storage
virtual void begin ()=0
 저장공간을 활성화합니다.
 
virtual uint64_t length ()=0
 저장공간의 크기를 구합니다. (단위:바이트)
 
virtual uint8_t read (uint64_t addr)=0
 저장공간의 데이터를 1-바이트 읽습니다. More...
 
virtual error_t read (void *dst, uint64_t addr, uint32_t len)=0
 저장공간의 데이터를 len 바이트 읽습니다. More...
 
virtual error_t write (uint64_t addr, uint8_t value)=0
 저장공간에 데이터를 1-바이트 씁니다. More...
 
virtual error_t write (const uint8_t *buf, uint64_t addr, uint32_t len)=0
 저장공간에 데이터를 len 바이트 씁니다. More...
 

The documentation for this class was generated from the following file: