Struct redpitaya_scpi::digital::Digital
[−]
[src]
pub struct Digital { /* fields omitted */ }
Methods
impl Digital
[src]
fn new(socket: Socket) -> Self
fn reset(&self)
Sets digital pins to default values.
Pins DIO1_P - DIO7_P, RP_DIO0_N - RP_DIO7_N are set al OUTPUT and to LOW. LEDs are set to LOW/OFF
fn set_direction<P>(&self, pin: P, direction: Direction) where
P: Pin,
P: Pin,
Set direction of digital pins to output or input.
fn set_state<P>(&self, pin: P, state: State) where
P: Pin,
P: Pin,
Set state of digital outputs to 1 (HIGH) or 0 (LOW).
fn get_state<P>(&self, pin: P) -> Result<State, <State as FromStr>::Err> where
P: Pin,
P: Pin,
Get state of digital inputs and outputs.
Trait Implementations
impl Clone for Digital
[src]
fn clone(&self) -> Digital
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more