GWC APIs. More...
Data Structures | |
| struct | gwc_ch_config |
| gwc channel config More... | |
| struct | gwc_config |
| gwc config More... | |
Typedefs | |
| typedef struct gwc_ch_config | gwc_ch_config_t |
| gwc channel config More... | |
| typedef enum gwc_clk_pol | gwc_clk_pol_t |
| gwc clk polarity More... | |
| typedef struct gwc_config | gwc_config_t |
| gwc config More... | |
Enumerations | |
| enum | gwc_clk_pol { gwc_clk_pol_normal = 0 , gwc_clk_pol_invert } |
| gwc clk polarity More... | |
Functions | |
| void | gwc_get_default_config (gwc_config_t *cfg) |
| init the gwc More... | |
| void | gwc_init (GWC_Type *ptr, gwc_config_t *cfg) |
| init the gwc More... | |
| void | gwc_enable (GWC_Type *ptr) |
| enable the gwc More... | |
| void | gwc_disable (GWC_Type *ptr) |
| disable the gwc More... | |
| static void | gwc_enable_interrupt (GWC_Type *ptr, uint32_t mask) |
| enable interrupts More... | |
| static void | gwc_disable_interrupt (GWC_Type *ptr, uint32_t mask) |
| disable interrupts. More... | |
| static uint32_t | gwc_get_status (GWC_Type *ptr) |
| get gwc status flag More... | |
| static void | gwc_clear_status (GWC_Type *ptr, uint32_t mask) |
| clear gwc status flag More... | |
| void | gwc_freeze_interrupt_control (GWC_Type *ptr) |
| disable change of interrupt masks More... | |
| void | gwc_ch_init (GWC_Type *ptr, uint8_t ch_index, gwc_ch_config_t *cfg) |
| init gwc channel More... | |
| static void | gwc_ch_enable (GWC_Type *ptr, uint8_t ch_index) |
| enable gwc channel More... | |
| static void | gwc_ch_disable (GWC_Type *ptr, uint8_t ch_index) |
| disable gwc channel More... | |
| static uint32_t | gwc_ch_get_crc (GWC_Type *ptr, uint8_t ch_index) |
| get gwc channel calc crc More... | |
GWC APIs.
| typedef struct gwc_ch_config gwc_ch_config_t |
#include <drivers/inc/hpm_gwc_drv.h>
gwc channel config
| typedef enum gwc_clk_pol gwc_clk_pol_t |
#include <drivers/inc/hpm_gwc_drv.h>
gwc clk polarity
| typedef struct gwc_config gwc_config_t |
#include <drivers/inc/hpm_gwc_drv.h>
gwc config
| enum gwc_clk_pol |
#include <drivers/inc/hpm_gwc_drv.h>
gwc clk polarity
| Enumerator | |
|---|---|
| gwc_clk_pol_normal | |
| gwc_clk_pol_invert | |
|
inlinestatic |
#include <drivers/inc/hpm_gwc_drv.h>
disable gwc channel
| [in] | ptr | GWC base address |
| [in] | ch_index | channel index ref GWC_CHANNEL_CHn |
|
inlinestatic |
#include <drivers/inc/hpm_gwc_drv.h>
enable gwc channel
| [in] | ptr | GWC base address |
| [in] | ch_index | channel index ref GWC_CHANNEL_CHn |
|
inlinestatic |
#include <drivers/inc/hpm_gwc_drv.h>
get gwc channel calc crc
| [in] | ptr | GWC base address |
| [in] | ch_index | channel index ref GWC_CHANNEL_CHn |
| void gwc_ch_init | ( | GWC_Type * | ptr, |
| uint8_t | ch_index, | ||
| gwc_ch_config_t * | cfg | ||
| ) |
#include <drivers/inc/hpm_gwc_drv.h>
init gwc channel
| [in] | ptr | GWC base address |
| [in] | ch_index | channel index ref GWC_CHANNEL_CHn |
| [in] | cfg | config of gwc channel |
|
inlinestatic |
#include <drivers/inc/hpm_gwc_drv.h>
clear gwc status flag
| [in] | ptr | GWC base address |
| [in] | mask | logical OR'ed of GWC_IRQ_STS_XXX_STS_MASK |
| void gwc_disable | ( | GWC_Type * | ptr | ) |
|
inlinestatic |
#include <drivers/inc/hpm_gwc_drv.h>
disable interrupts.
| [in] | ptr | GWC base address |
| [in] | mask | mask of interrupt events that would be enabled. GWC_IRQ_MASK_ERR_MASK_MASK GWC_IRQ_MASK_FUNC_MASK_MASK |
| void gwc_enable | ( | GWC_Type * | ptr | ) |
|
inlinestatic |
#include <drivers/inc/hpm_gwc_drv.h>
enable interrupts
| [in] | ptr | GWC base address |
| [in] | mask | Mask of interrupt events that would be enabled GWC_IRQ_MASK_ERR_MASK_MASK GWC_IRQ_MASK_FUNC_MASK_MASK |
| void gwc_freeze_interrupt_control | ( | GWC_Type * | ptr | ) |
#include <drivers/inc/hpm_gwc_drv.h>
disable change of interrupt masks
Once this function is called, the interrupt enabled status could not be changed until reset.
| [in] | ptr | GWC base address |
| void gwc_get_default_config | ( | gwc_config_t * | cfg | ) |
|
inlinestatic |
#include <drivers/inc/hpm_gwc_drv.h>
get gwc status flag
| [in] | ptr | GWC base address |
| void gwc_init | ( | GWC_Type * | ptr, |
| gwc_config_t * | cfg | ||
| ) |
#include <drivers/inc/hpm_gwc_drv.h>
init the gwc
| [in] | ptr | GWC base address |
| [in] | cfg | GWC config gwc_config_t |