|
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. | |
| vsf_err_t | vsf_dac_get_configuration (vsf_dac_t *dac_ptr, vsf_dac_cfg_t *cfg_ptr) |
| Get current configuration of a DAC instance. | |
| fsm_rt_t | vsf_dac_enable (vsf_dac_t *dac_ptr) |
| Enable a DAC instance. | |
| fsm_rt_t | vsf_dac_disable (vsf_dac_t *dac_ptr) |
| Disable a 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 | ) |
| vsf_err_t vsf_dac_get_configuration | ( | vsf_dac_t * | dac_ptr, |
| vsf_dac_cfg_t * | cfg_ptr | ||
| ) |
Get current configuration of a DAC instance.
| [in] | dac_ptr | Pointer to DAC instance |
| [out] | cfg_ptr | Pointer to DAC configuration structure to store current settings |
Enable a DAC instance.
| [in] | dac_ptr | a pointer to structure vsf_dac_t |
Disable a DAC instance.
| [in] | dac_ptr | a pointer to structure vsf_dac_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, 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] | value | 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 |
| 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 |