lundi 8 août 2022

How to read sd card data in C++/CLI using serial communication

i am trying to read the data from sd card in c++/CLI app using serial communication.i tried the following error but didnot get expected output.

SD_Handle handle;
uint16_t status;
char readBuffer[12]
SD_init();
handle = SD_open(index, NULL);
status = SD_initialize(handle);
if (handle == NULL || status != SD_STATUS_SUCCESS)
{       
    while (1);
}
if (status == SD_STATUS_SUCCESS) 
{
    status = SD_read(handle, readBuffer, 0, 1);
}
SD_close(handle);

Aucun commentaire:

Enregistrer un commentaire