fn recv_ack(&self) {
        (self.pin_clock_write_fn)(GpioPinValue::LOW);
        (self.pin_dio_write_fn)(GpioPinValue::LOW);
        self.bit_delay();
        (self.pin_clock_write_fn)(GpioPinValue::HIGH);

        let ack: GpioPinValue = (self.pin_dio_read_fn)();

        // wait a few cycles for ACK to be more fail safe
        for _ in 0..10 {
            if ack as u8 == 0 { break; }
            else {
                // ACK should be one clock with zero on data lane

                // not possible with no_std; TODO provide debug function
                // eprintln!("ack is not 0! Probably not a problem, tho.")
            }
        }

        (self.pin_clock_write_fn)(GpioPinValue::LOW);
        (self.pin_dio_write_fn)(GpioPinValue::LOW);
        self.bit_delay();
    }
/// Receives one acknowledgment after a byte was sent.
Receives one acknowledgment after a byte was sent.
Receives one acknowledgment after a byte was sent .
fn recv_ack(&self) {
        (self.pin_clock_write_fn)(GpioPinValue::LOW);
        (self.pin_dio_write_fn)(GpioPinValue::LOW);
        self.bit_delay();
        (self.pin_clock_write_fn)(GpioPinValue::HIGH);
        let ack: GpioPinValue = (self.pin_dio_read_fn)();
        // wait a few cycles for ACK to be more fail safe
        for _ in 0..10 {
            if ack as u8 == 0 { break; }
            else {
                // ACK should be one clock with zero on data lane
                // not possible with no_std; TODO provide debug function
                // eprintln!("ack is not 0! Probably not a problem, tho.")
            }
        }
        (self.pin_clock_write_fn)(GpioPinValue::LOW);
        (self.pin_dio_write_fn)(GpioPinValue::LOW);
        self.bit_delay();
    }
fn recv_ack ( & self ) { ( self . pin_clock_write_fn ) ( GpioPinValue :: LOW ) ; ( self . pin_dio_write_fn ) ( GpioPinValue :: LOW ) ; self . bit_delay ( ) ; ( self . pin_clock_write_fn ) ( GpioPinValue :: HIGH ) ; let ack : GpioPinValue = ( self . pin_dio_read_fn ) ( ) ; // wait a few cycles for ACK to be more fail safe for _ in 0 .. 10 { if ack as u8 == 0 { break ; } else { // ACK should be one clock with zero on data lane // not possible with no_std; TODO provide debug function // eprintln!("ack is not 0! Probably not a problem, tho.") } } ( self . pin_clock_write_fn ) ( GpioPinValue :: LOW ) ; ( self . pin_dio_write_fn ) ( GpioPinValue :: LOW ) ; self . bit_delay ( ) ; }
Receives one acknowledgment after a byte was sent.
Receives one acknowledgment after a byte was sent .
&self