[−][src]Struct linuxcnc_hal::hal_pin::OutputPin
Wrapping struct to specialise a HAL pin to an output
Methods
impl<P> OutputPin<P> where
P: HalPin,
[src]
P: HalPin,
pub fn new(name: String, component_id: i32) -> Result<Self, PinRegisterError>
[src]
Register a new output pin with the HAL
Requires the full pin name including component like vfd.spindle-speed-out
or
jog-pendant.is-estopped
. The component ID should be fetched from
[HalComponentBuilder.id
].
pub fn set_value(&self, value: P::Storage) -> Result<(), StorageError>
[src]
Set the pin's value
Auto Trait Implementations
impl<P> RefUnwindSafe for OutputPin<P> where
P: RefUnwindSafe,
P: RefUnwindSafe,
impl<P> Send for OutputPin<P> where
P: Send,
P: Send,
impl<P> Sync for OutputPin<P> where
P: Sync,
P: Sync,
impl<P> Unpin for OutputPin<P> where
P: Unpin,
P: Unpin,
impl<P> UnwindSafe for OutputPin<P> where
P: UnwindSafe,
P: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,