#[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 bytes 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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more