Play-/Source/iop/Iop_Timrman.h
2018-04-30 21:01:23 +01:00

35 lines
870 B
C++

#pragma once
#include "Iop_Module.h"
class CIopBios;
namespace Iop
{
class CTimrman : public CModule
{
public:
CTimrman(CIopBios&);
virtual ~CTimrman();
std::string GetId() const override;
std::string GetFunctionName(unsigned int) const override;
void Invoke(CMIPS&, unsigned int) override;
private:
int AllocHardTimer(CMIPS&, uint32, uint32, uint32);
int ReferHardTimer(uint32, uint32, uint32, uint32);
void SetTimerMode(CMIPS&, uint32, uint32);
int GetTimerStatus(CMIPS&, uint32);
int GetTimerCounter(CMIPS&, uint32);
void SetTimerCompare(CMIPS&, uint32, uint32);
int GetHardTimerIntrCode(uint32);
int SetTimerCallback(CMIPS&, int, uint32, uint32, uint32);
int SetupHardTimer(uint32, uint32, uint32, uint32);
int StartHardTimer(uint32);
int32 StopHardTimer(uint32);
CIopBios& m_bios;
};
}