|
VSF Documented
|
#include "hal/driver/driver.h"Macros | |
| #define | VSF_EXTI_CFG_FUNCTION_RENAME DISABLED |
Functions | |
| vsf_err_t | vsf_exti_config_channels (vsf_exti_t *exti_ptr, vsf_exti_channel_mask_t channel_mask, vsf_exti_channel_cfg_t *cfg_ptr) |
| Configure one or more channels of the exti instance. | |
| vsf_err_t | vsf_exti_init (vsf_exti_t *exti_ptr) |
| Initialize a EXTI instance. | |
| void | vsf_exti_fini (vsf_exti_t *exti_ptr) |
| Finalize a EXTI instance. | |
| vsf_exti_status_t | vsf_exti_status (vsf_exti_t *exti_ptr) |
| Get the status of EXTI instance. | |
| vsf_exti_capability_t | vsf_exti_capability (vsf_exti_t *exti_ptr) |
| Get the capability of exti instance. | |
| vsf_err_t | vsf_exti_trigger (vsf_exti_t *exti_ptr, vsf_exti_channel_mask_t channel_mask) |
| Trigger EXTI channels. | |
| vsf_err_t | vsf_exti_irq_enable (vsf_exti_t *exti_ptr, vsf_exti_channel_mask_t channel_mask) |
| Enable interrupt of one or more channels. | |
| vsf_err_t | vsf_exti_irq_disable (vsf_exti_t *exti_ptr, vsf_exti_channel_mask_t channel_mask) |
| Disable interrupt of one or more channels. | |
| #define VSF_EXTI_CFG_FUNCTION_RENAME DISABLED |
| vsf_err_t vsf_exti_config_channels | ( | vsf_exti_t * | exti_ptr, |
| vsf_exti_channel_mask_t | channel_mask, | ||
| vsf_exti_channel_cfg_t * | cfg_ptr | ||
| ) |
Configure one or more channels of the exti instance.
| [in] | exti_ptr | a pointer to structure vsf_exti_t |
| [in] | channel_mask | channel mask, each channel corresponds to one bit, the value of this bit 1 means the configuration will be applied to the corresponding channel |
| [in] | cfg_ptr | a pointer to structure vsf_exti_channel_cfg_t |
| vsf_err_t vsf_exti_init | ( | vsf_exti_t * | exti_ptr | ) |
Initialize a EXTI instance.
| [in] | exti_ptr | a pointer to structure vsf_exti_t |
| void vsf_exti_fini | ( | vsf_exti_t * | exti_ptr | ) |
| vsf_exti_status_t vsf_exti_status | ( | vsf_exti_t * | exti_ptr | ) |
Get the status of EXTI instance.
| [in] | exti_ptr | a pointer to structure vsf_exti_t |
| vsf_exti_capability_t vsf_exti_capability | ( | vsf_exti_t * | exti_ptr | ) |
Get the capability of exti instance.
| [in] | exti_ptr | pointer to the structure vsf_exti_t, refer to vsf_exti_t |
| vsf_err_t vsf_exti_trigger | ( | vsf_exti_t * | exti_ptr, |
| vsf_exti_channel_mask_t | channel_mask | ||
| ) |
Trigger EXTI channels.
| [in] | exti_ptr | a pointer to structure vsf_exti_t |
| [in] | channel_mask | channel mask, each channel corresponds to one bit, the value of this bit 1 means the configuration will be applied to the corresponding channel |
| vsf_err_t vsf_exti_irq_enable | ( | vsf_exti_t * | exti_ptr, |
| vsf_exti_channel_mask_t | channel_mask | ||
| ) |
Enable interrupt of one or more channels.
| [in] | exti_ptr | a pointer to structure vsf_exti_t |
| [in] | channel_mask | channel mask, each channel corresponds to one bit, 1 means the corresponding channel needs to be enabled, 0 means the corresponding channel does not need to be enabled |
| vsf_err_t vsf_exti_irq_disable | ( | vsf_exti_t * | exti_ptr, |
| vsf_exti_channel_mask_t | channel_mask | ||
| ) |
Disable interrupt of one or more channels.
| [in] | exti_ptr | a pointer to structure vsf_exti_t |
| [in] | channel_mask | channel mask, each channel corresponds to one bit, 1 means the corresponding channel needs to be disabled, 0 means the corresponding channel does not need to be disabled |