cancel
Showing results for 
Search instead for 
Did you mean: 

Using SPI , which API is the best to write the register of LMX2595 freq. synthesizer,

RS009
Associate III

I tried to write the the register of LMX2595 through SPI using following API,

here R1 is of 3 Bytes , 1 Address byte + 2 Data bytes;

tData[3] = {0x07,0x30,0x0f}

HAL_SPI_Transmit(&hspi1, tData, 4, 100);

3 REPLIES 3
JMala.3
Associate III

That would work, but the size is wrong in the API. The array is 3 bytes, but the count in HAL_SPI_Transmit is 4 bytes

RS009
Associate III

Thank you, I will try and let you know if still there is some problem

Thank you, I will try and let you know if still there is some problem