Struct redpitaya_scpi::analog::Analog
[−]
[src]
pub struct Analog { /* fields omitted */ }
Methods
impl Analog
[src]
fn new(socket: Socket) -> Self
fn reset(&self)
Sets analog outputs to default values (0V).
fn set_value(&self, pin: OutputPin, value: f32)
Set analog voltage on slow analog outputs.
Voltage range of slow analog outputs is: 0 - 1.8 V
fn get_value<P>(&self, pin: P) -> Result<f32, <f32 as FromStr>::Err> where
P: Pin,
P: Pin,
Read analog voltage from slow analog inputs.
Voltage range of slow analog inputs is: 0 3.3 V
Trait Implementations
impl Clone for Analog
[src]
fn clone(&self) -> Analog
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