HF-TMC9660 Driver 0.1.0-dev
Hardware Agnostic C++ Driver for the TMC9660
Loading...
Searching...
No Matches
tmc9660::ClockConfig Struct Reference

System clock configuration structure. More...

#include <bootloader_config.hpp>

Public Attributes

bootcfg::ClockSource use_external
 Use external or internal clock source.
 
bootcfg::ExtSourceType ext_source_type
 External source type (crystal/clock)
 
bootcfg::XtalDrive xtal_drive {bootcfg::XtalDrive::Freq16MHz}
 Crystal drive strength.
 
bool xtal_boost {false}
 Enable crystal boost mode.
 
bootcfg::SysClkSource pll_selection
 System clock source (oscillator/PLL)
 
uint8_t rdiv {14}
 PLL reference divider.
 
bootcfg::SysClkDiv sysclk_div {bootcfg::SysClkDiv::Div1}
 System clock divider.
 

Detailed Description

System clock configuration structure.

Configures the TMC9660's system clock including source selection, PLL settings, and frequency dividers for optimal performance.

Member Data Documentation

◆ ext_source_type

bootcfg::ExtSourceType tmc9660::ClockConfig::ext_source_type
Initial value:
{
@ Oscillator
External crystal oscillator (requires external crystal)

External source type (crystal/clock)

◆ pll_selection

bootcfg::SysClkSource tmc9660::ClockConfig::pll_selection
Initial value:
{
@ PLL
Use PLL for frequency multiplication (higher performance, configurable)

System clock source (oscillator/PLL)

◆ rdiv

uint8_t tmc9660::ClockConfig::rdiv {14}

PLL reference divider.

◆ sysclk_div

bootcfg::SysClkDiv tmc9660::ClockConfig::sysclk_div {bootcfg::SysClkDiv::Div1}

System clock divider.

◆ use_external

bootcfg::ClockSource tmc9660::ClockConfig::use_external
Initial value:
{
@ Internal
Use internal oscillator (default, no external components needed)

Use external or internal clock source.

◆ xtal_boost

bool tmc9660::ClockConfig::xtal_boost {false}

Enable crystal boost mode.

◆ xtal_drive

bootcfg::XtalDrive tmc9660::ClockConfig::xtal_drive {bootcfg::XtalDrive::Freq16MHz}

Crystal drive strength.


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