SDHotSwapModule/source/sdcard.h
2022-03-04 00:59:38 +01:00

27 lines
498 B
C

#pragma once
int InitialSDCheck();
void DeInitSDCheck();
/**
* @return < 0 on error.
* 0 when no FAT32 formatted sd card is inserted
* 1 when a FAT32 formatted sd card is inserted
*/
int IsSDCardInserted();
/**
* @return < 0 on error.
* 0 when mounting failed,
* 1 when mounting was successful.
*/
int MountSDCard();
/**
* @return < 0 on error.
* 0 when unmounting failed,
* 1 when unmounting was successful.
*/
int UnmountSDCard();