|
Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
|
Files | |
| file | clock_control_ifx_cat1.h |
| Clock control definitions for Infineon CAT1 (PSoC 6 family) devices. | |
Data Structures | |
| struct | ifx_cat1_clock |
| CAT1 clock descriptor. More... | |
| struct | ifx_cat1_resource_inst |
| CAT1 resource instance descriptor. More... | |
Enumerations | |
| enum | ifx_cat1_clock_block |
| CAT1 clock block (source or domain) selector. More... | |
Functions | |
| int | ifx_cat1_clock_control_get_frequency (uint32_t dt_ord, uint32_t *frequency) |
| Get the frequency of a clock identified by its Devicetree ordinal. | |
| static uint32_t | ifx_cat1_utils_peri_pclk_get_frequency (en_clk_dst_t clk_dest, const struct ifx_cat1_clock *_clock) |
| Get the frequency of a peripheral clock divider. | |
| static cy_rslt_t | ifx_cat1_utils_peri_pclk_enable_divider (en_clk_dst_t clk_dest, const struct ifx_cat1_clock *_clock) |
| Enable the divider associated with a peripheral clock. | |
| static cy_rslt_t | ifx_cat1_utils_peri_pclk_set_divider (en_clk_dst_t clk_dest, const struct ifx_cat1_clock *_clock, uint32_t div) |
| Set the integer divider for a peripheral clock. | |
| static cy_rslt_t | ifx_cat1_utils_peri_pclk_set_frac_divider (en_clk_dst_t clk_dest, const struct ifx_cat1_clock *_clock, uint32_t div_int, uint32_t div_frac) |
| Set the fractional divider for a peripheral clock. | |
| static cy_rslt_t | ifx_cat1_utils_peri_pclk_assign_divider (en_clk_dst_t clk_dest, const struct ifx_cat1_clock *_clock) |
| Assign a divider to a peripheral clock destination. | |
| static uint8_t | ifx_cat1_utils_peri_pclk_get_hfclk (uint8_t peri_group) |
| Map a peripheral group index to the HF clock that sources it. | |
High frequency (HF) clock indices | |
| #define | CLK_HF0 (0U) |
| HF clock 0. | |
| #define | CLK_HF1 (1U) |
| HF clock 1. | |
| #define | CLK_HF2 (2U) |
| HF clock 2. | |
| #define | CLK_HF3 (3U) |
| HF clock 3. | |
| #define | CLK_HF4 (4U) |
| HF clock 4. | |
| #define | CLK_HF5 (5U) |
| HF clock 5. | |
| #define | CLK_HF6 (6U) |
| HF clock 6. | |
| #define | CLK_HF7 (7U) |
| HF clock 7. | |
| #define | CLK_HF8 (8U) |
| HF clock 8. | |
| #define | CLK_HF9 (9U) |
| HF clock 9. | |
| #define | CLK_HF10 (10U) |
| HF clock 10. | |
| #define | CLK_HF11 (11U) |
| HF clock 11. | |
| #define | CLK_HF12 (12U) |
| HF clock 12. | |
| #define | CLK_HF13 (13U) |
| HF clock 13. | |
| #define CLK_HF0 (0U) |
#include <zephyr/drivers/clock_control/clock_control_ifx_cat1.h>
HF clock 0.
| #define CLK_HF1 (1U) |
#include <zephyr/drivers/clock_control/clock_control_ifx_cat1.h>
HF clock 1.
| #define CLK_HF10 (10U) |
#include <zephyr/drivers/clock_control/clock_control_ifx_cat1.h>
HF clock 10.
| #define CLK_HF11 (11U) |
#include <zephyr/drivers/clock_control/clock_control_ifx_cat1.h>
HF clock 11.
| #define CLK_HF12 (12U) |
#include <zephyr/drivers/clock_control/clock_control_ifx_cat1.h>
HF clock 12.
| #define CLK_HF13 (13U) |
#include <zephyr/drivers/clock_control/clock_control_ifx_cat1.h>
HF clock 13.
| #define CLK_HF2 (2U) |
#include <zephyr/drivers/clock_control/clock_control_ifx_cat1.h>
HF clock 2.
| #define CLK_HF3 (3U) |
#include <zephyr/drivers/clock_control/clock_control_ifx_cat1.h>
HF clock 3.
| #define CLK_HF4 (4U) |
#include <zephyr/drivers/clock_control/clock_control_ifx_cat1.h>
HF clock 4.
| #define CLK_HF5 (5U) |
#include <zephyr/drivers/clock_control/clock_control_ifx_cat1.h>
HF clock 5.
| #define CLK_HF6 (6U) |
#include <zephyr/drivers/clock_control/clock_control_ifx_cat1.h>
HF clock 6.
| #define CLK_HF7 (7U) |
#include <zephyr/drivers/clock_control/clock_control_ifx_cat1.h>
HF clock 7.
| #define CLK_HF8 (8U) |
#include <zephyr/drivers/clock_control/clock_control_ifx_cat1.h>
HF clock 8.
| #define CLK_HF9 (9U) |
#include <zephyr/drivers/clock_control/clock_control_ifx_cat1.h>
HF clock 9.
| enum ifx_cat1_clock_block |
#include <zephyr/drivers/clock_control/clock_control_ifx_cat1.h>
CAT1 clock block (source or domain) selector.
#include <zephyr/drivers/clock_control/clock_control_ifx_cat1.h>
Get the frequency of a clock identified by its Devicetree ordinal.
| dt_ord | Devicetree ordinal (dependency ordinal) of the clock node. | |
| [out] | frequency | Resulting clock frequency, in Hz. |
| 0 | on success. |
| -errno | Negative error code on failure. |
|
inlinestatic |
#include <zephyr/drivers/clock_control/clock_control_ifx_cat1.h>
Assign a divider to a peripheral clock destination.
| clk_dest | Peripheral clock destination. |
| _clock | Clock descriptor. |
|
inlinestatic |
#include <zephyr/drivers/clock_control/clock_control_ifx_cat1.h>
Enable the divider associated with a peripheral clock.
| clk_dest | Peripheral clock destination. |
| _clock | Clock descriptor. |
|
inlinestatic |
#include <zephyr/drivers/clock_control/clock_control_ifx_cat1.h>
Get the frequency of a peripheral clock divider.
| clk_dest | Peripheral clock destination. |
| _clock | Clock descriptor. |
#include <zephyr/drivers/clock_control/clock_control_ifx_cat1.h>
Map a peripheral group index to the HF clock that sources it.
Fallback for SoC families that do not yet implement this mapping. Always returns -EINVAL.
| peri_group | Peripheral group index (unused). |
|
inlinestatic |
#include <zephyr/drivers/clock_control/clock_control_ifx_cat1.h>
Set the integer divider for a peripheral clock.
| clk_dest | Peripheral clock destination. |
| _clock | Clock descriptor. |
| div | Integer divider value. |
|
inlinestatic |
#include <zephyr/drivers/clock_control/clock_control_ifx_cat1.h>
Set the fractional divider for a peripheral clock.
| clk_dest | Peripheral clock destination. |
| _clock | Clock descriptor. |
| div_int | Integer part of the divider. |
| div_frac | Fractional part of the divider. |