mirror of
https://github.com/hch12907/orbum.git
synced 2024-05-20 05:00:48 -04:00
25 lines
634 B
C++
25 lines
634 B
C++
#pragma once
|
|
|
|
#include "Common/Types/Register/SizedHwordRegister.hpp"
|
|
#include "Resources/Iop/Sio0/Sio0Registers.hpp"
|
|
|
|
/// SIO0 resources.
|
|
/// Responsible for communication with controllers and memory cards.
|
|
struct RSio0
|
|
{
|
|
Sio0Register_Data data; // Hybrid FIFO port - can read and write to this port simultaneously.
|
|
Sio0Register_Stat stat;
|
|
SizedHwordRegister mode;
|
|
Sio0Register_Ctrl ctrl;
|
|
|
|
template<class Archive>
|
|
void serialize(Archive & archive)
|
|
{
|
|
archive(
|
|
CEREAL_NVP(data),
|
|
CEREAL_NVP(stat),
|
|
CEREAL_NVP(mode),
|
|
CEREAL_NVP(ctrl)
|
|
);
|
|
}
|
|
}; |