|
AM243x MCU+ SDK
08.06.00
|
|
Go to the documentation of this file.
46 #include <sdl/include/sdl_types.h>
47 #include <sdl/include/hw_types.h>
49 #include <sdl/dcc/v0/sdlr_dcc2.h>
50 #include <sdl/dcc/v0/soc/sdl_dcc_soc.h>
63 #define DCC_SRC0_COUNT_MAX (0xFFFFFU)
68 #define DCC_SRC0_VALID_MAX (0x0FFFFU)
73 #define DCC_SRC1_COUNT_MAX (0xFFFFFU)
75 #define DCC_MIN_CLK0_VLD_SEED (4u)
80 #define SDL_DCC_CLK0_SRC_NUM (3u)
85 #define SDL_DCC_CLK1_SRC_NUM (10u)
90 #define SDL_DCC_MODES_NUM (3u)
104 #define SDL_DCC_MODE_SINGLE_SHOT_1 (SDL_DCC2_DCCGCTRL_SINGLESHOT_MODE1)
106 #define SDL_DCC_MODE_SINGLE_SHOT_2 (SDL_DCC2_DCCGCTRL_SINGLESHOT_MODE2)
108 #define SDL_DCC_MODE_CONTINUOUS (SDL_DCC2_DCCGCTRL_SINGLESHOT_DISABLE)
122 #define SDL_DCC_CLK0_SRC_CLOCK0_0 (SDL_DCC2_DCCCLKSRC0_CLKSRC0_0)
124 #define SDL_DCC_CLK0_SRC_CLOCK0_1 (SDL_DCC2_DCCCLKSRC0_CLKSRC0_1)
126 #define SDL_DCC_CLK0_SRC_CLOCK0_2 (SDL_DCC2_DCCCLKSRC0_CLKSRC0_2)
139 #define SDL_DCC_CLK1_SRC_CLOCK1 (SDL_DCC2_DCCCLKSRC1_CLKSRC_0)
141 #define SDL_DCC_CLK1_SRC_CLOCKSRC0 (SDL_DCC2_DCCCLKSRC1_CLKSRC_1)
143 #define SDL_DCC_CLK1_SRC_CLOCKSRC1 (SDL_DCC2_DCCCLKSRC1_CLKSRC_2)
145 #define SDL_DCC_CLK1_SRC_CLOCKSRC2 (SDL_DCC2_DCCCLKSRC1_CLKSRC_3)
147 #define SDL_DCC_CLK1_SRC_CLOCKSRC3 (SDL_DCC2_DCCCLKSRC1_CLKSRC_4)
149 #define SDL_DCC_CLK1_SRC_CLOCKSRC4 (SDL_DCC2_DCCCLKSRC1_CLKSRC_5)
151 #define SDL_DCC_CLK1_SRC_CLOCKSRC5 (SDL_DCC2_DCCCLKSRC1_CLKSRC_6)
153 #define SDL_DCC_CLK1_SRC_CLOCKSRC6 (SDL_DCC2_DCCCLKSRC1_CLKSRC_7)
155 #define SDL_DCC_CLK1_SRC_CLOCKSRC7 (SDL_DCC2_DCCCLKSRC1_CLKSRC_8)
157 #define SDL_DCC_CLK1_SRC_FICLK (SDL_DCC2_DCCCLKSRC1_CLKSRC_OTHER)
171 #define SDL_DCC_INTERRUPT_ERR (0x0U)
173 #define SDL_DCC_INTERRUPT_DONE (0x1U)
int32_t SDL_DCC_verifyConfig(SDL_DCC_Inst instance, const SDL_DCC_Config *pConfig)
This API is used to verify the configuration for DCC module.
uint32_t DCC_CLKSRC1
Definition: dcc/v0/sdl_dcc.h:237
int32_t SDL_DCC_configure(SDL_DCC_Inst instance, const SDL_DCC_Config *pConfig)
This API is used to configure DCC module.
uint32_t clk0Valid
Definition: dcc/v0/sdl_dcc.h:218
uint32_t clk0Seed
Definition: dcc/v0/sdl_dcc.h:197
int32_t SDL_DCC_enableIntr(SDL_DCC_Inst instance, SDL_DCC_IntrType intr)
This API is used to Enable the interrupts.
int32_t SDL_DCC_disableIntr(SDL_DCC_Inst instance, SDL_DCC_IntrType intr)
This API is used to Disable the interrupts.
int32_t SDL_DCC_enable(SDL_DCC_Inst instance)
This API is used to enable the DCC module.
uint32_t SDL_DCC_Mode
Enum to select the DCC Operation Mode. DCC can either operate in single shot or continuous mode.
Definition: dcc/v0/sdl_dcc.h:102
uint32_t SDL_DCC_IntrType
Enum for DCC interrupts.
Definition: dcc/v0/sdl_dcc.h:169
Structure containing DCC Static Registers.
Definition: dcc/v0/sdl_dcc.h:228
int32_t SDL_DCC_disable(SDL_DCC_Inst instance)
This API is used to disable the DCC module.
uint32_t clk1Cnt
Definition: dcc/v0/sdl_dcc.h:220
bool errIntr
Definition: dcc/v0/sdl_dcc.h:212
bool doneIntr
Definition: dcc/v0/sdl_dcc.h:210
SDL_DCC_Config config
Definition: dcc/v0/sdl_dcc.h:214
uint32_t clk1Seed
Definition: dcc/v0/sdl_dcc.h:201
uint32_t DCC_CNTSEED1
Definition: dcc/v0/sdl_dcc.h:235
int32_t SDL_DCC_clearIntr(SDL_DCC_Inst instance, SDL_DCC_IntrType intr)
This API is used to clear the interrupts.
SDL_DCC_Inst
Enum for different DCC module instances supported.
Definition: sdl_soc_dcc.h:67
uint32_t DCC_VALIDSEED0
Definition: dcc/v0/sdl_dcc.h:233
Structure containing parameters for DCC module configuration.
Definition: dcc/v0/sdl_dcc.h:184
uint32_t clk0Cnt
Definition: dcc/v0/sdl_dcc.h:216
int32_t SDL_DCC_getStatus(SDL_DCC_Inst instance, SDL_DCC_Status *pStatus)
This API is used to get the stauts of DCC module.
SDL_DCC_ClkSrc1 clk1Src
Definition: dcc/v0/sdl_dcc.h:193
uint32_t DCC_CNTSEED0
Definition: dcc/v0/sdl_dcc.h:231
uint32_t DCC_REV
Definition: dcc/v0/sdl_dcc.h:229
SDL_DCC_Mode mode
Definition: dcc/v0/sdl_dcc.h:185
int32_t SDL_DCC_getStaticRegs(SDL_DCC_Inst instance, SDL_DCC_StaticRegs *pStaticRegs)
This API is used to get the value of static registers for DCC module.
uint32_t SDL_DCC_ClkSrc0
Enum to select the COUNT0 clock source.
Definition: dcc/v0/sdl_dcc.h:120
uint32_t clk0ValidSeed
Definition: dcc/v0/sdl_dcc.h:199
uint32_t SDL_DCC_ClkSrc1
Enum to select the COUNT1 clock source.
Definition: dcc/v0/sdl_dcc.h:138
uint32_t DCC_CLKSRC0
Definition: dcc/v0/sdl_dcc.h:239
SDL_DCC_ClkSrc0 clk0Src
Definition: dcc/v0/sdl_dcc.h:189
Structure containing DCC status.
Definition: dcc/v0/sdl_dcc.h:209