#[non_exhaustive]pub struct AtCmdConfig { /* private fields */ }unstable only.Expand description
Configuration for the AT-CMD detection functionality
§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
Implementations§
Source§impl AtCmdConfig
impl AtCmdConfig
Sourcepub fn with_pre_idle_count(self, pre_idle_count: u16) -> Self
Available on soc_has_uart0 or soc_has_uart1 or soc_has_uart2 only.
pub fn with_pre_idle_count(self, pre_idle_count: u16) -> Self
soc_has_uart0 or soc_has_uart1 or soc_has_uart2 only.Assign the given value to the pre_idle_count field.
Sourcepub fn with_pre_idle_count_none(self) -> Self
Available on soc_has_uart0 or soc_has_uart1 or soc_has_uart2 only.
pub fn with_pre_idle_count_none(self) -> Self
soc_has_uart0 or soc_has_uart1 or soc_has_uart2 only.Set the value of pre_idle_count to None.
Sourcepub fn pre_idle_count(&self) -> Option<u16>
Available on soc_has_uart0 or soc_has_uart1 or soc_has_uart2 only.
pub fn pre_idle_count(&self) -> Option<u16>
soc_has_uart0 or soc_has_uart1 or soc_has_uart2 only.Optional idle time before the AT command detection begins, in clock cycles.
Sourcepub fn with_post_idle_count(self, post_idle_count: u16) -> Self
Available on soc_has_uart0 or soc_has_uart1 or soc_has_uart2 only.
pub fn with_post_idle_count(self, post_idle_count: u16) -> Self
soc_has_uart0 or soc_has_uart1 or soc_has_uart2 only.Assign the given value to the post_idle_count field.
Sourcepub fn with_post_idle_count_none(self) -> Self
Available on soc_has_uart0 or soc_has_uart1 or soc_has_uart2 only.
pub fn with_post_idle_count_none(self) -> Self
soc_has_uart0 or soc_has_uart1 or soc_has_uart2 only.Set the value of post_idle_count to None.
Sourcepub fn post_idle_count(&self) -> Option<u16>
Available on soc_has_uart0 or soc_has_uart1 or soc_has_uart2 only.
pub fn post_idle_count(&self) -> Option<u16>
soc_has_uart0 or soc_has_uart1 or soc_has_uart2 only.Optional idle time after the AT command detection ends, in clock cycles.
Sourcepub fn with_gap_timeout(self, gap_timeout: u16) -> Self
Available on soc_has_uart0 or soc_has_uart1 or soc_has_uart2 only.
pub fn with_gap_timeout(self, gap_timeout: u16) -> Self
soc_has_uart0 or soc_has_uart1 or soc_has_uart2 only.Assign the given value to the gap_timeout field.
Sourcepub fn with_gap_timeout_none(self) -> Self
Available on soc_has_uart0 or soc_has_uart1 or soc_has_uart2 only.
pub fn with_gap_timeout_none(self) -> Self
soc_has_uart0 or soc_has_uart1 or soc_has_uart2 only.Set the value of gap_timeout to None.
Sourcepub fn gap_timeout(&self) -> Option<u16>
Available on soc_has_uart0 or soc_has_uart1 or soc_has_uart2 only.
pub fn gap_timeout(&self) -> Option<u16>
soc_has_uart0 or soc_has_uart1 or soc_has_uart2 only.Optional timeout between bytes in the AT command, in clock cycles.
Sourcepub fn with_cmd_char(self, cmd_char: u8) -> Self
Available on soc_has_uart0 or soc_has_uart1 or soc_has_uart2 only.
pub fn with_cmd_char(self, cmd_char: u8) -> Self
soc_has_uart0 or soc_has_uart1 or soc_has_uart2 only.Assign the given value to the cmd_char field.
Sourcepub fn cmd_char(&self) -> u8
Available on soc_has_uart0 or soc_has_uart1 or soc_has_uart2 only.
pub fn cmd_char(&self) -> u8
soc_has_uart0 or soc_has_uart1 or soc_has_uart2 only.The byte (character) that triggers the AT command detection.
Sourcepub fn with_char_num(self, char_num: u8) -> Self
Available on soc_has_uart0 or soc_has_uart1 or soc_has_uart2 only.
pub fn with_char_num(self, char_num: u8) -> Self
soc_has_uart0 or soc_has_uart1 or soc_has_uart2 only.Assign the given value to the char_num field.
Trait Implementations§
Source§impl Clone for AtCmdConfig
Available on soc_has_uart0 or soc_has_uart1 or soc_has_uart2 only.
impl Clone for AtCmdConfig
soc_has_uart0 or soc_has_uart1 or soc_has_uart2 only.Source§fn clone(&self) -> AtCmdConfig
fn clone(&self) -> AtCmdConfig
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AtCmdConfig
Available on soc_has_uart0 or soc_has_uart1 or soc_has_uart2 only.
impl Debug for AtCmdConfig
soc_has_uart0 or soc_has_uart1 or soc_has_uart2 only.Source§impl Default for AtCmdConfig
Available on soc_has_uart0 or soc_has_uart1 or soc_has_uart2 only.
impl Default for AtCmdConfig
soc_has_uart0 or soc_has_uart1 or soc_has_uart2 only.Source§impl Hash for AtCmdConfig
Available on soc_has_uart0 or soc_has_uart1 or soc_has_uart2 only.
impl Hash for AtCmdConfig
soc_has_uart0 or soc_has_uart1 or soc_has_uart2 only.Source§impl PartialEq for AtCmdConfig
Available on soc_has_uart0 or soc_has_uart1 or soc_has_uart2 only.
impl PartialEq for AtCmdConfig
soc_has_uart0 or soc_has_uart1 or soc_has_uart2 only.impl Copy for AtCmdConfig
soc_has_uart0 or soc_has_uart1 or soc_has_uart2 only.impl Eq for AtCmdConfig
soc_has_uart0 or soc_has_uart1 or soc_has_uart2 only.impl StructuralPartialEq for AtCmdConfig
soc_has_uart0 or soc_has_uart1 or soc_has_uart2 only.Auto Trait Implementations§
impl Freeze for AtCmdConfig
impl RefUnwindSafe for AtCmdConfig
impl Send for AtCmdConfig
impl Sync for AtCmdConfig
impl Unpin for AtCmdConfig
impl UnwindSafe for AtCmdConfig
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
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)