ADF7030-1 Device Drivers API Reference Manual  Alpha 0.0.1
Device Drivers for ADF7030-1 Transceiver
adf7030-1__patch.h
1 #ifndef _ADF7030_1__PATCH_H_
2 #define _ADF7030_1__PATCH_H_
3 
4 #include <drivers/spi/adi_spi.h>
5 #include <devices/rf/adf703x/adi_adf7030-1_reg.h>
6 
15 extern uint32_t ADF7030_1_SPI_PNTR[8];
16 
17 
18 //Forward Typedef declarartion
20 
21 
24 typedef struct {
25  //char patch_name[69];
26  char patch_name[73];
27  uint16_t build_number;
28  char family_str[4];
29  uint16_t adiid;
30  uint16_t chipid;
31  uint8_t full_layer_num;
32  uint8_t eco_num;
33  uint16_t svn_version;
35 
36 
38  char Name[16];
39  uint16_t Size;
40  uint16_t nbBlock;
42  uint32_t InfoAddr;
43  uint16_t InjectSeq;
44  uint16_t EjectSeq;
46 };
47 
48 /* Write patch data to Radio PHY */
49 uint32_t adf7030_1__WritePatch(
50  ADI_SPI_HANDLE hSPIDevice,
51  PATCH_DESCRIPTOR_Type * pPATCH
52 );
53 
54 /* Read patch data from Radio PHY */
55 uint32_t adf7030_1__ReadPatch(
56  ADI_SPI_HANDLE hSPIDevice,
57  PATCH_DESCRIPTOR_Type * pPATCH
58 );
59 
60 /* Enable Patch sequence */
61 uint32_t adf7030_1__InjectPatch(
62  ADI_SPI_HANDLE hSPIDevice,
63  PATCH_DESCRIPTOR_Type * pPATCH
64 );
65 
66 /* Disable Patch sequence */
67 uint32_t adf7030_1__EjectPatch(
68  ADI_SPI_HANDLE hSPIDevice,
69  PATCH_DESCRIPTOR_Type * pPATCH
70 );
71 
72 /* Verify patch integrity */
73 uint32_t adf7030_1__VerifyPatch(
74  ADI_SPI_HANDLE hSPIDevice,
75  PATCH_DESCRIPTOR_Type * pPATCH
76 );
77 
78 /* Write patch description to PHY*/
80  ADI_SPI_HANDLE hSPIDevice,
81  version_info_t * pPathInfo,
82  uint32_t PhyAddr
83 );
84 
85 /* Read patch description from PHY*/
87  ADI_SPI_HANDLE hSPIDevice,
88  version_info_t * pPathInfo,
89  uint32_t PhyAddr
90 );
91 
92 /* Transfers memory blocks between Host shadow and the radio PHY */
93 uint32_t adf7030_1__XferPatch(
94  ADI_SPI_HANDLE hSPIDevice,
95  PATCH_DESCRIPTOR_Type * pPATCH,
96  bool READ_nWRITE,
97  bool CHECK_ONLY
98 );
99 
100 
101  /* End of group adf7030-1__patch PHY Patch Interface */ /* End of group adf7030-1 adf7030-1 Driver */
104 
105 #endif /* _ADF7030_1__PATCH_H_ */
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 InfoAddr
Pointer to the Patch info structure in the host memory.
version_info_t * pInfo
Number of data blocks.
uint32_t adf7030_1__InjectPatch(ADI_SPI_HANDLE hSPIDevice, PATCH_DESCRIPTOR_Type *pPATCH)
Function call to re-enable the patch if needed.
uint16_t Size
String with name of Patch.
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__ReadPatch(ADI_SPI_HANDLE hSPIDevice, PATCH_DESCRIPTOR_Type *pPATCH)
Function call to readback the patch from Radio PHY.
DATA_BLOCK_DESCRIPTOR_Type BLOCKS[]
Disable patch sequence.
uint32_t adf7030_1__WritePatch(ADI_SPI_HANDLE hSPIDevice, PATCH_DESCRIPTOR_Type *pPATCH)
Function call to write patch to Radio PHY.
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.