orbum/liborbum/src/Resources/Iop/Sio0/RSio0.hpp
2018-08-08 23:14:09 +08:00

29 lines
679 B
C++

#pragma once
#include <cereal/cereal.hpp>
#include "Common/Types/Register/SizedHwordRegister.hpp"
#include "Resources/Iop/Sio0/Sio0Registers.hpp"
/// SIO0 resources.
/// Responsible for communication with controllers and memory cards.
class RSio0
{
public:
Sio0Register_Data data; // Hybrid FIFO port - can read and write to this port simultaneously.
Sio0Register_Stat stat;
SizedHwordRegister mode;
Sio0Register_Ctrl ctrl;
public:
template<class Archive>
void serialize(Archive & archive)
{
archive(
CEREAL_NVP(data),
CEREAL_NVP(stat),
CEREAL_NVP(mode),
CEREAL_NVP(ctrl)
);
}
};