pub struct PinConf {
pub sda_pull_up: u8,
pub cs_pull_up: u8,
}Expand description
The PinConf struct represents the electrical configuration settings for the device’s configurable pins.
This struct is used to specify and retrieve the desired electrical settings for the device’s pins, such as enabling or disabling pull-up resistors.
Fields§
§sda_pull_up: u8Indicates whether the pull-up resistor for the SDA pin is enabled.
cs_pull_up: u8Indicates whether the pull-up resistor for the CS pin is enabled.
Auto Trait Implementations§
impl Freeze for PinConf
impl RefUnwindSafe for PinConf
impl Send for PinConf
impl Sync for PinConf
impl Unpin for PinConf
impl UnsafeUnpin for PinConf
impl UnwindSafe for PinConf
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