Hi,
I have written a c code for GPIO toggling in USRP B205mini-i board. The pin should be high for 1microseconds and low for 1milliseconds. I have given the c code to verify whether it is correct or not?

    while(1)
    {
        uhd_usrp_get_time_now(usrp, mboard, &full_secs, &frac_secs);
uhd_usrp_set_command_time(usrp, full_secs , frac_secs + 1e-6, mboard); error = uhd_usrp_set_gpio_attr(usrp, bank, "OUT", 0x01, mask1, mboard);
        uhd_usrp_clear_command_time(usrp, 0);
        uhd_usrp_get_time_now(usrp, mboard, &full_secs, &frac_secs);
uhd_usrp_set_command_time(usrp, full_secs , frac_secs + 1e-3, mboard); error = uhd_usrp_set_gpio_attr(usrp, bank, "OUT", 0x00, mask1, mboard);
        uhd_usrp_clear_command_time(usrp, 0);
    }


Thanks.
_______________________________________________
USRP-users mailing list -- usrp-users@lists.ettus.com
To unsubscribe send an email to usrp-users-le...@lists.ettus.com

Reply via email to