I am modifying Lime Suite for a custom board to run with C API([https://github.com/myriadrf/LMS7002M-driver]) . My main aim is to communicate directly to LMS7002M chip via SPI protocol from Raspberry pi without any USB device like FTDI.
I thougth it was easy , I just had to modify Modify_SPI_Reg_bits with LMS7002M_spi_write and it would work . However, there is too much initialization in lime suite like LMS_Open initializes lms_device_t device* which is cast into lime::LMS7_Device lms* . This new object is used to call functions like
As I have no USB connection , these objects would never get initialized and I always get an error “Device cannot be NULL.” . How do I create dummy versions of these objects , so I can call all functions successfully ?
Is there a step by step procedure which I can follow ?