28 #ifndef _ADF7030_1__PATCH_C_ 30 #define _ADF7030_1__PATCH_C_ 38 #include <drivers/spi/adi_spi.h> 41 #include <devices/rf/adf703x/adf7030-1__spi.h> 42 #include <devices/rf/adf703x/adf7030-1__mem.h> 43 #include <devices/rf/adf703x/adf7030-1__patch.h> 57 #pragma diag_suppress=Pm073,Pm143 82 ADI_SPI_HANDLE hSPIDevice,
107 ADI_SPI_HANDLE hSPIDevice,
151 ADI_SPI_HANDLE hSPIDevice,
156 uint32_t InjectSeq = 0x20000000 + pPATCH->
InjectSeq;
184 ADI_SPI_HANDLE hSPIDevice,
189 uint32_t EjectSeq = 0x20000000 + pPATCH->
EjectSeq;
218 ADI_SPI_HANDLE hSPIDevice,
245 ADI_SPI_HANDLE hSPIDevice,
304 ADI_SPI_HANDLE hSPIDevice,
365 ADI_SPI_HANDLE hSPIDevice,
371 for(uint32_t i = 0; i < pPATCH->
nbBlock; i++)
395 uint32_t size = pPATCH->
BLOCKS[i].Size;
417 if(READ_nWRITE ==
true)
447 if(READ_nWRITE ==
true)
uint32_t adf7030_1__SPI_wr_byte_p_a(ADI_SPI_HANDLE hSPIDevice, ADI_ADF7030_1_RADIO_SPI_PNTR_TYPE pntrID, uint32_t num_xfrs, uint8_t *pDataIn)
Write a number of byte(s) from Host to memory of the adf7030-1 starting at location pointed by "pntr"...
uint32_t adf7030_1__XferPatch(ADI_SPI_HANDLE hSPIDevice, PATCH_DESCRIPTOR_Type *pPATCH, bool READ_nWRITE, bool CHECK_ONLY)
Generic Patch transfers function between Host and the Radio PHY.
uint32_t adf7030_1_ReadPatchInfo(ADI_SPI_HANDLE hSPIDevice, version_info_t *pPathInfo, uint32_t PhyAddr)
Function to read Patch Information from the PHY Radio.
uint32_t adf7030_1__VerifyPatch(ADI_SPI_HANDLE hSPIDevice, PATCH_DESCRIPTOR_Type *pPATCH)
Function call to verify the integrity of the patch.
uint16_t nbBlock
Total size of the Patch.
uint32_t adf7030_1__SPI_SetMMapCustomPntr0(ADI_SPI_HANDLE hSPIDevice, uint32_t Addr)
Change the SPI Radio mmap custom pointers 0 location.
uint32_t adf7030_1__SPI_rd_byte_p_a(ADI_SPI_HANDLE hSPIDevice, ADI_ADF7030_1_RADIO_SPI_PNTR_TYPE pntrID, uint32_t num_xfrs, uint8_t *pDataOut)
Read a number of bytes(s) from memory of the adf7030-1 to Host starting at location pointed by "pntr"...
uint32_t InfoAddr
Pointer to the Patch info structure in the host memory.
uint32_t adf7030_1__InjectPatch(ADI_SPI_HANDLE hSPIDevice, PATCH_DESCRIPTOR_Type *pPATCH)
Function call to re-enable the patch if needed.
uint32_t adf7030_1_WritePatchInfo(ADI_SPI_HANDLE hSPIDevice, version_info_t *pPathInfo, uint32_t PhyAddr)
Function to write Patch Information to the PHY Radio.
uint32_t adf7030_1__SPI_rd_cmp_byte_b_a(ADI_SPI_HANDLE hSPIDevice, ADI_ADF7030_1_RADIO_SPI_PNTR_TYPE pntrID, uint32_t AddrIn, uint32_t num_xfrs, uint8_t *pDataOut, uint8_t *pDataRef)
Read & Compare a number of bytes(s) from memory of the adf7030-1 to Host starting at location pointed...
const uint8_t * pData
Address of the memory bloc in the PHY memory space.
void adf7030_1__SPI_FindMMapPointer(ADI_SPI_HANDLE hSPIDevice, uint32_t Addr, ADI_ADF7030_1_RADIO_SPI_PNTR_TYPE *pPNTR_ID, int32_t *ByteOffset)
This function return the best Pointer id + offset for subsequent SPI transfert to the PHY "Addr" prov...
uint32_t adf7030_1__ReadPatch(ADI_SPI_HANDLE hSPIDevice, PATCH_DESCRIPTOR_Type *pPATCH)
Function call to readback the patch from Radio PHY.
const uint32_t Addr
If !NULL, force 32bits SPI transfer.
DATA_BLOCK_DESCRIPTOR_Type BLOCKS[]
Disable patch sequence.
ADI_ADF7030_1_RADIO_SPI_PNTR_TYPE
uint32_t adf7030_1__SPI_rd_byte_b_a(ADI_SPI_HANDLE hSPIDevice, ADI_ADF7030_1_RADIO_SPI_PNTR_TYPE pntrID, uint32_t AddrIn, uint32_t num_xfrs, uint8_t *pDataOut)
Read a number of bytes(s) from memory of the adf7030-1 to Host starting at location pointed by "pntr"...
uint32_t adf7030_1__SPI_wr_word_b_a(ADI_SPI_HANDLE hSPIDevice, uint32_t AddrIn, uint32_t num_xfrs, uint32_t *pDataIn)
Write a number of word(s) from Host to memory of the adf7030-1 Generic 32bits bloc address write to m...
uint32_t adf7030_1__WritePatch(ADI_SPI_HANDLE hSPIDevice, PATCH_DESCRIPTOR_Type *pPATCH)
Function call to write patch to Radio PHY.
uint32_t adf7030_1__SPI_wr_byte_b_a(ADI_SPI_HANDLE hSPIDevice, ADI_ADF7030_1_RADIO_SPI_PNTR_TYPE pntrID, uint32_t AddrIn, uint32_t num_xfrs, uint8_t *pDataIn)
Write a number of byte(s) from Host to memory of the adf7030-1 starting at location pointed by "pntr"...
uint32_t adf7030_1__SPI_rd_cmp_byte_p_a(ADI_SPI_HANDLE hSPIDevice, ADI_ADF7030_1_RADIO_SPI_PNTR_TYPE pntrID, uint32_t num_xfrs, uint8_t *pDataOut, uint8_t *pDataRef)
Read & Compare a number of bytes(s) from memory of the adf7030-1 to Host starting at location pointed...
uint16_t InjectSeq
Start location of the Patch info structure in the PHY.
uint32_t adf7030_1__EjectPatch(ADI_SPI_HANDLE hSPIDevice, PATCH_DESCRIPTOR_Type *pPATCH)
Function call to disnable the patch if needed.
uint16_t EjectSeq
Enable patch sequence.