add RPI SD card manager
All checks were successful
EIVE/eive-obsw/pipeline/head This commit looks good

This commit is contained in:
Robin Müller 2022-09-12 17:09:27 +02:00
parent 31b3de784b
commit 7bc866a105
No known key found for this signature in database
GPG Key ID: 11D4952C8CCEF814
2 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,15 @@
#include "RPiSdCardManager.h"
RPiSdCardManager::RPiSdCardManager() {}
RPiSdCardManager::RPiSdCardManager(std::string prefix) {}
const std::string& RPiSdCardManager::getCurrentMountPrefix() const {}
bool RPiSdCardManager::isSdCardMounted(sd::SdCard sdCard) {}
sd::SdCard RPiSdCardManager::getPreferredSdCard() const {}
void RPiSdCardManager::setActiveSdCard(sd::SdCard sdCard) {}
sd::SdCard RPiSdCardManager::getActiveSdCard() const {}

View File

@ -0,0 +1,17 @@
#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;
sd::SdCard getPreferredSdCard() const override;
void setActiveSdCard(sd::SdCard sdCard) override;
sd::SdCard getActiveSdCard() const override;
};
#endif /* BSP_LINUX_BOARD_RPISDCARDMANAGER_H_ */