2022-10-17 01:22 PM
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);
2022-10-17 03:49 PM
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
2022-10-18 05:53 AM
Thank you, I will try and let you know if still there is some problem
2022-10-18 05:53 AM
Thank you, I will try and let you know if still there is some problem