void gwc_disable(GWC_Type *ptr)
disable the gwc
Definition: hpm_gwc_drv.c:26
static void gwc_ch_enable(GWC_Type *ptr, uint8_t ch_index)
enable gwc channel
Definition: hpm_gwc_drv.h:161
static uint32_t gwc_get_status(GWC_Type *ptr)
get gwc status flag
Definition: hpm_gwc_drv.h:118
static void gwc_disable_interrupt(GWC_Type *ptr, uint32_t mask)
disable interrupts.
Definition: hpm_gwc_drv.h:107
static void gwc_clear_status(GWC_Type *ptr, uint32_t mask)
clear gwc status flag
Definition: hpm_gwc_drv.h:129
void gwc_init(GWC_Type *ptr, gwc_config_t *cfg)
init the gwc
Definition: hpm_gwc_drv.c:16
void gwc_get_default_config(gwc_config_t *cfg)
init the gwc
Definition: hpm_gwc_drv.c:11
static uint32_t gwc_ch_get_crc(GWC_Type *ptr, uint8_t ch_index)
get gwc channel calc crc
Definition: hpm_gwc_drv.h:185
gwc_clk_pol
gwc clk polarity
Definition: hpm_gwc_drv.h:39
struct gwc_config gwc_config_t
gwc config
void gwc_freeze_interrupt_control(GWC_Type *ptr)
disable change of interrupt masks
Definition: hpm_gwc_drv.c:31
static void gwc_ch_disable(GWC_Type *ptr, uint8_t ch_index)
disable gwc channel
Definition: hpm_gwc_drv.h:173
static void gwc_enable_interrupt(GWC_Type *ptr, uint32_t mask)
enable interrupts
Definition: hpm_gwc_drv.h:94
enum gwc_clk_pol gwc_clk_pol_t
gwc clk polarity
struct gwc_ch_config gwc_ch_config_t
gwc channel config
void gwc_enable(GWC_Type *ptr)
enable the gwc
Definition: hpm_gwc_drv.c:21
void gwc_ch_init(GWC_Type *ptr, uint8_t ch_index, gwc_ch_config_t *cfg)
init gwc channel
Definition: hpm_gwc_drv.c:36
@ gwc_clk_pol_normal
Definition: hpm_gwc_drv.h:40
@ gwc_clk_pol_invert
Definition: hpm_gwc_drv.h:41
#define GWC_CHANNEL_CFG0_ENABLE_MASK
Definition: hpm_gwc_regs.h:122
#define GWC_CHANNEL_CH15
Definition: hpm_gwc_regs.h:206
Definition: hpm_gwc_regs.h:12
__RW uint32_t CALCRC
Definition: hpm_gwc_regs.h:21
__RW uint32_t IRQ_MASK
Definition: hpm_gwc_regs.h:14
__RW uint32_t CFG0
Definition: hpm_gwc_regs.h:18
__RW uint32_t IRQ_STS
Definition: hpm_gwc_regs.h:15
struct GWC_Type::@598 CHANNEL[16]
gwc channel config
Definition: hpm_gwc_drv.h:27
uint16_t end_row
Definition: hpm_gwc_drv.h:32
uint32_t ref_crc
Definition: hpm_gwc_drv.h:33
uint16_t end_col
Definition: hpm_gwc_drv.h:31
uint16_t start_row
Definition: hpm_gwc_drv.h:30
bool freeze
Definition: hpm_gwc_drv.h:28
uint16_t start_col
Definition: hpm_gwc_drv.h:29
gwc config
Definition: hpm_gwc_drv.h:47
gwc_clk_pol_t clk_pol
Definition: hpm_gwc_drv.h:48