You are currently viewing the documentation for:
ECSD_WriteSector
The ECSD_LowLevel_Init function initialises the hardware necessary to communicate with the SD card.
ECSD_ErrorCode ECSD_WriteSector(
   struct ECF_BlockDriver *pBlockDriver,
   DWORD sector,
   BYTE *data,
   BYTE flags
);
Parameters
pBlockDriver
A pointer to an ECF_BlockDriver struct for EcFAT compatibility. If you are not using EcFAT you can safely pass NULL.
sector
The sector to write.
data
A pointer with a buffer of the data to write. The buffer must hold an entire sector. Call ECSD_GetVolumeInformation to obtain the sector size.
flags
Flags that ECF will pass when reading sectors. It is safe to pass 0.
Return value
Returns one of the ECSD error codes (ECSD_STATUS_OK on success).
See also