distortos  v0.4.0
object-oriented C++ RTOS for microcontrollers
SpiMasterBase.hpp
Go to the documentation of this file.
1 
12 #ifndef INCLUDE_DISTORTOS_DEVICES_COMMUNICATION_SPIMASTERBASE_HPP_
13 #define INCLUDE_DISTORTOS_DEVICES_COMMUNICATION_SPIMASTERBASE_HPP_
14 
15 #include <cstddef>
16 
17 namespace distortos
18 {
19 
20 namespace devices
21 {
22 
23 class SpiMasterErrorSet;
24 
33 {
34 public:
35 
40  virtual ~SpiMasterBase() = 0;
41 
53  virtual void transferCompleteEvent(SpiMasterErrorSet errorSet, size_t bytesTransfered) = 0;
54 };
55 
56 } // namespace devices
57 
58 } // namespace distortos
59 
60 #endif // INCLUDE_DISTORTOS_DEVICES_COMMUNICATION_SPIMASTERBASE_HPP_
Definition: SpiMasterBase.hpp:32
virtual void transferCompleteEvent(SpiMasterErrorSet errorSet, size_t bytesTransfered)=0
"Transfer complete" event
Definition: SpiMasterErrorSet.hpp:29
Top-level namespace of distortos project.
virtual ~SpiMasterBase()=0
SpiMasterBase&#39;s destructor.
Definition: SpiMasterBase.cpp:24