2022-09-12 17:09:27 +02:00
|
|
|
#ifndef BSP_LINUX_BOARD_RPISDCARDMANAGER_H_
|
|
|
|
#define BSP_LINUX_BOARD_RPISDCARDMANAGER_H_
|
|
|
|
#include <mission/memory/SdCardMountedIF.h>
|
|
|
|
|
2022-12-14 09:53:38 +01:00
|
|
|
class DummySdCardManager : public SdCardMountedIF {
|
2022-09-27 17:36:19 +02:00
|
|
|
public:
|
2022-12-14 09:53:38 +01:00
|
|
|
DummySdCardManager(std::string prefix);
|
2023-02-22 18:06:34 +01:00
|
|
|
const char* getCurrentMountPrefix() const override;
|
2022-12-14 09:53:38 +01:00
|
|
|
bool isSdCardUsable(std::optional<sd::SdCard> sdCard) override;
|
2022-09-12 17:23:43 +02:00
|
|
|
std::optional<sd::SdCard> getPreferredSdCard() const override;
|
2022-09-12 17:09:27 +02:00
|
|
|
void setActiveSdCard(sd::SdCard sdCard) override;
|
2022-09-12 17:23:43 +02:00
|
|
|
std::optional<sd::SdCard> getActiveSdCard() const override;
|
2022-09-27 17:36:19 +02:00
|
|
|
|
|
|
|
private:
|
2022-09-12 17:15:02 +02:00
|
|
|
std::string prefix;
|
2022-09-12 17:09:27 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* BSP_LINUX_BOARD_RPISDCARDMANAGER_H_ */
|