-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpll.cs
40 lines (31 loc) · 959 Bytes
/
pll.cs
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
using System.Collections.Generic;
namespace SetFSB {
public interface Pll{
int SetFSB(int fsb);
int GetFSB();
List<int> SupportedFSBs { get; }
}
public class PllBase {
public smBus smb;
public List<ControlByte> ControlBytes = new List<ControlByte>();
public List<int> SupportedFSBs{
get{
var fsbs = new List<int>();
foreach (var cb in ControlBytes){
fsbs.Add(cb.fsb);
}
return fsbs;
}
}
}
public class ControlByte{
public readonly byte fsb;
public readonly byte Byte1;
public readonly byte Byte2;
public ControlByte(byte Fsb, byte byte1, byte byte2){
fsb = Fsb;
Byte1 = byte1;
Byte2 = byte2;
}
} ;
}