diff options
| author | huntc <[email protected]> | 2022-08-30 09:49:04 +1000 |
|---|---|---|
| committer | huntc <[email protected]> | 2022-08-30 09:49:04 +1000 |
| commit | c0b7fd910e5663242d9320dd9893dbc1844b2729 (patch) | |
| tree | dd3713ee7331ca7ea12488bb8f10fd5ac7a39a57 | |
| parent | 9a873d1dbf301bf6416fec675a40ebd3aa3f1174 (diff) | |
Additional doco
| -rw-r--r-- | embassy-nrf/src/saadc.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/embassy-nrf/src/saadc.rs b/embassy-nrf/src/saadc.rs index 43c98a888..69926ec03 100644 --- a/embassy-nrf/src/saadc.rs +++ b/embassy-nrf/src/saadc.rs | |||
| @@ -224,6 +224,8 @@ impl<'d, const N: usize> Saadc<'d, N> { | |||
| 224 | } | 224 | } |
| 225 | 225 | ||
| 226 | /// One shot sampling. The buffer must be the same size as the number of channels configured. | 226 | /// One shot sampling. The buffer must be the same size as the number of channels configured. |
| 227 | /// The sampling is stopped prior to returning in order to reduce power consumption (power | ||
| 228 | /// consumption remains higher if sampling is not stopped explicitly). | ||
| 227 | pub async fn sample(&mut self, buf: &mut [i16; N]) { | 229 | pub async fn sample(&mut self, buf: &mut [i16; N]) { |
| 228 | let r = Self::regs(); | 230 | let r = Self::regs(); |
| 229 | 231 | ||
