VSF Documented
|
Go to the source code of this file.
Data Structures | |
struct | vsf_dac_channel_cfg_t |
dac channel configuration More... | |
struct | vsf_dac_isr_t |
struct | vsf_dac_cfg_t |
dac configuration More... | |
struct | vsf_dac_status_t |
struct | vsf_dac_capability_t |
struct | vsf_dac_op_t |
struct | vsf_dac_t |
Typedefs | |
typedef enum vsf_dac_irq_mask_t | vsf_dac_irq_mask_t |
typedef struct vsf_dac_channel_cfg_t | vsf_dac_channel_cfg_t |
dac channel configuration | |
typedef struct vsf_dac_t | vsf_dac_t |
typedef void | vsf_dac_isr_handler_t(void *target_ptr, vsf_dac_t *dac_ptr, vsf_dac_irq_mask_t irq_mask) |
typedef struct vsf_dac_isr_t | vsf_dac_isr_t |
typedef struct vsf_dac_cfg_t | vsf_dac_cfg_t |
dac configuration | |
typedef struct vsf_dac_status_t | vsf_dac_status_t |
typedef struct vsf_dac_capability_t | vsf_dac_capability_t |
typedef struct vsf_dac_op_t | vsf_dac_op_t |
Enumerations | |
enum | vsf_dac_irq_mask_t { VSF_DAC_IRQ_MASK_IDLE = (0x01ul << 0) , VSF_DAC_IRQ_MASK_CPL = (0x1ul << 0) } |
enum | { VSF_DAC_IRQ_COUNT = 2 , VSF_DAC_IRQ_ALL_BITS_MASK = VSF_DAC_IRQ_MASK_IDLE | VSF_DAC_IRQ_MASK_CPL } |
Functions | |
vsf_err_t | vsf_dac_init (vsf_dac_t *dac_ptr, vsf_dac_cfg_t *cfg_ptr) |
initialize a dac instance. | |
void | vsf_dac_fini (vsf_dac_t *dac_ptr) |
finalize a dac instance. | |
fsm_rt_t | vsf_dac_enable (vsf_dac_t *dac_ptr) |
enable interrupt masks of dac instance. | |
fsm_rt_t | vsf_dac_disable (vsf_dac_t *dac_ptr) |
disable interrupt masks of dac instance. | |
void | vsf_dac_irq_enable (vsf_dac_t *dac_ptr, vsf_dac_irq_mask_t irq_mask) |
enable interrupt masks of dac instance. | |
void | vsf_dac_irq_disable (vsf_dac_t *dac_ptr, vsf_dac_irq_mask_t irq_mask) |
disable interrupt masks of dac instance. | |
vsf_dac_status_t | vsf_dac_status (vsf_dac_t *dac_ptr) |
get the status of dac instance. | |
vsf_dac_capability_t | vsf_dac_capability (vsf_dac_t *dac_ptr) |
get the capability of dac instance. | |
vsf_err_t | vsf_dac_channel_request_once (vsf_dac_t *dac_ptr, vsf_dac_channel_cfg_t *channel_cfg, uint_fast16_t value) |
dac request convert once | |
vsf_err_t | vsf_dac_channel_config (vsf_dac_t *dac_ptr, vsf_dac_channel_cfg_t *cfgs_ptr, uint_fast8_t cnt) |
dac channel configuration | |
vsf_err_t | vsf_dac_channel_request (vsf_dac_t *dac_ptr, void *buffer_ptr, uint_fast32_t count) |
dac channel request | |
#define VSF_DAC_CFG_MULTI_CLASS ENABLED |
#define VSF_DAC_CFG_PREFIX vsf |
#define VSF_DAC_CFG_FUNCTION_RENAME ENABLED |
#define VSF_DAC_CFG_REIMPLEMENT_TYPE_IRQ_MASK DISABLED |
#define VSF_DAC_CFG_REIMPLEMENT_TYPE_CHANNEL_CFG DISABLED |
Redefine struct vsf_dac_channel_cfg_t. For compatibility, members should not be deleted when struct vsf_dac_channel_cfg_t redefining.
#define VSF_DAC_CFG_REIMPLEMENT_TYPE_CFG DISABLED |
Redefine struct vsf_dac_cfg_t. The vsf_dac_isr_handler_t type also needs to be redefined For compatibility, members should not be deleted when struct vsf_dac_cfg_t redefining.
#define VSF_DAC_CFG_REIMPLEMENT_TYPE_CAPABILITY DISABLED |
Redefine struct vsf_dac_capability_t. For compatibility, members should not be deleted when struct vsf_dac_capability_t redefining.
#define VSF_DAC_CFG_INHERT_HAL_CAPABILITY ENABLED |
#define VSF_DAC_APIS | ( | __prefix_name | ) |
#define __VSF_HAL_TEMPLATE_API VSF_HAL_TEMPLATE_API_FP |
#define __vsf_dac_t VSF_MCONNECT(VSF_DAC_CFG_PREFIX, _dac_t) |
#define vsf_dac_init | ( | __DAC, | |
... | |||
) | VSF_MCONNECT(VSF_DAC_CFG_PREFIX, _dac_init) ((__vsf_dac_t *)(__DAC), ##__VA_ARGS__) |
#define vsf_dac_fini | ( | __DAC | ) | VSF_MCONNECT(VSF_DAC_CFG_PREFIX, _dac_fini) ((__vsf_dac_t *)(__DAC)) |
#define vsf_dac_enable | ( | __DAC | ) | VSF_MCONNECT(VSF_DAC_CFG_PREFIX, _dac_enable) ((__vsf_dac_t *)(__DAC)) |
#define vsf_dac_disable | ( | __DAC | ) | VSF_MCONNECT(VSF_DAC_CFG_PREFIX, _dac_disable) ((__vsf_dac_t *)(__DAC)) |
#define vsf_dac_status | ( | __DAC | ) | VSF_MCONNECT(VSF_DAC_CFG_PREFIX, _dac_status) ((__vsf_dac_t *)(__DAC)) |
#define vsf_dac_capability | ( | __DAC | ) | VSF_MCONNECT(VSF_DAC_CFG_PREFIX, _dac_capability) ((__vsf_dac_t *)(__DAC)) |
#define vsf_dac_irq_enable | ( | __DAC, | |
... | |||
) | VSF_MCONNECT(VSF_DAC_CFG_PREFIX, _dac_irq_enable) ((__vsf_dac_t *)(__DAC), ##__VA_ARGS__) |
#define vsf_dac_irq_disable | ( | __DAC, | |
... | |||
) | VSF_MCONNECT(VSF_DAC_CFG_PREFIX, _dac_irq_disable) ((__vsf_dac_t *)(__DAC), ##__VA_ARGS__) |
#define vsf_dac_channel_request_once | ( | __DAC, | |
... | |||
) | VSF_MCONNECT(VSF_DAC_CFG_PREFIX, _dac_channel_request_once) ((__vsf_dac_t *)(__DAC), ##__VA_ARGS__) |
#define vsf_dac_channel_config | ( | __DAC, | |
... | |||
) | VSF_MCONNECT(VSF_DAC_CFG_PREFIX, _dac_channel_config) ((__vsf_dac_t *)(__DAC), ##__VA_ARGS__) |
#define vsf_dac_channel_request | ( | __DAC, | |
... | |||
) | VSF_MCONNECT(VSF_DAC_CFG_PREFIX, _dac_channel_request) ((__vsf_dac_t *)(__DAC), ##__VA_ARGS__) |
typedef enum vsf_dac_irq_mask_t vsf_dac_irq_mask_t |
typedef struct vsf_dac_channel_cfg_t vsf_dac_channel_cfg_t |
dac channel configuration
typedef void vsf_dac_isr_handler_t(void *target_ptr, vsf_dac_t *dac_ptr, vsf_dac_irq_mask_t irq_mask) |
typedef struct vsf_dac_isr_t vsf_dac_isr_t |
typedef struct vsf_dac_cfg_t vsf_dac_cfg_t |
dac configuration
typedef struct vsf_dac_status_t vsf_dac_status_t |
typedef struct vsf_dac_capability_t vsf_dac_capability_t |
typedef struct vsf_dac_op_t vsf_dac_op_t |
enum vsf_dac_irq_mask_t |
|
extern |
initialize a dac instance.
[in] | dac_ptr | a pointer to structure vsf_dac_t |
[in] | cfg_ptr | a pointer to structure vsf_dac_cfg_t |
|
extern |
enable interrupt masks of dac instance.
[in] | dac_ptr | a pointer to structure vsf_dac_t |
[in] | irq_mask | one or more value of enum vsf_dac_irq_mask_t |
disable interrupt masks of dac instance.
[in] | dac_ptr | a pointer to structure vsf_dac_t |
[in] | irq_mask | one or more value of enum vsf_dac_irq_mask_t, vsf_dac_irq_mask_t |
|
extern |
enable interrupt masks of dac instance.
[in] | dac_ptr | a pointer to structure vsf_dac_t |
[in] | irq_mask | one or more value of enum vsf_dac_irq_mask_t |
|
extern |
disable interrupt masks of dac instance.
[in] | dac_ptr | a pointer to structure vsf_dac_t |
[in] | irq_mask | one or more value of enum vsf_dac_irq_mask_t, vsf_dac_irq_mask_t |
|
extern |
get the status of dac instance.
[in] | dac_ptr | a pointer to structure vsf_dac_t |
|
extern |
get the capability of dac instance.
[in] | dac_ptr | a pointer to structure vsf_dac_t |
|
extern |
dac request convert once
[in] | dac_ptr | a pointer to structure vsf_dac_t |
[in] | channel_cfg | a pointer to convert channel configuration |
[in] | buffer_ptr | value to be converted |
|
extern |
dac channel configuration
[in] | dac_ptr | a pointer to structure vsf_dac_t |
[in] | cfgs_ptr | convert channel configuration array |
[in] | cnt | the length of convert channel configuration array |
[in] | buffer_ptr | data buffer |
|
extern |
dac channel request
[in] | dac_ptr | a pointer to structure vsf_dac_t |
[out] | buffer_ptr | convert channel data array |
[in] | count | the length of convert channel configuration data array |