VSF Documented
|
#include "hal/driver/driver.h"
Macros | |
#define | VSF_DAC_CFG_FUNCTION_RENAME DISABLED |
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 *channel_cfgs_ptr, uint_fast8_t channel_cfgs_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_FUNCTION_RENAME DISABLED |
vsf_err_t vsf_dac_init | ( | vsf_dac_t * | dac_ptr, |
vsf_dac_cfg_t * | cfg_ptr | ||
) |
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 |
void vsf_dac_fini | ( | vsf_dac_t * | dac_ptr | ) |
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 |
void vsf_dac_irq_enable | ( | vsf_dac_t * | dac_ptr, |
vsf_dac_irq_mask_t | irq_mask | ||
) |
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 |
void vsf_dac_irq_disable | ( | vsf_dac_t * | dac_ptr, |
vsf_dac_irq_mask_t | irq_mask | ||
) |
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 |
vsf_dac_status_t vsf_dac_status | ( | vsf_dac_t * | dac_ptr | ) |
get the status of dac instance.
[in] | dac_ptr | a pointer to structure vsf_dac_t |
vsf_dac_capability_t vsf_dac_capability | ( | vsf_dac_t * | dac_ptr | ) |
get the capability of dac instance.
[in] | dac_ptr | a pointer to structure vsf_dac_t |
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
[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 |
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
[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 |
vsf_err_t vsf_dac_channel_request | ( | vsf_dac_t * | dac_ptr, |
void * | buffer_ptr, | ||
uint_fast32_t | count | ||
) |
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 |