pub struct VoltagePin { /* private fields */ }
Expand description
The setting of Dediprog programming voltage is exposed as a “pin” in DAC mode.
Implementations§
Trait Implementations§
Source§impl GpioPin for VoltagePin
impl GpioPin for VoltagePin
Source§fn write(&self, _value: bool) -> Result<()>
fn write(&self, _value: bool) -> Result<()>
Sets the value of the GPIO reset pin by means of the special h1_reset command.
Source§fn set_mode(&self, mode: PinMode) -> Result<()>
fn set_mode(&self, mode: PinMode) -> Result<()>
Sets the mode of the GPIO pin as input, output, or open drain I/O.
Source§fn set_pull_mode(&self, mode: PullMode) -> Result<()>
fn set_pull_mode(&self, mode: PullMode) -> Result<()>
Sets the weak pull resistors of the GPIO pin.
Source§fn analog_read(&self) -> Result<f32>
fn analog_read(&self) -> Result<f32>
Reads the Dediprog voltage in Volts.
Source§fn set(
&self,
mode: Option<PinMode>,
value: Option<bool>,
pull: Option<PullMode>,
analog_value: Option<f32>,
) -> Result<()>
fn set( &self, mode: Option<PinMode>, value: Option<bool>, pull: Option<PullMode>, analog_value: Option<f32>, ) -> Result<()>
Simultaneously sets mode, value, and weak pull, some transports may guarantee atomicity.
Source§fn get_internal_pin_name(&self) -> Option<&str>
fn get_internal_pin_name(&self) -> Option<&str>
Not meant for API clients, this method returns the pin name as it is known to the
transport (which may have been through one or more alias mappings from the name provided
by the API client.) This method is used by implementations of
GpioMonitoring
.Auto Trait Implementations§
impl Freeze for VoltagePin
impl !RefUnwindSafe for VoltagePin
impl !Send for VoltagePin
impl !Sync for VoltagePin
impl Unpin for VoltagePin
impl !UnwindSafe for VoltagePin
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