pub struct AtCmdConfig {
pub pre_idle_count: Option<u16>,
pub post_idle_count: Option<u16>,
pub gap_timeout: Option<u16>,
pub cmd_char: u8,
pub char_num: Option<u8>,
}Expand description
Configuration for the AT-CMD detection functionality
Fields§
§pre_idle_count: Option<u16>Optional idle time before the AT command detection begins, in clock cycles.
post_idle_count: Option<u16>Optional idle time after the AT command detection ends, in clock cycles.
gap_timeout: Option<u16>Optional timeout between characters in the AT command, in clock cycles.
cmd_char: u8The character that triggers the AT command detection.
char_num: Option<u8>Optional number of characters to detect as part of the AT command.
Implementations§
Source§impl AtCmdConfig
impl AtCmdConfig
Sourcepub fn new(
pre_idle_count: Option<u16>,
post_idle_count: Option<u16>,
gap_timeout: Option<u16>,
cmd_char: u8,
char_num: Option<u8>,
) -> AtCmdConfig
pub fn new( pre_idle_count: Option<u16>, post_idle_count: Option<u16>, gap_timeout: Option<u16>, cmd_char: u8, char_num: Option<u8>, ) -> AtCmdConfig
Creates a new AtCmdConfig with the specified configuration.
This function sets up the AT command detection parameters, including pre- and post-idle times, a gap timeout, the triggering command character, and the number of characters to detect.
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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more