OSCR
Open Source Cartridge Reader
Loading...
Searching...
No Matches
OSCR::Clock Namespace Reference

MCU clock speed methods. More...

Functions

ModuleResult setClockSpeed (ClockSpeed newClock)
ClockSpeed getClockSpeed ()
uint32_t getClock ()

Detailed Description

MCU clock speed methods.

Function Documentation

◆ getClock()

uint32_t OSCR::Clock::getClock ( )
extern

Get the current clock speed as an integer.

◆ getClockSpeed()

ClockSpeed OSCR::Clock::getClockSpeed ( )
extern

Get the current clock speed.

◆ setClockSpeed()

ModuleResult OSCR::Clock::setClockSpeed ( ClockSpeed newClock)
extern

Set the clock speed of the ATmega2560.

Parameters
newClockThe ClockSpeed to change to.
Returns
ModuleResult