RT-Thread RTOS
An open source embedded real-time operating system
rt_clk_cell Struct Reference

#include <clk.h>

Data Fields

rt_ubase_t rate
 
const char * parent_name
 

Detailed Description

Clock cell - represents a single hardware clock element.

A clk_cell is the fundamental unit of a clock tree, such as a PLL, divider, mux, or gate. It maintains its relationship to parent clocks using pointers, not lists, for lightweight hierarchy management.

The 'ops' field defines hardware-specific callbacks. The framework invokes these during enable, disable, and rate changes.

Field Documentation

◆ parent_name

const char* rt_clk_cell::parent_name

When parents_nr = 1

◆ rate

rt_ubase_t rt_clk_cell::rate

Cached or fixed rate (not always accurate)