eive-obsw/bsp_linux_board/RPiSdCardManager.h

19 lines
609 B
C
Raw Normal View History

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>
class RPiSdCardManager : public SdCardMountedIF {
public:
RPiSdCardManager(std::string prefix);
2022-09-12 17:09:27 +02:00
const std::string& getCurrentMountPrefix() const override;
2022-10-04 23:04:50 +02:00
bool isSdCardUsable(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;
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_ */