pub struct AlertConfig { /* private fields */ }Expand description
Configure Device Operation Modes - ALERT_CONFIG
Implementations§
Source§impl AlertConfig
impl AlertConfig
Sourcepub fn set_alert_latch(self, alert_latch: AlertLatch) -> Self
pub fn set_alert_latch(self, alert_latch: AlertLatch) -> Self
Set AlertLatch field
Sourcepub fn set_alert_mode(self, alert_mode: AlertMode) -> Self
pub fn set_alert_mode(self, alert_mode: AlertMode) -> Self
Set AlertMode field
Sourcepub fn set_status_alrt_enable(self, status_alrt_enable: bool) -> Self
pub fn set_status_alrt_enable(self, status_alrt_enable: bool) -> Self
Set AlertMode field
Sourcepub fn set_rslt_alrt_enable(self, rslt_alrt_enable: bool) -> Self
pub fn set_rslt_alrt_enable(self, rslt_alrt_enable: bool) -> Self
Set STATUS_ALRT field
Sourcepub fn set_thrx_count(self, thrx_count: ThrxCount) -> Self
pub fn set_thrx_count(self, thrx_count: ThrxCount) -> Self
Set ThrxCount field
Sourcepub fn set_t_thrx_alrt_enable(self, t_thrx_alrt_enable: bool) -> Self
pub fn set_t_thrx_alrt_enable(self, t_thrx_alrt_enable: bool) -> Self
Set T_THRX_ALRT field
Sourcepub fn set_z_thrx_alrt_enable(self, z_thrx_alrt_enable: bool) -> Self
pub fn set_z_thrx_alrt_enable(self, z_thrx_alrt_enable: bool) -> Self
Set Z_THRX_ALRT field
Sourcepub fn set_y_thrx_alrt_enable(self, y_thrx_alrt_enable: bool) -> Self
pub fn set_y_thrx_alrt_enable(self, y_thrx_alrt_enable: bool) -> Self
Set Y_THRX_ALRT field
Sourcepub fn set_x_thrx_alrt_enable(self, x_thrx_alrt_enable: bool) -> Self
pub fn set_x_thrx_alrt_enable(self, x_thrx_alrt_enable: bool) -> Self
Set X_THRX_ALRT field
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AlertConfig
impl RefUnwindSafe for AlertConfig
impl Send for AlertConfig
impl Sync for AlertConfig
impl Unpin for AlertConfig
impl UnsafeUnpin for AlertConfig
impl UnwindSafe for AlertConfig
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