Zephyr API Documentation 4.3.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
mchp_clock_pic32cz_ca.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2025-2026 Microchip Technology Inc.
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
14
15#ifndef INCLUDE_ZEPHYR_DRIVERS_CLOCK_CONTROL_MCHP_CLOCK_PIC32CZ_CA_H_
16#define INCLUDE_ZEPHYR_DRIVERS_CLOCK_CONTROL_MCHP_CLOCK_PIC32CZ_CA_H_
17
19
23 bool on_demand_en;
24};
25
45
62
87
102
108
112 CLOCK_MCHP_RTC_SRC_ULP1K = OSC32KCTRL_CLKSELCTRL_RTCSEL_ULP1K_Val,
113
115 CLOCK_MCHP_RTC_SRC_ULP32K = OSC32KCTRL_CLKSELCTRL_RTCSEL_ULP32K_Val,
116
118 CLOCK_MCHP_RTC_SRC_XOSC1K = OSC32KCTRL_CLKSELCTRL_RTCSEL_XOSC1K_Val,
119
121 CLOCK_MCHP_RTC_SRC_XOSC32K = OSC32KCTRL_CLKSELCTRL_RTCSEL_XOSC32K_Val
122};
123
128};
129
133 bool on_demand_en;
134};
135
156
163
166
169};
170
175};
176
188
196};
197
203
204#endif /* INCLUDE_ZEPHYR_DRIVERS_CLOCK_CONTROL_MCHP_CLOCK_PIC32CZ_CA_H_ */
clock_mchp_gclk_src_clock
Gclk Generator source clocks.
Definition mchp_clock_pic32cm_jh.h:128
@ CLOCK_MCHP_GCLK_SRC_XOSC
Definition mchp_clock_pic32cm_jh.h:129
@ CLOCK_MCHP_GCLK_SRC_OSCULP32K
Definition mchp_clock_pic32cm_jh.h:132
@ CLOCK_MCHP_GCLK_SRC_GCLKPIN
Definition mchp_clock_pic32cm_jh.h:130
@ CLOCK_MCHP_GCLK_SRC_GCLKGEN1
Definition mchp_clock_pic32cm_jh.h:131
@ CLOCK_MCHP_GCLK_SRC_XOSC32K
Definition mchp_clock_pic32cm_jh.h:134
@ CLOCK_MCHP_GCLK_SRC_MAX
Definition mchp_clock_pic32cm_jh.h:138
clock_mchp_rtc_src_clock
RTC source clocks.
Definition mchp_clock_pic32cm_jh.h:97
@ CLOCK_MCHP_RTC_SRC_XOSC32K
Definition mchp_clock_pic32cm_jh.h:103
@ CLOCK_MCHP_RTC_SRC_ULP32K
Definition mchp_clock_pic32cm_jh.h:99
@ CLOCK_MCHP_RTC_SRC_XOSC1K
Definition mchp_clock_pic32cm_jh.h:102
@ CLOCK_MCHP_RTC_SRC_ULP1K
Definition mchp_clock_pic32cm_jh.h:98
clock_mchp_mclk_cpu_div
division ratio of mclk prescaler for CPU
Definition mchp_clock_pic32cm_jh.h:173
@ CLOCK_MCHP_MCLK_CPU_DIV_64
Definition mchp_clock_pic32cm_jh.h:180
@ CLOCK_MCHP_MCLK_CPU_DIV_1
Definition mchp_clock_pic32cm_jh.h:174
@ CLOCK_MCHP_MCLK_CPU_DIV_32
Definition mchp_clock_pic32cm_jh.h:179
@ CLOCK_MCHP_MCLK_CPU_DIV_2
Definition mchp_clock_pic32cm_jh.h:175
@ CLOCK_MCHP_MCLK_CPU_DIV_8
Definition mchp_clock_pic32cm_jh.h:177
@ CLOCK_MCHP_MCLK_CPU_DIV_4
Definition mchp_clock_pic32cm_jh.h:176
@ CLOCK_MCHP_MCLK_CPU_DIV_16
Definition mchp_clock_pic32cm_jh.h:178
@ CLOCK_MCHP_MCLK_CPU_DIV_128
Definition mchp_clock_pic32cm_jh.h:181
uint32_t * clock_mchp_rate_t
clock rate datatype
Definition mchp_clock_pic32cm_jh.h:197
clock_mchp_gclkgen
GCLK generator numbers.
Definition mchp_clock_pic32cm_jh.h:155
@ CLOCK_MCHP_GCLKGEN_GEN0
Definition mchp_clock_pic32cm_jh.h:156
@ CLOCK_MCHP_GCLKGEN_GEN5
Definition mchp_clock_pic32cm_jh.h:161
@ CLOCK_MCHP_GCLKGEN_GEN3
Definition mchp_clock_pic32cm_jh.h:159
@ CLOCK_MCHP_GCLKGEN_GEN4
Definition mchp_clock_pic32cm_jh.h:160
@ CLOCK_MCHP_GCLKGEN_GEN7
Definition mchp_clock_pic32cm_jh.h:163
@ CLOCK_MCHP_GCLKGEN_GEN1
Definition mchp_clock_pic32cm_jh.h:157
@ CLOCK_MCHP_GCLKGEN_GEN6
Definition mchp_clock_pic32cm_jh.h:162
@ CLOCK_MCHP_GCLKGEN_GEN2
Definition mchp_clock_pic32cm_jh.h:158
@ CLOCK_MCHP_GCLKGEN_GEN8
Definition mchp_clock_pic32cm_jh.h:164
@ CLOCK_MCHP_GCLK_SRC_DPLL0_CLKOUT3
DPLL0 output clock 3.
Definition mchp_clock_pic32cz_ca.h:147
@ CLOCK_MCHP_GCLK_SRC_DPLL1_CLKOUT3
DPLL1 output clock 3.
Definition mchp_clock_pic32cz_ca.h:151
@ CLOCK_MCHP_GCLK_SRC_DPLL1_FRC_CLKOUT0
DPLL1 clock output 0.
Definition mchp_clock_pic32cz_ca.h:148
@ CLOCK_MCHP_GCLK_SRC_DFLL48M
Internal 48 MHz DFLL clock.
Definition mchp_clock_pic32cz_ca.h:143
@ CLOCK_MCHP_GCLK_SRC_DPLL0_CLKOUT1
DPLL0 output clock 1.
Definition mchp_clock_pic32cz_ca.h:145
@ CLOCK_MCHP_GCLK_SRC_DPLL0_CLKOUT0
DPLL0 output clock 0.
Definition mchp_clock_pic32cz_ca.h:144
@ CLOCK_MCHP_GCLK_SRC_DPLL1_FRC_CLKOUT1
DPLL1 clock output 1.
Definition mchp_clock_pic32cz_ca.h:149
@ CLOCK_MCHP_GCLK_SRC_DPLL0_CLKOUT2
DPLL0 output clock 2.
Definition mchp_clock_pic32cz_ca.h:146
@ CLOCK_MCHP_GCLK_SRC_DPLL1_CLKOUT2
DPLL1 output clock 2.
Definition mchp_clock_pic32cz_ca.h:150
clock_mchp_gclkgen
Gclk generator numbers.
Definition mchp_clock_pic32cz_ca.h:27
@ CLOCK_MCHP_GCLKGEN_GEN15
Gclk Generator 15.
Definition mchp_clock_pic32cz_ca.h:43
@ CLOCK_MCHP_GCLKGEN_GEN10
Gclk Generator 10.
Definition mchp_clock_pic32cz_ca.h:38
@ CLOCK_MCHP_GCLKGEN_GEN12
Gclk Generator 12.
Definition mchp_clock_pic32cz_ca.h:40
@ CLOCK_MCHP_GCLKGEN_GEN11
Gclk Generator 11.
Definition mchp_clock_pic32cz_ca.h:39
@ CLOCK_MCHP_GCLKGEN_GEN9
Gclk Generator 9.
Definition mchp_clock_pic32cz_ca.h:37
@ CLOCK_MCHP_GCLKGEN_GEN13
Gclk Generator 13.
Definition mchp_clock_pic32cz_ca.h:41
@ CLOCK_MCHP_GCLKGEN_GEN14
Gclk Generator 14.
Definition mchp_clock_pic32cz_ca.h:42
clock_mchp_dpll_src_clock
DPLL source clocks.
Definition mchp_clock_pic32cz_ca.h:64
@ CLOCK_MCHP_DPLL_SRC_MAX
Maximum valid DPLL source clock.
Definition mchp_clock_pic32cz_ca.h:84
@ CLOCK_MCHP_DPLL_SRC_GCLK6
Gclk Generator 6.
Definition mchp_clock_pic32cz_ca.h:71
@ CLOCK_MCHP_DPLL_SRC_GCLK5
Gclk Generator 5.
Definition mchp_clock_pic32cz_ca.h:70
@ CLOCK_MCHP_DPLL_SRC_GCLK3
Gclk Generator 3.
Definition mchp_clock_pic32cz_ca.h:68
@ CLOCK_MCHP_DPLL_SRC_GCLK7
Gclk Generator 7.
Definition mchp_clock_pic32cz_ca.h:72
@ CLOCK_MCHP_DPLL_SRC_GCLK13
Gclk Generator 13.
Definition mchp_clock_pic32cz_ca.h:78
@ CLOCK_MCHP_DPLL_SRC_GCLK8
Gclk Generator 8.
Definition mchp_clock_pic32cz_ca.h:73
@ CLOCK_MCHP_DPLL_SRC_GCLK15
Gclk Generator 15.
Definition mchp_clock_pic32cz_ca.h:80
@ CLOCK_MCHP_DPLL_SRC_GCLK12
Gclk Generator 12.
Definition mchp_clock_pic32cz_ca.h:77
@ CLOCK_MCHP_DPLL_SRC_GCLK10
Gclk Generator 10.
Definition mchp_clock_pic32cz_ca.h:75
@ CLOCK_MCHP_DPLL_SRC_GCLK1
Gclk Generator 1.
Definition mchp_clock_pic32cz_ca.h:66
@ CLOCK_MCHP_DPLL_SRC_XOSC
External crystal oscillator (XOSC).
Definition mchp_clock_pic32cz_ca.h:81
@ CLOCK_MCHP_DPLL_SRC_GCLK9
Gclk Generator 9.
Definition mchp_clock_pic32cz_ca.h:74
@ CLOCK_MCHP_DPLL_SRC_GCLK11
Gclk Generator 11.
Definition mchp_clock_pic32cz_ca.h:76
@ CLOCK_MCHP_DPLL_SRC_GCLK14
Gclk Generator 14.
Definition mchp_clock_pic32cz_ca.h:79
@ CLOCK_MCHP_DPLL_SRC_GCLK0
Gclk Generator 0.
Definition mchp_clock_pic32cz_ca.h:65
@ CLOCK_MCHP_DPLL_SRC_DFLL48M
Internal 48 MHz DFLL clock.
Definition mchp_clock_pic32cz_ca.h:82
@ CLOCK_MCHP_DPLL_SRC_GCLK2
Gclk Generator 2.
Definition mchp_clock_pic32cz_ca.h:67
@ CLOCK_MCHP_DPLL_SRC_GCLK4
Gclk Generator 4.
Definition mchp_clock_pic32cz_ca.h:69
clock_mchp_gclk_src_clock
Gclk Generator source clocks.
Definition mchp_clock_sam_d5x_e5x.h:126
clock_mchp_rtc_src_clock
RTC source clocks.
Definition mchp_clock_sam_d5x_e5x.h:105
clock_mchp_mclk_cpu_div
division ratio of mclk prescaler for CPU
Definition mchp_clock_sam_d5x_e5x.h:159
clock_mchp_gclkgen
GCLK generator numbers.
Definition mchp_clock_sam_d5x_e5x.h:29
List clock subsystem IDs for pic32cz_ca family.
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
__UINT16_TYPE__ uint16_t
Definition stdint.h:89
DFLL 48MHz configuration structure.
Definition mchp_clock_pic32cz_ca.h:47
uint16_t multiply_factor
Determines the ratio of the CLK_DFLL48M output frequency to the CLK_DFLL48M_REF input frequency (0 - ...
Definition mchp_clock_pic32cz_ca.h:60
bool closed_loop_en
Enable closed-loop operation.
Definition mchp_clock_pic32cz_ca.h:52
bool on_demand_en
configure oscillator to ON, when a peripheral is requesting it as a source
Definition mchp_clock_pic32cz_ca.h:49
enum clock_mchp_gclkgen src
Reference source clock selection.
Definition mchp_clock_pic32cz_ca.h:55
DPLL configuration structure.
Definition mchp_clock_pic32cz_ca.h:89
enum clock_mchp_dpll_src_clock src
Reference source clock selection.
Definition mchp_clock_pic32cz_ca.h:100
uint8_t ref_division_factor
Determines division factor of PLL input reference freq (1 ≤ REFDIV ≤ 63).
Definition mchp_clock_pic32cz_ca.h:94
uint16_t feedback_divider_factor
ratio of PLL's VCO output frequency to Reference input frequency
Definition mchp_clock_pic32cz_ca.h:91
bool on_demand_en
configure oscillator to ON, when a peripheral is requesting it as a source
Definition mchp_clock_pic32cz_ca.h:97
DPLL Output configuration structure.
Definition mchp_clock_pic32cz_ca.h:104
uint8_t output_division_factor
Determines the division factor of PLL VCO freq output 1 ≤ POSTDIV ≤ 63.
Definition mchp_clock_pic32cz_ca.h:106
Gclk Generator configuration structure.
Definition mchp_clock_pic32cm_jh.h:141
bool run_in_standby_en
configure oscillator to ON in standby sleep mode, unless on_demand_en is set
Definition mchp_clock_pic32cm_jh.h:148
enum clock_mchp_gclk_src_clock src
Generator source clock selection.
Definition mchp_clock_pic32cm_jh.h:151
uint16_t div_factor
Represent a division value for the corresponding Generator.
Definition mchp_clock_pic32cm_jh.h:145
Gclk Peripheral configuration structure.
Definition mchp_clock_pic32cm_jh.h:167
enum clock_mchp_gclkgen src
gclk generator source of a peripheral clock
Definition mchp_clock_pic32cm_jh.h:169
MCLK configuration structure.
Definition mchp_clock_pic32cm_jh.h:188
enum clock_mchp_mclk_cpu_div division_factor
division ratio of mclk prescaler for CPU
Definition mchp_clock_pic32cm_jh.h:190
RTC configuration structure.
Definition mchp_clock_pic32cm_jh.h:106
enum clock_mchp_rtc_src_clock src
RTC source clock selection.
Definition mchp_clock_pic32cm_jh.h:108
External 32.768 kHz crystal oscillator configuration structure.
Definition mchp_clock_pic32cm_jh.h:111
bool on_demand_en
configure oscillator to ON, when a peripheral is requesting it as a source
Definition mchp_clock_pic32cm_jh.h:113
External Crystal Oscillator configuration structure.
Definition mchp_clock_pic32cm_jh.h:20
bool on_demand_en
configure oscillator to ON, when a peripheral is requesting it as a source
Definition mchp_clock_pic32cm_jh.h:22