eive-obsw/bsp_linux_board/RPiSdCardManager.h
Irini Kosmidou a1cc5b0ca7
All checks were successful
EIVE/eive-obsw/pipeline/head This commit looks good
Merge remote-tracking branch 'origin/develop' into irini
2022-09-27 17:36:19 +02:00

19 lines
610 B
C++

#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);
const std::string& getCurrentMountPrefix() const override;
bool isSdCardMounted(sd::SdCard sdCard) override;
std::optional<sd::SdCard> getPreferredSdCard() const override;
void setActiveSdCard(sd::SdCard sdCard) override;
std::optional<sd::SdCard> getActiveSdCard() const override;
private:
std::string prefix;
};
#endif /* BSP_LINUX_BOARD_RPISDCARDMANAGER_H_ */