#[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
pub fn with_pre_idle_count(self, pre_idle_count: u16) -> Self
Assign the given value to the pre_idle_count
field.
Sourcepub fn with_pre_idle_count_none(self) -> Self
pub fn with_pre_idle_count_none(self) -> Self
Set the value of pre_idle_count
to None
.
Sourcepub fn pre_idle_count(&self) -> Option<u16>
pub fn pre_idle_count(&self) -> Option<u16>
Optional idle time before the AT command detection begins, in clock cycles.
Sourcepub fn with_post_idle_count(self, post_idle_count: u16) -> Self
pub fn with_post_idle_count(self, post_idle_count: u16) -> Self
Assign the given value to the post_idle_count
field.
Sourcepub fn with_post_idle_count_none(self) -> Self
pub fn with_post_idle_count_none(self) -> Self
Set the value of post_idle_count
to None
.
Sourcepub fn post_idle_count(&self) -> Option<u16>
pub fn post_idle_count(&self) -> Option<u16>
Optional idle time after the AT command detection ends, in clock cycles.
Sourcepub fn with_gap_timeout(self, gap_timeout: u16) -> Self
pub fn with_gap_timeout(self, gap_timeout: u16) -> Self
Assign the given value to the gap_timeout
field.
Sourcepub fn with_gap_timeout_none(self) -> Self
pub fn with_gap_timeout_none(self) -> Self
Set the value of gap_timeout
to None
.
Sourcepub fn gap_timeout(&self) -> Option<u16>
pub fn gap_timeout(&self) -> Option<u16>
Optional timeout between characters in the AT command, in clock cycles.
Sourcepub fn with_cmd_char(self, cmd_char: u8) -> Self
pub fn with_cmd_char(self, cmd_char: u8) -> Self
Assign the given value to the cmd_char
field.
Sourcepub fn with_char_num(self, char_num: u8) -> Self
pub fn with_char_num(self, char_num: u8) -> Self
Assign the given value to the char_num
field.
Trait Implementations§
Source§impl Clone for AtCmdConfig
impl Clone for AtCmdConfig
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
impl Debug for AtCmdConfig
Source§impl Default for AtCmdConfig
impl Default for AtCmdConfig
Source§impl Format for AtCmdConfigwhere
Option<u16>: Format,
impl Format for AtCmdConfigwhere
Option<u16>: Format,
Source§impl Hash for AtCmdConfig
impl Hash for AtCmdConfig
Source§impl PartialEq for AtCmdConfig
impl PartialEq for AtCmdConfig
impl Copy for AtCmdConfig
impl Eq for AtCmdConfig
impl StructuralPartialEq for AtCmdConfig
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, dst: *mut u8)
unsafe fn clone_to_uninit(&self, dst: *mut u8)
clone_to_uninit
)