distortos  v0.7.0
object-oriented C++ RTOS for microcontrollers
SdMmcCardBase.hpp
Go to the documentation of this file.
1 
12 #ifndef INCLUDE_DISTORTOS_DEVICES_MEMORY_SDMMCCARDBASE_HPP_
13 #define INCLUDE_DISTORTOS_DEVICES_MEMORY_SDMMCCARDBASE_HPP_
14 
15 #include <cstdint>
16 
17 namespace distortos
18 {
19 
20 namespace devices
21 {
22 
31 {
32 public:
33 
35  enum class Result : uint8_t
36  {
38  success,
51  };
52 
57  virtual ~SdMmcCardBase() = default;
58 
67  virtual void transactionCompleteEvent(Result result) = 0;
68 };
69 
70 } // namespace devices
71 
72 } // namespace distortos
73 
74 #endif // INCLUDE_DISTORTOS_DEVICES_MEMORY_SDMMCCARDBASE_HPP_
virtual void transactionCompleteEvent(Result result)=0
"Transaction complete" event
virtual ~SdMmcCardBase()=default
SdMmcCardBase's destructor.
Result
result of transaction
Definition: SdMmcCardBase.hpp:35
transaction failed - response CRC mismatch
Top-level namespace of distortos project.
Definition: buttons.hpp:33
Definition: SdMmcCardBase.hpp:30
transaction completed successfully