Fixed problem in DeviceSettings::strParam, returned wrong string
[avr-sim.git] / src / Port.h
blob059b92fb83c22125232fd1228b3c3f543e101318
1 #ifndef AVR_PORT_H
2 #define AVR_PORT_H
4 #include "Hardware.h"
5 #include <string>
7 namespace avr {
9 class Register;
11 /**
12 * @author Tom Haber
13 * @date Apr 26, 2008
14 * @brief IO Ports
16 * This class represents the Input/Output ports on the device.
18 class Port : public Hardware {
19 public:
20 Port(Bus & bus, const std::string & name, unsigned int mask);
21 ~Port();
23 public:
24 bool attachReg(const char *name, IORegister *reg);
25 void regChanged( IORegister *reg );
26 void step();
28 private:
29 std::string name;
30 unsigned int mask;
32 private:
33 Register *port;
34 Register *pin;
35 Register *ddr;
40 #endif /*AVR_PORT_H*/