Nuand / bladeRF

bladeRF USB 3.0 Superspeed Software Defined Radio Source Code
http://nuand.com
Other
1.14k stars 456 forks source link

Fastlock profile within Nios II #948

Open TobyXue opened 11 months ago

TobyXue commented 11 months ago

Hello everyone,

I am encountering some issues about perfoming fastlock profiles within Nios II. As described in "bladerf2_common.h" from line 270 to line 274, it seems it can also be performed within Nios II processor:

 /** Store Fastlock profile. (Write)
 *
 * Stores the current tuning into a fastlock profile, for later recall
 */
BLADERF_RFIC_COMMAND_FASTLOCK = 0x0B,

From its description, it seems this command can merely store tunings to a fastlock profile for later recall, but there is no specified command to "recall" the stored fastlock profiles within Nios II.

Can anyone please tell me how to perform it properly within Nios II?

Many thanks in advance.

paulhprobert commented 11 months ago

Hi Toby, After grepping around in the source I don't see any commands at that level to recall the fastlock profile. But in ad9361.h and ad9361.c you can find references to registers such as REG_RX_FAST_LOCK_SETUP. So it looks like you might have to do your own spi.write operations into those registers. Inside the AD9361_Design_File_Package from ADI you can find a couple .pdf's that document those registers. Good luck!