I have been using the FPGA GPIO pins on LimeSDR Minis for transmit Power Amplifier switching for some time. Thanks to @ignusJ for the support added here: LimeSDR-Mini - GPIO Read Not Supported
I now want to do the same on a LimeNET Micro (J5 FPGA GPIO), but either the support has not been implemented, or I do not have the right calls. I’m using:
// Set up GPIOs for output
uint8_t gpio_dir = 0x8F; // set the 4 LSBs and the MSB to write
if (LMS_GPIODirWrite(device, &gpio_dir, 1) != 0) //1 byte buffer is enough to configure 8 GPIO pins on LimeSDR-USB
{
fprintf(stderr, "LMS_SetupStream() : %s\n", LMS_GetLastErrorMessage());
return 1;
}
// Set PTT on
if (LMS_GPIOWrite(device, &gpio_band, 1)!=0) //1 byte buffer is enough to write 8 GPIO pins on LimeSDR-USB
{
fprintf(stderr, "LMS_SetupStream() : %s\n", LMS_GetLastErrorMessage());
return 1;
}
Can anybody help me with the calls to configure then write to these ports?
Or are they just not implemented for the LimeNET Micro?
Thanks
Dave, G8GKQ