VSF Documented
|
Go to the source code of this file.
Data Structures | |
struct | vsf_adc_channel_cfg_t |
adc channel configuration More... | |
struct | vsf_adc_isr_t |
struct | vsf_adc_cfg_t |
adc configuration More... | |
struct | vsf_adc_status_t |
struct | vsf_adc_capability_t |
struct | vsf_adc_op_t |
struct | vsf_adc_t |
Typedefs | |
typedef enum vsf_adc_mode_t | vsf_adc_mode_t |
typedef enum vsf_adc_channel_mode_t | vsf_adc_channel_mode_t |
typedef enum vsf_adc_irq_mask_t | vsf_adc_irq_mask_t |
typedef struct vsf_adc_channel_cfg_t | vsf_adc_channel_cfg_t |
adc channel configuration | |
typedef struct vsf_adc_t | vsf_adc_t |
typedef void | vsf_adc_isr_handler_t(void *target_ptr, vsf_adc_t *adc_ptr, vsf_adc_irq_mask_t irq_mask) |
typedef struct vsf_adc_isr_t | vsf_adc_isr_t |
typedef struct vsf_adc_cfg_t | vsf_adc_cfg_t |
adc configuration | |
typedef struct vsf_adc_status_t | vsf_adc_status_t |
typedef struct vsf_adc_capability_t | vsf_adc_capability_t |
typedef struct vsf_adc_op_t | vsf_adc_op_t |
Functions | |
vsf_err_t | vsf_adc_init (vsf_adc_t *adc_ptr, vsf_adc_cfg_t *cfg_ptr) |
initialize a adc instance. | |
void | vsf_adc_fini (vsf_adc_t *adc_ptr) |
finalize a adc instance. | |
fsm_rt_t | vsf_adc_enable (vsf_adc_t *adc_ptr) |
enable interrupt masks of adc instance. | |
fsm_rt_t | vsf_adc_disable (vsf_adc_t *adc_ptr) |
disable interrupt masks of adc instance. | |
void | vsf_adc_irq_enable (vsf_adc_t *adc_ptr, vsf_adc_irq_mask_t irq_mask) |
enable interrupt masks of adc instance. | |
void | vsf_adc_irq_disable (vsf_adc_t *adc_ptr, vsf_adc_irq_mask_t irq_mask) |
disable interrupt masks of adc instance. | |
vsf_adc_status_t | vsf_adc_status (vsf_adc_t *adc_ptr) |
get the status of adc instance. | |
vsf_adc_capability_t | vsf_adc_capability (vsf_adc_t *adc_ptr) |
get the capability of adc instance. | |
vsf_err_t | vsf_adc_channel_request_once (vsf_adc_t *adc_ptr, vsf_adc_channel_cfg_t *channel_cfg, void *buffer_ptr) |
adc request sampling once | |
vsf_err_t | vsf_adc_channel_config (vsf_adc_t *adc_ptr, vsf_adc_channel_cfg_t *channel_cfgs_ptr, uint32_t channel_cfgs_cnt) |
adc channel configuration | |
vsf_err_t | vsf_adc_channel_request (vsf_adc_t *adc_ptr, void *buffer_ptr, uint_fast32_t count) |
adc channel request | |
#define VSF_ADC_CFG_MULTI_CLASS ENABLED |
#define VSF_ADC_CFG_PREFIX vsf |
#define VSF_ADC_CFG_FUNCTION_RENAME ENABLED |
#define VSF_ADC_CFG_REIMPLEMENT_TYPE_MODE DISABLED |
#define VSF_ADC_CFG_REIMPLEMENT_TYPE_CHANNEL_MODE DISABLED |
#define VSF_ADC_CFG_REIMPLEMENT_TYPE_IRQ_MASK DISABLED |
#define VSF_ADC_CFG_REIMPLEMENT_TYPE_CHANNEL_CFG DISABLED |
Redefine struct vsf_adc_channel_cfg_t. For compatibility, members should not be deleted when struct vsf_adc_channel_cfg_t redefining.
#define VSF_ADC_CFG_REIMPLEMENT_TYPE_CFG DISABLED |
Redefine struct vsf_adc_cfg_t. The vsf_adc_isr_handler_t type also needs to be redefined For compatibility, members should not be deleted when struct vsf_adc_cfg_t redefining.
#define VSF_ADC_CFG_REIMPLEMENT_TYPE_CAPABILITY DISABLED |
Redefine struct vsf_adc_capability_t. For compatibility, members should not be deleted when struct vsf_adc_capability_t redefining.
#define VSF_ADC_CFG_INHERT_HAL_CAPABILITY ENABLED |
#define VSF_ADC_APIS | ( | __PREFIX_NAME | ) |
#define __VSF_HAL_TEMPLATE_API VSF_HAL_TEMPLATE_API_FP |
#define __vsf_adc_t VSF_MCONNECT(VSF_ADC_CFG_PREFIX, _adc_t) |
#define vsf_adc_init | ( | __ADC, | |
... | |||
) | VSF_MCONNECT(VSF_ADC_CFG_PREFIX, _adc_init) ((__vsf_adc_t *)(__ADC), ##__VA_ARGS__) |
#define vsf_adc_fini | ( | __ADC | ) | VSF_MCONNECT(VSF_ADC_CFG_PREFIX, _adc_fini) ((__vsf_adc_t *)(__ADC)) |
#define vsf_adc_enable | ( | __ADC | ) | VSF_MCONNECT(VSF_ADC_CFG_PREFIX, _adc_enable) ((__vsf_adc_t *)(__ADC)) |
#define vsf_adc_disable | ( | __ADC | ) | VSF_MCONNECT(VSF_ADC_CFG_PREFIX, _adc_disable) ((__vsf_adc_t *)(__ADC)) |
#define vsf_adc_status | ( | __ADC | ) | VSF_MCONNECT(VSF_ADC_CFG_PREFIX, _adc_status) ((__vsf_adc_t *)(__ADC)) |
#define vsf_adc_capability | ( | __ADC | ) | VSF_MCONNECT(VSF_ADC_CFG_PREFIX, _adc_capability) ((__vsf_adc_t *)(__ADC)) |
#define vsf_adc_irq_enable | ( | __ADC, | |
... | |||
) | VSF_MCONNECT(VSF_ADC_CFG_PREFIX, _adc_irq_enable) ((__vsf_adc_t *)(__ADC), ##__VA_ARGS__) |
#define vsf_adc_irq_disable | ( | __ADC, | |
... | |||
) | VSF_MCONNECT(VSF_ADC_CFG_PREFIX, _adc_irq_disable) ((__vsf_adc_t *)(__ADC), ##__VA_ARGS__) |
#define vsf_adc_channel_request_once | ( | __ADC, | |
... | |||
) | VSF_MCONNECT(VSF_ADC_CFG_PREFIX, _adc_channel_request_once) ((__vsf_adc_t *)(__ADC), ##__VA_ARGS__) |
#define vsf_adc_channel_config | ( | __ADC, | |
... | |||
) | VSF_MCONNECT(VSF_ADC_CFG_PREFIX, _adc_channel_config) ((__vsf_adc_t *)(__ADC), ##__VA_ARGS__) |
#define vsf_adc_channel_request | ( | __ADC, | |
... | |||
) | VSF_MCONNECT(VSF_ADC_CFG_PREFIX, _adc_channel_request) ((__vsf_adc_t *)(__ADC), ##__VA_ARGS__) |
typedef enum vsf_adc_mode_t vsf_adc_mode_t |
typedef enum vsf_adc_channel_mode_t vsf_adc_channel_mode_t |
typedef enum vsf_adc_irq_mask_t vsf_adc_irq_mask_t |
typedef struct vsf_adc_channel_cfg_t vsf_adc_channel_cfg_t |
adc channel configuration
typedef void vsf_adc_isr_handler_t(void *target_ptr, vsf_adc_t *adc_ptr, vsf_adc_irq_mask_t irq_mask) |
typedef struct vsf_adc_isr_t vsf_adc_isr_t |
typedef struct vsf_adc_cfg_t vsf_adc_cfg_t |
adc configuration
typedef struct vsf_adc_status_t vsf_adc_status_t |
typedef struct vsf_adc_capability_t vsf_adc_capability_t |
typedef struct vsf_adc_op_t vsf_adc_op_t |
enum vsf_adc_mode_t |
anonymous enum |
anonymous enum |
enum vsf_adc_irq_mask_t |
|
extern |
initialize a adc instance.
[in] | adc_ptr | a pointer to structure vsf_adc_t |
[in] | cfg_ptr | a pointer to structure vsf_adc_cfg_t |
|
extern |
enable interrupt masks of adc instance.
[in] | adc_ptr | a pointer to structure vsf_adc_t |
[in] | irq_mask | one or more value of enum vsf_adc_irq_mask_t |
disable interrupt masks of adc instance.
[in] | adc_ptr | a pointer to structure vsf_adc_t |
[in] | irq_mask | one or more value of enum vsf_adc_irq_mask_t, vsf_adc_irq_mask_t |
|
extern |
enable interrupt masks of adc instance.
[in] | adc_ptr | a pointer to structure vsf_adc_t |
[in] | irq_mask | one or more value of enum vsf_adc_irq_mask_t |
|
extern |
disable interrupt masks of adc instance.
[in] | adc_ptr | a pointer to structure vsf_adc_t |
[in] | irq_mask | one or more value of enum vsf_adc_irq_mask_t, vsf_adc_irq_mask_t |
|
extern |
get the status of adc instance.
[in] | adc_ptr | a pointer to structure vsf_adc_t |
|
extern |
get the capability of adc instance.
[in] | adc_ptr | a pointer to structure vsf_adc_t |
|
extern |
adc request sampling once
[in] | adc_ptr | a pointer to structure vsf_adc_t |
[in] | channel_cfg | a pointer to sampling channel configuration |
[in] | buffer_ptr | data buffer |
|
extern |
adc channel configuration
[in] | adc_ptr | a pointer to structure vsf_adc_t |
[in] | channel_cfgs_ptr | sampling channel configuration array |
[in] | channel_cfgs_ptr | the length of sampling channel configuration array |
[in] | buffer_ptr | data buffer |
|
extern |
adc channel request
[in] | adc_ptr | a pointer to structure vsf_adc_t |
[out] | buffer_ptr | sampling channel data array |
[in] | count | the length of sampling channel configuration data array |