blob: 9bb1b4f38289442f6616182951ce25b36e1b2188 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
#ifndef IPIC_H
#define IPIC_H
#include <types.h>
// Defines
// ICW1
#define IC4 1
#define SNGL 2
#define ADI 4
#define LTIM 8
// ICW4
#define PM 1
#define AEOI 2
#define MSBUF 4
#define BUF 8
#define SFNM 16
// PIC
#define PICM_CTRL 0x20
#define PICM_DATA 0x21
#define PICS_CTRL 0xA0
#define PICS_DATA 0xA1
//-------------
class ICW
{
public:
virtual const uint8 toByteMasterPic() const = 0;
virtual const uint8 toByteSlavePic() const = 0;
virtual const uint8 getNumber() const = 0;
};
#endif
|