Enum esp_idf_svc::hal::uart::config::SourceClock
source · pub enum SourceClock {
APB,
RTC,
Crystal,
}
Expand description
UART source clock
Variants§
Implementations§
source§impl SourceClock
impl SourceClock
pub const fn default() -> SourceClock
pub const fn from_raw(source_clock: u32) -> SourceClock
pub fn frequency(self) -> Result<Hertz, EspError>
Trait Implementations§
source§impl Clone for SourceClock
impl Clone for SourceClock
source§fn clone(&self) -> SourceClock
fn clone(&self) -> SourceClock
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SourceClock
impl Debug for SourceClock
source§impl Default for SourceClock
impl Default for SourceClock
source§fn default() -> SourceClock
fn default() -> SourceClock
Returns the “default value” for a type. Read more
source§impl From<u32> for SourceClock
impl From<u32> for SourceClock
source§fn from(source_clock: u32) -> SourceClock
fn from(source_clock: u32) -> SourceClock
Converts to this type from the input type.
source§impl PartialEq for SourceClock
impl PartialEq for SourceClock
impl Copy for SourceClock
impl Eq for SourceClock
impl StructuralPartialEq for SourceClock
Auto Trait Implementations§
impl Freeze for SourceClock
impl RefUnwindSafe for SourceClock
impl Send for SourceClock
impl Sync for SourceClock
impl Unpin for SourceClock
impl UnwindSafe for SourceClock
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)