Zephyr Project API 4.2.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
clock_control_ifx_cat1.h File Reference
#include <cy_sysclk.h>
#include <cy_systick.h>

Go to the source code of this file.

Data Structures

struct  ifx_cat1_clock
 
struct  ifx_cat1_resource_inst
 

Macros

#define IFX_CAT1_PERIPHERAL_GROUP_GET_DIVIDER_TYPE(block)   ((cy_en_divider_types_t)((block) & 0x03))
 
#define IFX_CAT1_PERIPHERAL_GROUP_ADJUST(group, div)   (((group) << 2) | (div))
 
#define IFX_CAT1_CLOCK_BLOCK_PERI_GROUP(gr)
 24.5bit Peripheral Divider Group
 

Enumerations

enum  ifx_cat1_clock_block
 

Functions

int ifx_cat1_clock_control_get_frequency (uint32_t dt_ord, uint32_t *frequency)
 
en_clk_dst_t ifx_cat1_scb_get_clock_index (uint32_t block_num)
 
static cy_rslt_t ifx_cat1_utils_peri_pclk_enable_divider (en_clk_dst_t clk_dest, const struct ifx_cat1_clock *_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)
 
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)
 
static cy_rslt_t ifx_cat1_utils_peri_pclk_assign_divider (en_clk_dst_t clk_dest, const struct ifx_cat1_clock *_clock)
 

Macro Definition Documentation

◆ IFX_CAT1_CLOCK_BLOCK_PERI_GROUP

#define IFX_CAT1_CLOCK_BLOCK_PERI_GROUP (   gr)
Value:
IFX_CAT1_CLOCK_BLOCK_PERIPHERAL##gr##_8BIT = IFX_CAT1_PERIPHERAL_GROUP_ADJUST( \
(gr), CY_SYSCLK_DIV_8_BIT), \
IFX_CAT1_CLOCK_BLOCK_PERIPHERAL##gr##_16BIT = IFX_CAT1_PERIPHERAL_GROUP_ADJUST( \
(gr), CY_SYSCLK_DIV_16_BIT), \
IFX_CAT1_CLOCK_BLOCK_PERIPHERAL##gr##_16_5BIT = IFX_CAT1_PERIPHERAL_GROUP_ADJUST( \
(gr), CY_SYSCLK_DIV_16_5_BIT), \
IFX_CAT1_CLOCK_BLOCK_PERIPHERAL##gr##_24_5BIT = IFX_CAT1_PERIPHERAL_GROUP_ADJUST( \
(gr), CY_SYSCLK_DIV_24_5_BIT)
#define IFX_CAT1_PERIPHERAL_GROUP_ADJUST(group, div)
Definition clock_control_ifx_cat1.h:15

24.5bit Peripheral Divider Group

◆ IFX_CAT1_PERIPHERAL_GROUP_ADJUST

#define IFX_CAT1_PERIPHERAL_GROUP_ADJUST (   group,
  div 
)    (((group) << 2) | (div))

◆ IFX_CAT1_PERIPHERAL_GROUP_GET_DIVIDER_TYPE

#define IFX_CAT1_PERIPHERAL_GROUP_GET_DIVIDER_TYPE (   block)    ((cy_en_divider_types_t)((block) & 0x03))

Enumeration Type Documentation

◆ ifx_cat1_clock_block

Function Documentation

◆ ifx_cat1_clock_control_get_frequency()

int ifx_cat1_clock_control_get_frequency ( uint32_t  dt_ord,
uint32_t frequency 
)

◆ ifx_cat1_scb_get_clock_index()

en_clk_dst_t ifx_cat1_scb_get_clock_index ( uint32_t  block_num)

◆ ifx_cat1_utils_peri_pclk_assign_divider()

static cy_rslt_t ifx_cat1_utils_peri_pclk_assign_divider ( en_clk_dst_t  clk_dest,
const struct ifx_cat1_clock _clock 
)
inlinestatic

◆ ifx_cat1_utils_peri_pclk_enable_divider()

static cy_rslt_t ifx_cat1_utils_peri_pclk_enable_divider ( en_clk_dst_t  clk_dest,
const struct ifx_cat1_clock _clock 
)
inlinestatic

◆ ifx_cat1_utils_peri_pclk_set_divider()

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 
)
inlinestatic

◆ ifx_cat1_utils_peri_pclk_set_frac_divider()

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 
)
inlinestatic