wavelength 1.0.0
Loading...
Searching...
No Matches
TickTimer Class Reference

The hardware timer that wakes the tick thread every six milliseconds. More...

#include <ticktimer.h>

Public Member Functions

int Init ()
 Allocate and configure the timer to wake mThreadId.
int Start ()
 Start the timer.
int Free ()
 Release the timer.
int Stop ()
 Stop the timer.

Static Public Member Functions

static void Begin (void(*entry)())
 Create and start the tick thread, then start sTimer to wake it.
static void End ()
 Stop and release sTimer and delete the synthesiser's lock.

Public Attributes

int mThreadId
int mTimerId
unsigned int mCompare

Detailed Description

The hardware timer that wakes the tick thread every six milliseconds.

The class has no RTTI, and its name is inferred from its role. The module has one, sTimer.

Member Function Documentation

◆ Init()

int TickTimer::Init ( )

Allocate and configure the timer to wake mThreadId.

Returns
Zero.
Ghidra address:
NTSC-U/C: 0x00005e54
Ghidra address:
PAL: 0x00005e54

◆ Start()

int TickTimer::Start ( )

Start the timer.

Returns
Zero.
Ghidra address:
NTSC-U/C: 0x00005edc
Ghidra address:
PAL: 0x00005edc

◆ Free()

int TickTimer::Free ( )

Release the timer.

Returns
Zero.
Ghidra address:
NTSC-U/C: 0x00005f04
Ghidra address:
PAL: 0x00005f04

◆ Stop()

int TickTimer::Stop ( )

Stop the timer.

Returns
Zero.
Ghidra address:
NTSC-U/C: 0x00005f2c
Ghidra address:
PAL: 0x00005f2c

◆ Begin()

void TickTimer::Begin ( void(* entry )())
static

Create and start the tick thread, then start sTimer to wake it.

Parameters
entryThe tick thread's entry point.
Ghidra address:
NTSC-U/C: 0x00005f54
Ghidra address:
PAL: 0x00005f54

◆ End()

void TickTimer::End ( )
static

Stop and release sTimer and delete the synthesiser's lock.

Ghidra address:
NTSC-U/C: 0x00005fa8
Ghidra address:
PAL: 0x00005fa8

Member Data Documentation

◆ mThreadId

int TickTimer::mThreadId

The thread each expiry wakes.

◆ mTimerId

int TickTimer::mTimerId

The hardware timer.

◆ mCompare

unsigned int TickTimer::mCompare

The period in system clock cycles.


The documentation for this class was generated from the following file: