2012-05-09 23:35:29 +00:00
|
|
|
struct OBC1 {
|
2015-11-14 00:52:51 +00:00
|
|
|
auto init() -> void;
|
|
|
|
auto load() -> void;
|
|
|
|
auto unload() -> void;
|
|
|
|
auto power() -> void;
|
|
|
|
auto reset() -> void;
|
2012-07-09 11:40:23 +00:00
|
|
|
|
2016-02-16 09:32:49 +00:00
|
|
|
auto read(uint24 addr, uint8 data) -> uint8;
|
|
|
|
auto write(uint24 addr, uint8 data) -> void;
|
2010-08-09 13:28:56 +00:00
|
|
|
|
2015-11-14 00:52:51 +00:00
|
|
|
auto serialize(serializer&) -> void;
|
2010-08-09 13:28:56 +00:00
|
|
|
|
2015-11-14 00:52:51 +00:00
|
|
|
MappedRAM ram;
|
2010-08-09 13:28:56 +00:00
|
|
|
|
|
|
|
private:
|
2015-11-14 00:52:51 +00:00
|
|
|
auto ramRead(uint addr) -> uint8;
|
|
|
|
auto ramWrite(uint addr, uint8 data) -> void;
|
2010-08-09 13:28:56 +00:00
|
|
|
|
|
|
|
struct {
|
|
|
|
uint16 address;
|
|
|
|
uint16 baseptr;
|
|
|
|
uint16 shift;
|
|
|
|
} status;
|
|
|
|
};
|
|
|
|
|
|
|
|
extern OBC1 obc1;
|