Merge pull request #4699 from robamu/embassy-nrf-docs

doc fixes for nRF
This commit is contained in:
Dario Nieuwenhuis 2025-09-23 12:49:24 +00:00 committed by GitHub
commit b1ab990471
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 8 additions and 8 deletions

View File

@ -217,7 +217,7 @@ pub struct Output<'d> {
}
impl<'d> Output<'d> {
/// Create GPIO output driver for a [Pin] with the provided [Level] and [OutputDriver] configuration.
/// Create GPIO output driver for a [Pin] with the provided [Level] and [OutputDrive] configuration.
#[inline]
pub fn new(pin: Peri<'d, impl Pin>, initial_output: Level, drive: OutputDrive) -> Self {
let mut pin = Flex::new(pin);
@ -781,7 +781,7 @@ impl<'d> embedded_hal_1::digital::ErrorType for Flex<'d> {
type Error = Infallible;
}
/// Implement [`InputPin`] for [`Flex`];
/// Implement [embedded_hal_1::digital::InputPin] for [`Flex`];
///
/// If the pin is not in input mode the result is unspecified.
impl<'d> embedded_hal_1::digital::InputPin for Flex<'d> {

View File

@ -252,7 +252,7 @@ impl ApproxSampleRate {
///
/// Those are non standard sample rates that can be configured without error.
///
/// For custom master clock configuration, please refer to [Mode].
/// For custom master clock configuration, please refer to [vals::Mode].
#[derive(Clone, Copy)]
pub enum ExactSampleRate {
/// 8000 Hz

View File

@ -207,7 +207,7 @@ mod chip;
/// Macro to bind interrupts to handlers.
///
/// This defines the right interrupt handlers, and creates a unit struct (like `struct Irqs;`)
/// and implements the right [`Binding`]s for it. You can pass this struct to drivers to
/// and implements the right [crate::interrupt::typelevel::Binding]s for it. You can pass this struct to drivers to
/// prove at compile-time that the right interrupts have been bound.
///
/// Example of how to bind one interrupt:

View File

@ -558,7 +558,7 @@ impl<'d, T: Instance> Twim<'d, T> {
/// Execute the provided operations on the I2C bus with timeout.
///
/// See [`blocking_transaction`].
/// See [Self::blocking_transaction].
#[cfg(feature = "time")]
pub fn blocking_transaction_timeout(
&mut self,
@ -632,7 +632,7 @@ impl<'d, T: Instance> Twim<'d, T> {
/// Write to an I2C slave with timeout.
///
/// See [`blocking_write`].
/// See [Self::blocking_write].
#[cfg(feature = "time")]
pub fn blocking_write_timeout(&mut self, address: u8, buffer: &[u8], timeout: Duration) -> Result<(), Error> {
self.blocking_transaction_timeout(address, &mut [Operation::Write(buffer)], timeout)

View File

@ -700,7 +700,7 @@ impl<'d, T: Instance> Twis<'d, T> {
/// Respond to an I2C master READ command with timeout.
/// Returns the number of bytes written.
/// See [`blocking_respond_to_read`].
/// See [Self::blocking_respond_to_read].
#[cfg(feature = "time")]
pub fn blocking_respond_to_read_timeout(&mut self, buffer: &[u8], timeout: Duration) -> Result<usize, Error> {
self.setup_respond(buffer, false)?;

View File

@ -68,7 +68,7 @@ impl interrupt::typelevel::Handler<UsbRegIrq> for InterruptHandler {
/// [`VbusDetect`] implementation using the native hardware POWER peripheral.
///
/// Unsuitable for usage with the nRF softdevice, since it reserves exclusive acces
/// to POWER. In that case, use [`VbusDetectSignal`].
/// to POWER. In that case, use [SoftwareVbusDetect].
pub struct HardwareVbusDetect {
_private: (),
}