libElysianVMU 1.6.0
Full-featured, accurate, cross-platform library emulating the Dreamcast's Visual Memory Unit
Loading...
Searching...
No Matches
evmu_timers.h File Reference

Go to the source code of this file.

Data Structures

struct  EvmuTimersClass
 
struct  EvmuTimers
 

Macros

#define EVMU_TIMERS_NAME   "timers"
 
Type System

Type UUID and cast operators

#define EVMU_TIMERS_TYPE   (GBL_TYPEID(EvmuTimers))
 
#define EVMU_TIMERS(self)   (GBL_CAST(EvmuTimers, self))
 
#define EVMU_TIMERS_CLASS(klass)   (GBL_CLASS_CAST(EvmuTimers, klass))
 
#define EVMU_TIMERS_GET_CLASS(self)   (GBL_CLASSOF(EvmuTimers, self))
 

Typedefs

typedef GblEnum EVMU_TIMER0_MODE
 
typedef GblEnum EVMU_TIMER1_MODE
 

Enumerations

enum  EVMU_TIMER0_MODE
 
enum  EVMU_TIMER1_MODE
 

Functions

GblType EvmuTimers_type (void)
 
EVMU_TIMER1_MODE EvmuTimers_timer1Mode (const EvmuTimers *pSelf)
 
EVMU_TIMER0_MODE EvmuTimers_timer0Mode (const EvmuTimers *pSelf)
 
void EvmuTimers_update (EvmuTimers *pSelf)
 

Detailed Description

EvmuTimers: BaseTimer, Timer0, and Timer1 Peripherals.

This header provides an API and implementation for the three different timing peripherals contained within the VMU:

  • Timer 0
  • Timer 1
  • Base Timer
Author
2023 Falco Girgis

Definition in file evmu_timers.h.

Macro Definition Documentation

◆ EVMU_TIMERS

#define EVMU_TIMERS (   self)    (GBL_CAST(EvmuTimers, self))

Function-style cast for GblInstance.

Definition at line 25 of file evmu_timers.h.

◆ EVMU_TIMERS_CLASS

#define EVMU_TIMERS_CLASS (   klass)    (GBL_CLASS_CAST(EvmuTimers, klass))

Function-style cast for GblClass.

Definition at line 26 of file evmu_timers.h.

◆ EVMU_TIMERS_GET_CLASS

#define EVMU_TIMERS_GET_CLASS (   self)    (GBL_CLASSOF(EvmuTimers, self))

Get EvmuTimersClass from GblInstance

Definition at line 27 of file evmu_timers.h.

◆ EVMU_TIMERS_NAME

#define EVMU_TIMERS_NAME   "timers"

EvmuTimers GblObject name.

Definition at line 30 of file evmu_timers.h.

◆ EVMU_TIMERS_TYPE

#define EVMU_TIMERS_TYPE   (GBL_TYPEID(EvmuTimers))

Type UUID for EvmuTimers.

Definition at line 24 of file evmu_timers.h.

Typedef Documentation

◆ EVMU_TIMER0_MODE

Configuration modes for Timer 0.

Definition at line 37 of file evmu_timers.h.

◆ EVMU_TIMER1_MODE

typedef GblEnum EVMU_TIMER1_MODE

Configuration modes for Timer 1.

Definition at line 45 of file evmu_timers.h.

Enumeration Type Documentation

◆ EVMU_TIMER0_MODE

Enumerator
EVMU_TIMER0_MODE_TIMER8_TIMER8 

Timer8 mode 0, dual 8-bit timers.

Definition at line 37 of file evmu_timers.h.

37 {
39 EVMU_TIMER0_MODE_TIMER8_COUNTER8,
40 EVMU_TIMER0_MODE_TIMER16,
41 EVMU_TIMER0_MODE_COUNTER16
42};
@ EVMU_TIMER0_MODE_TIMER8_TIMER8
Timer8 mode 0, dual 8-bit timers.
Definition evmu_timers.h:38

◆ EVMU_TIMER1_MODE

enum EVMU_TIMER1_MODE

Definition at line 45 of file evmu_timers.h.

45 {
46 EVMU_TIMER1_MODE_TIMER8_TIMER8,
47 EVMU_TIMER1_MODE_TIMER8_PULSE8,
48 EVMU_TIMER1_MODE_TIMER16,
49 EVMU_TIMER1_MODE_PULSEVAR
50};