VSF Documented
|
Go to the source code of this file.
Data Structures | |
struct | vsf_wdt_isr_t |
struct | vsf_wdt_cfg_t |
wdt configuration More... | |
struct | vsf_wdt_capability_t |
struct | vsf_wdt_op_t |
struct | vsf_wdt_t |
Typedefs | |
typedef enum vsf_wdt_mode_t | vsf_wdt_mode_t |
typedef struct vsf_wdt_t | vsf_wdt_t |
typedef void | vsf_wdt_isr_handler_t(void *target_ptr, vsf_wdt_t *wdt_ptr) |
typedef struct vsf_wdt_isr_t | vsf_wdt_isr_t |
typedef struct vsf_wdt_cfg_t | vsf_wdt_cfg_t |
wdt configuration | |
typedef struct vsf_wdt_capability_t | vsf_wdt_capability_t |
typedef struct vsf_wdt_op_t | vsf_wdt_op_t |
Enumerations | |
enum | vsf_wdt_mode_t { VSF_WDT_MODE_NO_EARLY_WAKEUP = (0 << 0) , VSF_WDT_MODE_EARLY_WAKEUP = (1 << 0) , VSF_WDT_MODE_RESET_NONE = (0 << 1) , VSF_WDT_MODE_RESET_CPU = (1 << 1) , VSF_WDT_MODE_RESET_SOC = (2 << 1) } |
enum | { VSF_WDT_MODE_EARLY_WAKEUP_COUNT = 2 , VSF_WDT_MODE_EARLY_WAKEUP_MASK , VSF_WDT_MODE_RESET_COUNT = 3 , VSF_WDT_MODE_RESET_MASK , VSF_WDT_MODE_MASK_COUNT = 2 , VSF_WDT_MODE_ALL_BITS_MASK } |
Functions | |
vsf_err_t | vsf_wdt_init (vsf_wdt_t *wdt_ptr, vsf_wdt_cfg_t *cfg_ptr) |
initialize a wdt instance. | |
void | vsf_wdt_fini (vsf_wdt_t *wdt_ptr) |
finalize a wdt instance. | |
fsm_rt_t | vsf_wdt_enable (vsf_wdt_t *wdt_ptr) |
enable interrupt masks of wdt instance. | |
fsm_rt_t | vsf_wdt_disable (vsf_wdt_t *wdt_ptr) |
disable interrupt masks of wdt instance. | |
vsf_wdt_capability_t | vsf_wdt_capability (vsf_wdt_t *wdt_ptr) |
get the capability of wdt instance. | |
void | vsf_wdt_feed (vsf_wdt_t *wdt_ptr) |
wdt feed | |
#define VSF_WDT_CFG_MULTI_CLASS ENABLED |
#define VSF_WDT_CFG_PREFIX vsf |
#define VSF_WDT_CFG_FUNCTION_RENAME ENABLED |
#define VSF_WDT_CFG_REIMPLEMENT_TYPE_MODE DISABLED |
#define VSF_WDT_CFG_REIMPLEMENT_TYPE_IRQ_MASK DISABLED |
#define VSF_WDT_CFG_REIMPLEMENT_TYPE_CFG DISABLED |
Redefine struct vsf_wdt_cfg_t. The vsf_wdt_isr_handler_t type also needs to be redefined For compatibility, members should not be deleted when struct vsf_wdt_cfg_t redefining.
#define VSF_WDT_CFG_REIMPLEMENT_TYPE_CAPABILITY DISABLED |
Redefine struct vsf_wdt_capability_t. For compatibility, members should not be deleted when struct vsf_wdt_capability_t redefining.
#define VSF_WDT_CFG_INHERT_HAL_CAPABILITY ENABLED |
#define VSF_WDT_APIS | ( | __prefix_name | ) |
#define __VSF_HAL_TEMPLATE_API VSF_HAL_TEMPLATE_API_FP |
#define __vsf_wdt_t VSF_MCONNECT(VSF_WDT_CFG_PREFIX, _wdt_t) |
#define vsf_wdt_init | ( | __WDT, | |
... | |||
) | VSF_MCONNECT(VSF_WDT_CFG_PREFIX, _wdt_init) ((__vsf_wdt_t *)(__WDT), ##__VA_ARGS__) |
#define vsf_wdt_fini | ( | __WDT | ) | VSF_MCONNECT(VSF_WDT_CFG_PREFIX, _wdt_fini) ((__vsf_wdt_t *)(__WDT)) |
#define vsf_wdt_enable | ( | __WDT | ) | VSF_MCONNECT(VSF_WDT_CFG_PREFIX, _wdt_enable) ((__vsf_wdt_t *)(__WDT)) |
#define vsf_wdt_disable | ( | __WDT | ) | VSF_MCONNECT(VSF_WDT_CFG_PREFIX, _wdt_disable) ((__vsf_wdt_t *)(__WDT)) |
#define vsf_wdt_capability | ( | __WDT | ) | VSF_MCONNECT(VSF_WDT_CFG_PREFIX, _wdt_capability) ((__vsf_wdt_t *)(__WDT)) |
#define vsf_wdt_feed | ( | __WDT, | |
... | |||
) | VSF_MCONNECT(VSF_WDT_CFG_PREFIX, _wdt_feed) ((__vsf_wdt_t *)(__WDT)) |
typedef enum vsf_wdt_mode_t vsf_wdt_mode_t |
typedef void vsf_wdt_isr_handler_t(void *target_ptr, vsf_wdt_t *wdt_ptr) |
typedef struct vsf_wdt_isr_t vsf_wdt_isr_t |
typedef struct vsf_wdt_cfg_t vsf_wdt_cfg_t |
wdt configuration
typedef struct vsf_wdt_capability_t vsf_wdt_capability_t |
typedef struct vsf_wdt_op_t vsf_wdt_op_t |
enum vsf_wdt_mode_t |
anonymous enum |
|
extern |
initialize a wdt instance.
[in] | wdt_ptr | a pointer to structure vsf_wdt_t |
[in] | cfg_ptr | a pointer to structure vsf_wdt_cfg_t |
|
extern |
enable interrupt masks of wdt instance.
[in] | wdt_ptr | a pointer to structure vsf_wdt_t |
[in] | irq_mask | one or more value of enum vsf_wdt_irq_mask_t |
disable interrupt masks of wdt instance.
[in] | wdt_ptr | a pointer to structure vsf_wdt_t |
[in] | irq_mask | one or more value of enum vsf_wdt_irq_mask_t, vsf_wdt_irq_mask_t |
|
extern |
get the capability of wdt instance.
[in] | wdt_ptr | a pointer to structure vsf_wdt_t |