microlibrary

Clock Facilities

Microchip megaAVR 0-series clock facilities are defined in the microlibrary static library’s microlibrary/microchip/megaavr0/clock.h/microlibrary/microchip/megaavr0/clock.cc header/source file pair.

Table of Contents

  1. Clock Source Identification
  2. Clock Prescaler Configuration Identification
  3. Clock Prescaler Value Identification
  4. Internal 16/20 MHz Oscillator Mode Identification
  5. Internal 32.768 kHz Ultra Low-Power Oscillator Mode Identification
  6. External 32.768 kHz Crystal Oscillator Source Identification
  7. External 32.768 kHz Crystal Oscillator Start-Up Time Identification
  8. External 32.768 kHz Crystal Oscillator Mode Identification
  9. Clock Controller

Clock Source Identification

The ::microlibrary::Microchip::megaAVR0::Clock_Source enum class is used to identify Microchip megaAVR 0-series clock sources.

A std::ostream insertion operator is defined for ::microlibrary::Microchip::megaAVR0::Clock_Source if MICROLIBRARY_TARGET is DEVELOPMENT_ENVIRONMENT. The insertion operator is defined in the microlibrary/testing/automated/microchip/megaavr0/clock.h/microlibrary/testing/automated/microchip/megaavr0/clock.cc header/source file pair.

Clock Prescaler Configuration Identification

The ::microlibrary::Microchip::megaAVR0::Clock_Prescaler enum class is used to identify Microchip megaAVR 0-series clock prescaler configurations.

A std::ostream insertion operator is defined for ::microlibrary::Microchip::megaAVR0::Clock_Prescaler if MICROLIBRARY_TARGET is DEVELOPMENT_ENVIRONMENT. The insertion operator is defined in the microlibrary/testing/automated/microchip/megaavr0/clock.h/microlibrary/testing/automated/microchip/megaavr0/clock.cc header/source file pair.

Clock Prescaler Value Identification

The ::microlibrary::Microchip::megaAVR0::Clock_Prescaler_Value enum class is used to identify Microchip megaAVR 0-series clock prescaler values.

A std::ostream insertion operator is defined for ::microlibrary::Microchip::megaAVR0::Clock_Prescaler_Value if MICROLIBRARY_TARGET is DEVELOPMENT_ENVIRONMENT. The insertion operator is defined in the microlibrary/testing/automated/microchip/megaavr0/clock.h/microlibrary/testing/automated/microchip/megaavr0/clock.cc header/source file pair.

Internal 16/20 MHz Oscillator Mode Identification

The ::microlibrary::Microchip::megaAVR0::Internal_16_20_MHz_Oscillator_Mode enum class is used to identify Microchip megaAVR 0-series internal 16/20 MHz oscillator modes.

A std::ostream insertion operator is defined for ::microlibrary::Microchip::megaAVR0::Internal_16_20_MHz_Oscillator_Mode if MICROLIBRARY_TARGET is DEVELOPMENT_ENVIRONMENT. The insertion operator is defined in the microlibrary/testing/automated/microchip/megaavr0/clock.h/microlibrary/testing/automated/microchip/megaavr0/clock.cc header/source file pair.

Internal 32.768 kHz Ultra Low-Power Oscillator Mode Identification

The ::microlibrary::Microchip::megaAVR0::Internal_32_768_kHz_Ultra_Low_Power_Oscillator_Mode enum class is used to identify Microchip megaAVR 0-series internal 32.768 kHz ultra low-power oscillator modes.

A std::ostream insertion operator is defined for ::microlibrary::Microchip::megaAVR0::Internal_32_768_kHz_Ultra_Low_Power_Oscillator_Mode if MICROLIBRARY_TARGET is DEVELOPMENT_ENVIRONMENT. The insertion operator is defined in the microlibrary/testing/automated/microchip/megaavr0/clock.h/microlibrary/testing/automated/microchip/megaavr0/clock.cc header/source file pair.

External 32.768 kHz Crystal Oscillator Source Identification

The ::microlibrary::Microchip::megaAVR0::External_32_768_kHz_Crystal_Oscillator_Source enum class is used to identify Microchip megaAVR 0-series external 32.768 kHz crystal oscillator sources.

A std::ostream insertion operator is defined for ::microlibrary::Microchip::megaAVR0::External_32_768_kHz_Crystal_Oscillator_Source if MICROLIBRARY_TARGET is DEVELOPMENT_ENVIRONMENT. The insertion operator is defined in the microlibrary/testing/automated/microchip/megaavr0/clock.h/microlibrary/testing/automated/microchip/megaavr0/clock.cc header/source file pair.

External 32.768 kHz Crystal Oscillator Start-Up Time Identification

The ::microlibrary::Microchip::megaAVR0::External_32_768_kHz_Crystal_Oscillator_Start_Up_Time enum class is used to identify Microchip megaAVR 0-series external 32.768 kHz crystal oscillator start-up times.

A std::ostream insertion operator is defined for ::microlibrary::Microchip::megaAVR0::External_32_768_kHz_Crystal_Oscillator_Start_Up_Time if MICROLIBRARY_TARGET is DEVELOPMENT_ENVIRONMENT. The insertion operator is defined in the microlibrary/testing/automated/microchip/megaavr0/clock.h/microlibrary/testing/automated/microchip/megaavr0/clock.cc header/source file pair.

External 32.768 kHz Crystal Oscillator Mode Identification

The ::microlibrary::Microchip::megaAVR0::External_32_768_kHz_Crystal_Oscillator_Mode enum class is used to identify Microchip megaAVR 0-series external 32.768 kHz crystal oscillator modes.

A std::ostream insertion operator is defined for ::microlibrary::Microchip::megaAVR0::External_32_768_kHz_Crystal_Oscillator_Mode if MICROLIBRARY_TARGET is DEVELOPMENT_ENVIRONMENT. The insertion operator is defined in the microlibrary/testing/automated/microchip/megaavr0/clock.h/microlibrary/testing/automated/microchip/megaavr0/clock.cc header/source file pair.

Clock Controller

The ::microlibrary::Microchip::megaAVR0::Clock_Controller clock controller class is used to interact with a Microchip megaAVR 0-series microcontroller’s CLKCTRL peripheral.

::microlibrary::Microchip::megaAVR0::Clock_Controller automated tests are defined in the test-automated-microlibrary-microchip-megaavr0-clock_controller automated test executable’s main.cc source file.

The ::microlibrary::Testing::Automated::Microchip::megaAVR0::Mock_Clock_Controller mock clock controller class is available if MICROLIBRARY_TARGET is DEVELOPMENT_ENVIRONMENT. The mock is defined in the microlibrary/testing/automated/microchip/megaavr0/clock.h/microlibrary/testing/automated/microchip/megaavr0/clock.cc header/source file pair.