Skip to content

Commit

Permalink
[doxygen][rsoc]add dac driver example for doxygen
Browse files Browse the repository at this point in the history
  • Loading branch information
CYFS3 committed Sep 28, 2024
1 parent 5562779 commit d4807a8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/drivers/include/drivers/dac.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,20 +110,23 @@ rt_err_t rt_hw_dac_register(rt_dac_device_t dac,const char *name, const struct r
* @brief set the value of DAC
* @param dev DAC device
* @param channel DAC channel
* @param value the value of DAC
* @return rt_err_t error code
*/
rt_err_t rt_dac_write(rt_dac_device_t dev, rt_uint32_t channel, rt_uint32_t value);

/**
* @brief enable the DAC channel
* @param dev DAC device
* @param channel DAC channel
* @return rt_err_t error code
*/
rt_err_t rt_dac_enable(rt_dac_device_t dev, rt_uint32_t channel);

/**
* @brief disable the DAC channel
* @param dev DAC device
* @param channel DAC channel
* @return rt_err_t error code
*/
rt_err_t rt_dac_disable(rt_dac_device_t dev, rt_uint32_t channel);
Expand Down

0 comments on commit d4807a8

Please sign in to comment.