mirror of
https://github.com/hch12907/orbum.git
synced 2024-06-02 19:38:16 -04:00
30 lines
647 B
C++
30 lines
647 B
C++
#pragma once
|
|
|
|
#include <cereal/cereal.hpp>
|
|
|
|
#include "Common/Types/Register/SizedWordRegister.hpp"
|
|
#include "Resources/Iop/Timers/IopTimersUnitRegisters.hpp"
|
|
|
|
/// Represents IOP Timer unit.
|
|
/// Documentation taken from PCSX2 and No$PSX docs.
|
|
class IopTimersUnit_Base
|
|
{
|
|
public:
|
|
IopTimersUnit_Base(const int unit_id);
|
|
|
|
int unit_id;
|
|
|
|
IopTimersUnitRegister_Count count;
|
|
IopTimersUnitRegister_Mode mode;
|
|
SizedWordRegister compare;
|
|
|
|
public:
|
|
template <class Archive>
|
|
void serialize(Archive& archive)
|
|
{
|
|
archive(
|
|
CEREAL_NVP(count),
|
|
CEREAL_NVP(mode),
|
|
CEREAL_NVP(compare));
|
|
}
|
|
}; |