Hi,
   I have one issue in accessing the GPIO pin in B205mini-i board.
   what is the mask value in the API uhd_usrp_set_gpio_attr() function?

I have written code to access the pin 1 and 2. For that I have given the mask value as 0x01 and 0x02. I am able to control the GPIO pin 1 with mask value 0x01. But, I am unable to access the GPIO pin 2 with mask value 0x02.
   What may be the issue?
   The following is the code I have written.

const char* bank = "FP0";
size_t mboard = 0;

uhd_usrp_set_gpio_attr(usrp, bank, "CTRL", 0, 0x01, mboard);
uhd_usrp_set_gpio_attr(usrp, bank, "CTRL", 0, 0x02, mboard);

uhd_usrp_set_gpio_attr(usrp, bank, "DDR", 1, 0x01, mboard);
uhd_usrp_set_gpio_attr(usrp, bank, "DDR", 1, 0x02, mboard);

uhd_usrp_set_gpio_attr(usrp, bank, "OUT", 0, 0x01, mboard);
uhd_usrp_set_gpio_attr(usrp, bank, "OUT", 0, 0x02, mboard);

Thanks,
Kavinraj.
_______________________________________________
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