Hi all,

In a project using an X310 and the Python api the requirement is to toggle
GPIO pins 0 and 1 whenever the device is transmitting or receiving.
The code is as follows:
PIN_0_MASK = (1 << 0)
PIN_1_MASK = (1 << 1)
PIN_MASK = PIN_0_MASK | PIN_1_MASK

usrp.set_gpio_attr("FP0A", "CTRL", PIN_MASK, 0xFFF)
usrp.set_gpio_attr("FP0A", "DDR", PIN_MASK, 0xFFF)
usrp.set_gpio_attr("FP0A", "ATR_0X", 0x000, 0xFFF)
usrp.set_gpio_attr("FP0A", "ATR_RX", PIN_MASK, 0xFFF)
usrp.set_gpio_attr("FP0A", "ATR_TX", PIN_MASK, 0xFFF)
usrp.set_gpio_attr("FP0A", "ATR_XX", 0x000, 0xFFF)
This works for ATR_RX, but TX does not trigger the ATR. While the LED does
light up, the GPIO pin does nothing.
Both TX and RX are bursted. Is this a bug?

Thanks!

Tim
_______________________________________________
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