Skip to content

drivers: dac: Allow to set several channels values in one call #28288

@kurddt

Description

@kurddt

Is your enhancement proposal related to a problem? Please describe.
My application requires that the channels of a same DAC update their values at the same time, so calling dac_write_value is not really satisfying

Describe the solution you'd like
I would like to be able to pass an array of <channel, value> pairs to write to the dac output registers.
We could define a new structure:

struct dac_value {
     u8_t channel;
     u32_t value;
}

and either change the signature of dac_write_value to accept an array of struct dac_value or add an additional function to dac_driver_api

Metadata

Metadata

Assignees

Labels

EnhancementChanges/Updates/Additions to existing featuresarea: DACDigital-to-Analog Converter

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions