nrf/saadc: make InputChannel private.
This commit is contained in:
parent
d8c3365d6a
commit
c675fb1036
1 changed files with 4 additions and 4 deletions
|
@ -14,11 +14,11 @@ use crate::{pac, peripherals};
|
||||||
|
|
||||||
use pac::{saadc, SAADC};
|
use pac::{saadc, SAADC};
|
||||||
|
|
||||||
|
// We treat the positive and negative channels with the same enum values to keep our type tidy and given they are the same
|
||||||
|
pub(crate) use saadc::ch::pselp::PSELP_A as InputChannel;
|
||||||
|
|
||||||
pub use saadc::{
|
pub use saadc::{
|
||||||
ch::{
|
ch::config::{GAIN_A as Gain, REFSEL_A as Reference, RESP_A as Resistor, TACQ_A as Time},
|
||||||
config::{GAIN_A as Gain, REFSEL_A as Reference, RESP_A as Resistor, TACQ_A as Time},
|
|
||||||
pselp::PSELP_A as InputChannel, // We treat the positive and negative channels with the same enum values to keep our type tidy and given they are the same
|
|
||||||
},
|
|
||||||
oversample::OVERSAMPLE_A as Oversample,
|
oversample::OVERSAMPLE_A as Oversample,
|
||||||
resolution::VAL_A as Resolution,
|
resolution::VAL_A as Resolution,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue