Clock definitions.
More...
|
| enum class | Source : uint8_t {
ExternalClock = 0
, InternalCalibratedRC = 1
, Internal128kHzRC = 2
, LowFrequencyCrystal = 3
,
CrystalOscillator = 4
} |
| | Main clock source types. More...
|
| enum class | Domain : uint8_t {
CPU = 0
, IO = 1
, Flash = 2
, ADC = 3
,
AsynchronousTimer = 4
} |
| | Clock distribution domains. More...
|
| enum class | SUTCode : uint8_t { SUT00 = 0
, SUT01 = 1
, SUT10 = 2
, SUT11 = 3
} |
| | CKSEL fuse startup time subfield. More...
|
| enum class | CKSELCode : uint8_t {
ExternalClock = 0x0
, Reserved = 0x1
, InternalCalibratedRC = 0x2
, Internal128kHzRC = 0x3
,
LowFrequencyCrystalOption0 = 0x4
, LowFrequencyCrystalOption1 = 0x5
, FullSwingCrystalOption0 = 0x6
, FullSwingCrystalOption1 = 0x7
,
LowPowerCrystalOption0 = 0x8
, LowPowerCrystalOption1 = 0x9
, LowPowerCrystalOption2 = 0xA
, LowPowerCrystalOption3 = 0xB
,
LowPowerCrystalOption4 = 0xC
, LowPowerCrystalOption5 = 0xD
, LowPowerCrystalOption6 = 0xE
, LowPowerCrystalOption7 = 0xF
} |
| | All CKSEL3:0 fuse encodings from datasheet Table 10-1. More...
|
| enum class | Prescaler : uint16_t {
Divide1 = 1
, Divide2 = 2
, Divide4 = 4
, Divide8 = 8
,
Divide16 = 16
, Divide32 = 32
, Divide64 = 64
, Divide128 = 128
,
Divide256 = 256
} |
| | CPU prescaler values. More...
|
| enum | : uint32_t {
internal_calibrated_rc_hz = 8000000UL
, internal_128khz_rc_hz = 128000UL
, timer2_async_crystal_hz = 32768UL
, factory_default_oscillator_hz = 8000000UL
,
factory_default_cpu_hz = 1000000UL
, standard_max_cpu_hz_at_4v5 = 16000000UL
, low_voltage_max_cpu_hz_at_2v7 = 8000000UL
, low_voltage_max_cpu_hz_at_1v8 = 2000000UL
} |
| | Clock ratings and defaults. More...
|
| enum | : uint8_t { factory_default_divisor = 8
, system_prescaler_count = 9
} |
| | Prescaler facts. More...
|
◆ anonymous enum
Prescaler facts.
| Enumerator |
|---|
| factory_default_divisor | factory default divisor.
|
| system_prescaler_count | system prescaler count.
|
◆ anonymous enum
| anonymous enum : uint32_t |
Clock ratings and defaults.
| Enumerator |
|---|
| internal_calibrated_rc_hz | internal calibrated rc hz.
|
| internal_128khz_rc_hz | internal 128khz rc hz.
|
| timer2_async_crystal_hz | timer2 async crystal hz.
|
| factory_default_oscillator_hz | factory default oscillator hz.
|
| factory_default_cpu_hz | factory default cpu hz.
|
| standard_max_cpu_hz_at_4v5 | standard max cpu hz at 4v5.
|
| low_voltage_max_cpu_hz_at_2v7 | low voltage max cpu hz at 2v7.
|
| low_voltage_max_cpu_hz_at_1v8 | low voltage max cpu hz at 1v8.
|
◆ CKSELCode
All CKSEL3:0 fuse encodings from datasheet Table 10-1.
| Enumerator |
|---|
| ExternalClock | External clock.
|
| Reserved | Reserved encoding.
|
| InternalCalibratedRC | Calibrated internal RC oscillator.
|
| Internal128kHzRC | Internal 128 kHz RC oscillator.
|
| LowFrequencyCrystalOption0 | Low-frequency crystal option.
|
| LowFrequencyCrystalOption1 | Low-frequency crystal option.
|
| FullSwingCrystalOption0 | Full-swing crystal option.
|
| FullSwingCrystalOption1 | Full-swing crystal option.
|
| LowPowerCrystalOption0 | Low-power crystal option.
|
| LowPowerCrystalOption1 | Low-power crystal option.
|
| LowPowerCrystalOption2 | Low-power crystal option.
|
| LowPowerCrystalOption3 | Low-power crystal option.
|
| LowPowerCrystalOption4 | Low-power crystal option.
|
| LowPowerCrystalOption5 | Low-power crystal option.
|
| LowPowerCrystalOption6 | Low-power crystal option.
|
| LowPowerCrystalOption7 | Low-power crystal option.
|
◆ Domain
Clock distribution domains.
| Enumerator |
|---|
| CPU | CPU clock.
|
| IO | Peripheral I/O clock.
|
| Flash | Flash interface clock.
|
| ADC | ADC clock.
|
| AsynchronousTimer | Asynchronous timer clock.
|
◆ Prescaler
CPU prescaler values.
| Enumerator |
|---|
| Divide1 | System prescaler division 1.
|
| Divide2 | System prescaler division 2.
|
| Divide4 | System prescaler division 4.
|
| Divide8 | System prescaler division 8.
|
| Divide16 | System prescaler division 16.
|
| Divide32 | System prescaler division 32.
|
| Divide64 | System prescaler division 64.
|
| Divide128 | System prescaler division 128.
|
| Divide256 | System prescaler division 256.
|
◆ Source
Main clock source types.
| Enumerator |
|---|
| ExternalClock | External clock input.
|
| InternalCalibratedRC | Calibrated internal RC oscillator.
|
| Internal128kHzRC | Internal 128 kHz oscillator.
|
| LowFrequencyCrystal | Low-frequency crystal oscillator.
|
| CrystalOscillator | External crystal or ceramic resonator.
|
◆ SUTCode
CKSEL fuse startup time subfield.
| Enumerator |
|---|
| SUT00 | Startup code 00.
|
| SUT01 | Startup code 01.
|
| SUT10 | Startup code 10.
|
| SUT11 | Startup code 11.
|