2022-02-28 14:13:31 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <cstdint>
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
namespace sd {
|
|
|
|
|
|
|
|
enum SdState : uint8_t {
|
|
|
|
OFF = 0,
|
|
|
|
ON = 1,
|
|
|
|
// A mounted SD card is on as well
|
|
|
|
MOUNTED = 2
|
|
|
|
};
|
|
|
|
|
|
|
|
enum SdCard : uint8_t { SLOT_0 = 0, SLOT_1 = 1, BOTH, NONE };
|
|
|
|
|
|
|
|
} // namespace sd
|
|
|
|
|
|
|
|
class SdCardManager {
|
2022-03-01 15:06:59 +01:00
|
|
|
public:
|
2022-02-28 14:13:31 +01:00
|
|
|
std::string getCurrentMountPrefix(sd::SdCard prefSdCard);
|
|
|
|
bool isSdCardMounted(sd::SdCard sdCard);
|
|
|
|
};
|