pub struct DigitalInput { /* fields omitted */ }
Class to read a digital input.
This class will read digital inputs and return the current value on the
channel. Other devices such as encoders, gear tooth sensors, etc. that are
implemented elsewhere will automatically allocate digital inputs and outputs
as required. This class is only for devices like switches etc. that aren't
implemented anywhere else.
Get the value from the digital input channel from the FPGA.
Executes the destructor for this type. Read more
Formats the value using the given formatter. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)