3.1.11 Synthesizer Address
This register allows the user to provide samples to the metrology library, replacing the samples typically received from the ADCs. The register holds a 32-bit address that must point to a descriptor with the following structure.
typedef struct {
DRV_METROLOGY_SYN_CONTROL control;
uint32_t *pData;
void *next;
} DRV_METROLOGY_SYN_DESCRIPTOR;
Where,
- The
pDatafield is a pointer to a table containing the samples. - The
nextfield is a pointer to the next descriptor. Ifnextis set to 0 (NULL), there are no additional descriptors. - The
controlfield is a 32-bit value with the following structure.typedef struct { unsigned int numSamples : 19; unsigned int channel : 5; unsigned int key : 8; } DRV_METROLOGY_SYN_CONTROL;Where,
numSamplesis the number of samples in the tablechannelindicates the physical channel associated with the sampleskeyis a security field that must be set to 0x5A
| Bits | Name | Description |
|---|---|---|
| 0-18 | numSamples | Number of samples in the table |
| 19-23 | channel | Physical channel number |
| 24-31 | key | Must be set to 0x5A |
Descriptors are processed once the synthesizer is enabled (bit 13 of FEATURE_CTRL). To modify the descriptors, first disable the synthesizer, make the necessary changes, and then re-enable the synthesizer.
| Name: | SYNTHESIZER_ADDR |
| Property: | Read-Write |
| Bit | 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | |
| SYNTHESIZER_ADDR[31:24] | |||||||||
| Access | R/W | R/W | R/W | R/W | R/W | R/W | R/W | R/W | |
| Reset | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |
| Bit | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | |
| SYNTHESIZER_ADDR[23:16] | |||||||||
| Access | R/W | R/W | R/W | R/W | R/W | R/W | R/W | R/W | |
| Reset | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |
| Bit | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | |
| SYNTHESIZER_ADDR[15:8] | |||||||||
| Access | R/W | R/W | R/W | R/W | R/W | R/W | R/W | R/W | |
| Reset | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |
| Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
| SYNTHESIZER_ADDR[7:0] | |||||||||
| Access | R/W | R/W | R/W | R/W | R/W | R/W | R/W | R/W | |
| Reset | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |
