Go to the source code of this file.
DCC Operation Mode | |
#define | SDL_DCC_MODE_SINGLE_SHOT_1 (SDL_DCC2_DCCGCTRL_SINGLESHOT_MODE1) |
#define | SDL_DCC_MODE_SINGLE_SHOT_2 (SDL_DCC2_DCCGCTRL_SINGLESHOT_MODE2) |
#define | SDL_DCC_MODE_CONTINUOUS (SDL_DCC2_DCCGCTRL_SINGLESHOT_DISABLE) |
typedef uint32_t | SDL_DCC_Mode |
Enum to select the DCC Operation Mode. DCC can either operate in single shot or continuous mode. More... | |
DCC Clock source of COUNT0 | |
#define | SDL_DCC_CLK0_SRC_CLOCK0_0 (SDL_DCC2_DCCCLKSRC0_CLKSRC0_0) |
#define | SDL_DCC_CLK0_SRC_CLOCK0_1 (SDL_DCC2_DCCCLKSRC0_CLKSRC0_1) |
#define | SDL_DCC_CLK0_SRC_CLOCK0_2 (SDL_DCC2_DCCCLKSRC0_CLKSRC0_2) |
typedef uint32_t | SDL_DCC_ClkSrc0 |
Enum to select the COUNT0 clock source. More... | |
DCC Clock source of COUNT1 | |
#define | SDL_DCC_CLK1_SRC_CLOCK1 (SDL_DCC2_DCCCLKSRC1_CLKSRC_0) |
#define | SDL_DCC_CLK1_SRC_CLOCKSRC0 (SDL_DCC2_DCCCLKSRC1_CLKSRC_1) |
#define | SDL_DCC_CLK1_SRC_CLOCKSRC1 (SDL_DCC2_DCCCLKSRC1_CLKSRC_2) |
#define | SDL_DCC_CLK1_SRC_CLOCKSRC2 (SDL_DCC2_DCCCLKSRC1_CLKSRC_3) |
#define | SDL_DCC_CLK1_SRC_CLOCKSRC3 (SDL_DCC2_DCCCLKSRC1_CLKSRC_4) |
#define | SDL_DCC_CLK1_SRC_CLOCKSRC4 (SDL_DCC2_DCCCLKSRC1_CLKSRC_5) |
#define | SDL_DCC_CLK1_SRC_CLOCKSRC5 (SDL_DCC2_DCCCLKSRC1_CLKSRC_6) |
#define | SDL_DCC_CLK1_SRC_CLOCKSRC6 (SDL_DCC2_DCCCLKSRC1_CLKSRC_7) |
#define | SDL_DCC_CLK1_SRC_CLOCKSRC7 (SDL_DCC2_DCCCLKSRC1_CLKSRC_8) |
#define | SDL_DCC_CLK1_SRC_FICLK (SDL_DCC2_DCCCLKSRC1_CLKSRC_OTHER) |
typedef uint32_t | SDL_DCC_ClkSrc1 |
Enum to select the COUNT1 clock source. More... | |
DCC Interrupt type | |
#define | SDL_DCC_INTERRUPT_ERR (0x0U) |
#define | SDL_DCC_INTERRUPT_DONE (0x1U) |
typedef uint32_t | SDL_DCC_IntrType |
Enum for DCC interrupts. More... | |
Data Structures | |
struct | SDL_DCC_Config |
Structure containing parameters for DCC module configuration. More... | |
struct | SDL_DCC_Status |
Structure containing DCC status. More... | |
struct | SDL_DCC_StaticRegs |
Structure containing DCC Static Registers. More... | |
Macros | |
#define | DCC_SRC0_COUNT_MAX (0xFFFFFU) |
Macro defines maximum value of count for clock source 0. More... | |
#define | DCC_SRC0_VALID_MAX (0x0FFFFU) |
Macro defines maximum value of valid count for clock source 0. More... | |
#define | DCC_SRC1_COUNT_MAX (0xFFFFFU) |
Macro defines maximum value of count for clock source 1. More... | |
#define | DCC_MIN_CLK0_VLD_SEED (4u) |
#define | SDL_DCC_CLK0_SRC_NUM (3u) |
The number of valid Clk0 Src options. More... | |
#define | SDL_DCC_CLK1_SRC_NUM (10u) |
The number of valid clk1 Src options. More... | |
#define | SDL_DCC_MODES_NUM (3u) |
The number of valid mode options. More... | |
Functions | |
int32_t | SDL_DCC_configure (SDL_DCC_Inst instance, const SDL_DCC_Config *pConfig) |
This API is used to configure DCC module. More... | |
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. More... | |
int32_t | SDL_DCC_enable (SDL_DCC_Inst instance) |
This API is used to enable the DCC module. More... | |
int32_t | SDL_DCC_disable (SDL_DCC_Inst instance) |
This API is used to disable the DCC module. More... | |
int32_t | SDL_DCC_getStatus (SDL_DCC_Inst instance, SDL_DCC_Status *pStatus) |
This API is used to get the stauts of DCC module. More... | |
int32_t | SDL_DCC_enableIntr (SDL_DCC_Inst instance, SDL_DCC_IntrType intr) |
This API is used to Enable the interrupts. More... | |
int32_t | SDL_DCC_disableIntr (SDL_DCC_Inst instance, SDL_DCC_IntrType intr) |
This API is used to Disable the interrupts. More... | |
int32_t | SDL_DCC_clearIntr (SDL_DCC_Inst instance, SDL_DCC_IntrType intr) |
This API is used to clear the interrupts. More... | |
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. More... | |