28 lines
442 B
C++
28 lines
442 B
C++
|
|
/*
|
|||
|
|
* IPort.h
|
|||
|
|
*
|
|||
|
|
* Created on: 22 <EFBFBD><EFBFBD><EFBFBD>. 2019 <EFBFBD>.
|
|||
|
|
* Author: user
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#ifndef SOURCE_PERIPHERAL_HARDWARE_IPORT_H_
|
|||
|
|
#define SOURCE_PERIPHERAL_HARDWARE_IPORT_H_
|
|||
|
|
|
|||
|
|
#include <stdint.h>
|
|||
|
|
|
|||
|
|
namespace peripheral {
|
|||
|
|
|
|||
|
|
class IPort {
|
|||
|
|
public:
|
|||
|
|
virtual void set( uint32_t pin_mask ) = 0;
|
|||
|
|
virtual void clear( uint32_t pin_mask ) = 0;
|
|||
|
|
|
|||
|
|
virtual ~IPort() = default;
|
|||
|
|
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
#endif /* SOURCE_PERIPHERAL_HARDWARE_IPORT_H_ */
|