MotorControlModuleSDFM_TMS3.../Projects/EFC_Communication/UMLibrary/peripheral/IDmaChannelPeripheral.hh
2024-06-07 11:12:56 +03:00

34 lines
785 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* IDmaChannelPeripheral.h
*
* Created on: 11 янв. 2018 г.
* Author: titov
*/
#ifndef SOURCE_PERIPHERAL_IDMACHANNELPERIPHERAL_H_
#define SOURCE_PERIPHERAL_IDMACHANNELPERIPHERAL_H_
namespace peripheral {
class IDmaControl {
public:
virtual void run() = 0;
virtual void halt() = 0;
virtual bool isRun() const = 0;
virtual ~IDmaControl() = default;
};
class IDmaChannelPeripheral : public IDmaControl {
public:
virtual bool autotransmit( const void * data, unsigned int num_frame, unsigned int frame_size_in_bit ) = 0;
virtual bool autoreceive( volatile void * buff, unsigned int num_frame, unsigned int frame_size_in_bit ) = 0;
virtual ~IDmaChannelPeripheral() = default;
};
}
#endif /* SOURCE_PERIPHERAL_IDMACHANNELPERIPHERAL_H_ */