mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-22 06:42:32 +00:00
nrf, doc: Don't refer to Default
impl of saadc::ChannelConfig
`saadc::ChannelConfig` does not implement the `Default` trait, so its documentation should not refer to it. Modify the documentation to instead describe how the struct should be created and configured.
This commit is contained in:
parent
b55726c515
commit
0eb0789627
@ -78,7 +78,8 @@ impl Default for Config {
|
|||||||
|
|
||||||
/// Used to configure an individual SAADC peripheral channel.
|
/// Used to configure an individual SAADC peripheral channel.
|
||||||
///
|
///
|
||||||
/// See the `Default` impl for suitable default values.
|
/// Construct using the `single_ended` or `differential` methods. These provide sensible defaults
|
||||||
|
/// for the public fields, which can be overridden if required.
|
||||||
#[non_exhaustive]
|
#[non_exhaustive]
|
||||||
pub struct ChannelConfig<'d> {
|
pub struct ChannelConfig<'d> {
|
||||||
/// Reference voltage of the SAADC input.
|
/// Reference voltage of the SAADC input.
|
||||||
|
Loading…
Reference in New Issue
Block a user