SD CARD
SD Card Overview
An SD (Secure Digital) card is a compact, non-volatile memory storage device widely used in consumer electronics and industrial applications. It serves as a storage medium for data such as photos, videos, documents, and software.
Usage
All API functions have the first argument as the sd card information.
Read and write sectors from the sd card.
Erase block in sd card.
Return codes of API functions are defined in header file.
Application Interface
Function |
Description |
|---|---|
rs_sdcard_init |
To open the sd card |
rs_sdcard_send_cmd |
To send the command to the sd card |
rs_sdcard_read_cid_data |
To read the data from card identification register |
rs_sd_wait_till_busy |
To wait a certain time |
rs_sd_wait_till_write_complete |
To wait until write completion |
rs_sd_wait_till_read_complete |
To wait until read complete |
rs_sdcard_reset |
To reset the sdcard information |
rs_sdcard_param_pack |
To pack parameters to the sdcard |
rs_sdcard_resp_unpack |
To unpack the sdcard response |
Using these ‘rs’ calls to initialize the sd card and read and write to the sd card.
Error Code
Every API’s for the graphic SD card returns some success or failure values. Please refer below section,
SD Card Header Details
Documentation from the relevant header as follows:
Warning
doxygenfile: Cannot find file “rs_sdcard.h