pub struct AccConfig { /* private fields */ }Implementations§
Source§impl AccConfig
impl AccConfig
pub fn try_from_bits(bits: u8) -> Result<Self, Error>
pub fn bits(&self) -> u8
pub fn g_range(&self) -> AccGRange
pub fn bandwidth(&self) -> AccBandwidth
pub fn operation_mode(&self) -> AccOperationMode
pub fn set_g_range(&mut self, g_range: AccGRange)
pub fn set_bandwidth(&mut self, bandwidth: AccBandwidth)
pub fn set_operation_mode(&mut self, operation_mode: AccOperationMode)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AccConfig
impl RefUnwindSafe for AccConfig
impl Send for AccConfig
impl Sync for AccConfig
impl Unpin for AccConfig
impl UnwindSafe for AccConfig
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