no-OS
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
mykonos.h
Go to the documentation of this file.
1
7
14
15#ifndef _MYKONOS_LIB_H_
16#define _MYKONOS_LIB_H_
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
22#include "t_mykonos.h"
23#include "mykonos_version.h"
24
25#define TX_PROFILE_VALID 0x01
26#define RX_PROFILE_VALID 0x02
27#define ORX_PROFILE_VALID 0x04
28#define SNIFF_PROFILE_VALID 0x08
29
30/*
31 ****************************************************************************
32 * General Initialization functions
33 ****************************************************************************
34 */
44mykonosErr_t MYKONOS_getApiVersion (mykonosDevice_t *device, uint32_t *siVer, uint32_t *majorVer, uint32_t *minorVer, uint32_t *buildVer);
45
46/*
47 *****************************************************************************
48 * PLL / Synthesizer functions
49 *****************************************************************************
50 */
55mykonosErr_t MYKONOS_setRfPllLoopFilter(mykonosDevice_t *device, mykonosRfPllName_t pllName, uint16_t loopBandwidth_kHz, uint8_t stability);
56mykonosErr_t MYKONOS_getRfPllLoopFilter(mykonosDevice_t *device, mykonosRfPllName_t pllName, uint16_t *loopBandwidth_kHz, uint8_t *stability);
57/*
58 *****************************************************************************
59 * ARM Processor Control Functions
60 *****************************************************************************
61 */
63mykonosErr_t MYKONOS_loadArmFromBinary(mykonosDevice_t *device, uint8_t *binary, uint32_t count);
64mykonosErr_t MYKONOS_loadArmConcurrent(mykonosDevice_t *device, uint8_t *binary, uint32_t count);
67mykonosErr_t MYKONOS_getArmVersion(mykonosDevice_t *device, uint8_t *majorVer, uint8_t *minorVer, uint8_t *rcVer, mykonosBuild_t *buildType);
68
72mykonosErr_t MYKONOS_restoreDpdModel(mykonosDevice_t *device, mykonosTxChannels_t txChannel, uint8_t *modelDataBuffer, uint32_t modelNumberBytes);
73mykonosErr_t MYKONOS_saveDpdModel(mykonosDevice_t *device, mykonosTxChannels_t txChannel, uint8_t *modelDataBuffer, uint32_t modelNumberBytes);
80
83
88
92
94mykonosErr_t MYKONOS_waitInitCals(mykonosDevice_t *device, uint32_t timeoutMs, uint8_t *errorFlag, uint8_t *errorCode);
97
99
113
116
119
122
124
125/* Low level ARM functions */
126mykonosErr_t MYKONOS_readArmMem(mykonosDevice_t *device, uint32_t address, uint8_t *returnData, uint32_t bytesToRead, uint8_t autoIncrement);
127mykonosErr_t MYKONOS_writeArmMem(mykonosDevice_t *device, uint32_t address, uint8_t *data, uint32_t byteCount);
128mykonosErr_t MYKONOS_writeArmConfig(mykonosDevice_t *device, uint8_t objectId, uint16_t offset, uint8_t *data, uint8_t byteCount);
129mykonosErr_t MYKONOS_readArmConfig(mykonosDevice_t *device, uint8_t objectId, uint16_t offset, uint8_t *data, uint8_t byteCount);
130mykonosErr_t MYKONOS_sendArmCommand(mykonosDevice_t *device, uint8_t opCode, uint8_t *extendedData, uint8_t extendedDataNumBytes);
131mykonosErr_t MYKONOS_readArmCmdStatus(mykonosDevice_t *device, uint16_t *errorWord, uint16_t *statusWord);
132mykonosErr_t MYKONOS_readArmCmdStatusByte(mykonosDevice_t *device, uint8_t opCode, uint8_t *cmdStatByte);
133mykonosErr_t MYKONOS_waitArmCmdStatus(mykonosDevice_t *device, uint8_t opCode, uint32_t timeoutMs, uint8_t *cmdStatByte);
136
137
138/*
139 *****************************************************************************
140 * JESD204B Datapath Functions
141 *****************************************************************************
142 */
143/* Functions to setup the JESD204B IP */
152
153/* Functions to initialize the JESD204B link */
154mykonosErr_t MYKONOS_enableMultichipSync(mykonosDevice_t *device, uint8_t enableMcs, uint8_t *mcsStatus);
158
159/* Functions to help debug the JESD204B link */
163mykonosErr_t MYKONOS_getDeframerFifoDepth(mykonosDevice_t *device, uint8_t *fifoDepth, uint8_t *readEnLmfcCount);
164
165/* PRBS debug functions */
172mykonosErr_t MYKONOS_readDeframerPrbsCounters(mykonosDevice_t *device, uint8_t counterSelect, uint32_t *prbsErrorCount);
173
174/* Miscellaneous debug functions */
178
179/*
180 *****************************************************************************
181 * Shared Data path functions
182 *****************************************************************************
183 */
186
187/*
188 *****************************************************************************
189 * Rx Data path functions
190 *****************************************************************************
191 */
192mykonosErr_t MYKONOS_programRxGainTable(mykonosDevice_t *device, uint8_t *gainTablePtr, uint8_t numGainIndexesInTable, mykonosGainTable_t rxChannel);
199mykonosErr_t MYKONOS_setRxAgcMinMaxGainIndex(mykonosDevice_t *device, mykonosRxChannels_t rxChannelSelect, uint8_t maxGainIndex, uint8_t minGainIndex);
200mykonosErr_t MYKONOS_setObsRxAgcMinMaxGainIndex(mykonosDevice_t *device, mykonosObsRxChannels_t obsRxChannelSelect, uint8_t maxGainIndex, uint8_t minGainIndex);
202mykonosErr_t MYKONOS_getRx1TempGainComp(mykonosDevice_t *device, int16_t *rx1TempCompGain_mdB);
204mykonosErr_t MYKONOS_getRx2TempGainComp(mykonosDevice_t *device, int16_t *rx2TempCompGain_mdB);
205mykonosErr_t MYKONOS_setObsRxTempGainComp(mykonosDevice_t *device, int16_t obsRxTempCompGain_mdB);
206mykonosErr_t MYKONOS_getObsRxTempGainComp(mykonosDevice_t *device, int16_t *obsRxTempCompGain_mdB);
209mykonosErr_t MYKONOS_getRx1DecPower(mykonosDevice_t *device, uint16_t *rx1DecPower_mdBFS);
210mykonosErr_t MYKONOS_getRx2DecPower(mykonosDevice_t *device, uint16_t *rx2DecPower_mdBFS);
211
212/*
213 *****************************************************************************
214 * Observation Rx Data path functions
215 *****************************************************************************
216 */
225mykonosErr_t MYKONOS_getObsRxDecPower(mykonosDevice_t *device, uint16_t *obsRxDecPower_mdBFS);
226
227/*
228 *****************************************************************************
229 * Tx Data path functions
230 *****************************************************************************
231 */
232mykonosErr_t MYKONOS_setTx1Attenuation(mykonosDevice_t *device, uint16_t tx1Attenuation_mdB);
233mykonosErr_t MYKONOS_setTx2Attenuation(mykonosDevice_t *device, uint16_t tx2Attenuation_mdB);
234mykonosErr_t MYKONOS_getTx1Attenuation(mykonosDevice_t *device, uint16_t *tx1Attenuation_mdB);
235mykonosErr_t MYKONOS_getTx2Attenuation(mykonosDevice_t *device, uint16_t *tx2Attenuation_mdB);
237mykonosErr_t MYKONOS_enableTxNco(mykonosDevice_t *device, uint8_t enable, int32_t tx1ToneFreq_kHz, int32_t tx2ToneFreq_kHz);
238
239/*
240 *****************************************************************************
241 * PA Protection Functions
242 *****************************************************************************
243 */
244mykonosErr_t MYKONOS_setupPaProtection(mykonosDevice_t *device, uint16_t powerThreshold, uint8_t attenStepSize, uint8_t avgDuration, uint8_t stickyFlagEnable, uint8_t txAttenControlEnable);
249
250/*
251 *****************************************************************************
252 * Low level functions and helper functions. BBP should not need to call
253 *****************************************************************************
254 */
255const char* getMykonosErrorMessage(mykonosErr_t errorCode);
256
260
261/*
262 *****************************************************************************
263 * Functions to configure DC offsets
264 *****************************************************************************
265 */
272
273#ifdef __cplusplus
274}
275#endif
276
277#endif
mykonosErr_t MYKONOS_enableObsRxFramerPrbs(mykonosDevice_t *device, mykonosPrbsOrder_t polyOrder, uint8_t enable)
Selects the PRBS type and enables or disables OBSRX Framer PRBS20 generation.
Definition mykonos.c:10763
mykonosErr_t MYKONOS_enableTxNco(mykonosDevice_t *device, uint8_t enable, int32_t tx1ToneFreq_kHz, int32_t tx2ToneFreq_kHz)
Enables/Disables the Tx NCO test tone.
Definition mykonos.c:6657
mykonosErr_t MYKONOS_enableTrackingCals(mykonosDevice_t *device, uint32_t enableMask)
Sets which ARM tracking cals are enabled during the radioOn state.
Definition mykonos.c:11742
mykonosErr_t MYKONOS_enableSysrefToObsRxFramer(mykonosDevice_t *device, uint8_t enable)
Enables or disables SYSREF to the transceiver's Observation RX framer.
Definition mykonos.c:10467
mykonosErr_t MYKONOS_writeArmConfig(mykonosDevice_t *device, uint8_t objectId, uint16_t offset, uint8_t *data, uint8_t byteCount)
Low level helper function used by Mykonos API to write the ARM memory config structures.
Definition mykonos.c:15799
mykonosErr_t MYKONOS_getDeframerFifoDepth(mykonosDevice_t *device, uint8_t *fifoDepth, uint8_t *readEnLmfcCount)
Reads the Mykonos JESD204b Deframer determinstic FIFO depth.
Definition mykonos.c:10669
mykonosErr_t MYKONOS_getDpdBypassConfig(mykonosDevice_t *device, mykonosDpdBypassConfig_t *actConfig)
Get configuration for bypassing DPD actuator.
Definition mykonos.c:18155
mykonosErr_t MYKONOS_getTxFilterOverRangeStatus(mykonosDevice_t *device, uint8_t *txFilterStatus)
Checks the Tx Filter over-range bit assignments for digital clipping in the Tx data path.
Definition mykonos.c:6614
mykonosErr_t MYKONOS_setSpiSettings(mykonosDevice_t *device)
Sets the Mykonos device SPI settings (3wire/4wire, MSBFirst, etc).
Definition mykonos.c:373
mykonosErr_t MYKONOS_enableSysrefToDeframer(mykonosDevice_t *device, uint8_t enable)
Enables or disables SYSREF to the transceiver's deframer.
Definition mykonos.c:10497
mykonosErr_t MYKONOS_getClgcAttenTuningConfig(mykonosDevice_t *device, mykonosClgcAttenTuningConfig_t *attRangeCfg)
Get configuration for CLGC Tx attenuation tuning range.
Definition mykonos.c:18413
mykonosErr_t MYKONOS_getDacPower(mykonosDevice_t *device, mykonosTxChannels_t channel, uint16_t *channelPower)
Obtains an estimate of a TX channel's accumulated power over the sample duration provided in MYKONOS_...
Definition mykonos.c:6870
mykonosErr_t MYKONOS_restoreDpdModel(mykonosDevice_t *device, mykonosTxChannels_t txChannel, uint8_t *modelDataBuffer, uint32_t modelNumberBytes)
This function will allow loading of the DPD model file.
Definition mykonos.c:14142
mykonosErr_t MYKONOS_setRx2TempGainComp(mykonosDevice_t *device, int16_t rx2TempCompGain_mdB)
This function sets the Temperature gain compensation for Rx2 channel.
Definition mykonos.c:4824
mykonosErr_t MYKONOS_setRx1TempGainComp(mykonosDevice_t *device, int16_t rx1TempCompGain_mdB)
This function sets the Temperature gain compensation for Rx1 channel.
Definition mykonos.c:4724
mykonosErr_t MYKONOS_getDpdActuatorCheck(mykonosDevice_t *device, mykonosDpdActuatorCheck_t *actCheck)
Get configuration for DPD actuator check.
Definition mykonos.c:18263
mykonosErr_t MYKONOS_getApiVersion(mykonosDevice_t *device, uint32_t *siVer, uint32_t *majorVer, uint32_t *minorVer, uint32_t *buildVer)
Get API version number.
Definition mykonos.c:328
mykonosErr_t MYKONOS_setRxFramerDataSource(mykonosDevice_t *device, uint8_t dataSource)
Select data to inject into the Rx framer input (ADC data or Loopback data from deframer output)
Definition mykonos.c:11192
mykonosErr_t MYKONOS_enablePaProtection(mykonosDevice_t *device, uint8_t enable)
Enables the Mykonos PA Protection block according to the parameters passed in MYKONOS_setupPaProtecti...
Definition mykonos.c:6833
mykonosErr_t MYKONOS_writeArmProfile(mykonosDevice_t *device)
Mykonos ARM configuration write.
Definition mykonos.c:16189
mykonosErr_t MYKONOS_setObsRxFramerDataSource(mykonosDevice_t *device, uint8_t dataSource)
Select data to inject into the ObsRx framer input (ADC data or Loopback data from deframer output)
Definition mykonos.c:11222
mykonosErr_t MYKONOS_setClgcAttenTuningConfig(mykonosDevice_t *device, mykonosClgcAttenTuningConfig_t *attRangeCfg)
CLGC feature to set the TX attenuation tuning range to a relative range around a nominal value.
Definition mykonos.c:18313
mykonosErr_t MYKONOS_verifyDeviceDataStructure(mykonosDevice_t *device)
Verifies the integrity of the Mykonos device data structure.
Definition mykonos.c:435
mykonosErr_t MYKONOS_getDpdErrorCounters(mykonosDevice_t *device, mykonosTxChannels_t txChannel, mykonosDpdErrorCounters_t *dpdErrCnt)
This function reads the current error counters for all the DPD error codes from mykonosDpdErrors_t.
Definition mykonos.c:17994
mykonosErr_t MYKONOS_setDigDcOffsetEn(mykonosDevice_t *device, uint8_t enableMask)
Enable/ Disable Digital DC Offset channels using the channel mask. The mask can be a combination of t...
Definition mykonos.c:17650
mykonosErr_t MYKONOS_setDigDcOffsetMShift(mykonosDevice_t *device, mykonosDcOffsetChannels_t channel, uint8_t mShift)
Sets M-Shift value which is the Corner frequency of Rx notch filter for the given channel....
Definition mykonos.c:17310
mykonosErr_t MYKONOS_getPathDelay(mykonosDevice_t *device, mykonosPathDelaySel_t select, mykonosPathdelay_t *pathDelay)
This function will read the current path delay settings for the selected calibration.
Definition mykonos.c:17863
mykonosErr_t MYKONOS_setupDeserializers(mykonosDevice_t *device)
Sets up the JESD204B Deserializers.
Definition mykonos.c:8737
mykonosErr_t MYKONOS_enableMultichipSync(mykonosDevice_t *device, uint8_t enableMcs, uint8_t *mcsStatus)
Sets up the chip for multichip sync, and cleans up after MCS.
Definition mykonos.c:10395
mykonosErr_t MYKONOS_rescheduleTrackingCal(mykonosDevice_t *device, mykonosTrackingCalibrations_t trackingCal)
Reschedules a tracking calibration to run. Can be used to override the tracking calibration timer and...
Definition mykonos.c:11857
mykonosErr_t MYKONOS_setupJesd204bObsRxFramer(mykonosDevice_t *device)
Sets up the JESD204B OBSRX Framer.
Definition mykonos.c:9472
mykonosErr_t MYKONOS_setAllTrackCalState(mykonosDevice_t *device, uint32_t trackingCalMask)
Suspend or resume tracking calibrations in RADIO_ON.
Definition mykonos.c:12015
mykonosErr_t MYKONOS_readOrxFramerStatus(mykonosDevice_t *device, uint8_t *obsFramerStatus)
Reads the transceiver's Observation RX framer status.
Definition mykonos.c:10577
mykonosErr_t MYKONOS_readEventStatus(mykonosDevice_t *device, waitEvent_t waitEvent, uint8_t *eventDone)
Performs a readback with no wait for a Mykonos calibration or Pll Lock.
Definition mykonos.c:1750
mykonosErr_t MYKONOS_getDeviceRev(mykonosDevice_t *device, uint8_t *revision)
Reads back the silicon revision for the Mykonos Device.
Definition mykonos.c:271
mykonosErr_t MYKONOS_initialize(mykonosDevice_t *device)
Initializes the Mykonos device based on the desired device settings.
Definition mykonos.c:600
mykonosErr_t MYKONOS_getObsRxGain(mykonosDevice_t *device, uint8_t *gainIndex)
Gets the gain index of the currently enabled ObsRx channel.
Definition mykonos.c:5513
mykonosErr_t MYKONOS_setupSerializers(mykonosDevice_t *device)
Sets up the JESD204B Serializers.
Definition mykonos.c:8165
mykonosErr_t MYKONOS_setupJesd204bDeframer(mykonosDevice_t *device)
Sets up the JESD204B Deframer.
Definition mykonos.c:10035
mykonosErr_t MYKONOS_getClgcStatus(mykonosDevice_t *device, mykonosTxChannels_t txChannel, mykonosClgcStatus_t *clgcStatus)
This function reads the CLGC calibration status from the Mykonos ARM processor.
Definition mykonos.c:15000
mykonosErr_t MYKONOS_loadAdcProfiles(mykonosDevice_t *device)
Function called automatically that loads the ADC profiles into the ARM.
Definition mykonos.c:16509
mykonosErr_t MYKONOS_enableObsRxFramerLink(mykonosDevice_t *device, uint8_t enable)
Enables/Disables the JESD204B ObsRx Framer.
Definition mykonos.c:9956
mykonosErr_t MYKONOS_getVswrConfig(mykonosDevice_t *device)
Definition mykonos.c:15397
mykonosErr_t MYKONOS_waitInitCals(mykonosDevice_t *device, uint32_t timeoutMs, uint8_t *errorFlag, uint8_t *errorCode)
Blocking waits for the Mykonos initialization calibrations to complete.
Definition mykonos.c:11315
mykonosErr_t MYKONOS_getClgcConfig(mykonosDevice_t *device)
Definition mykonos.c:14883
mykonosErr_t MYKONOS_getRx1TempGainComp(mykonosDevice_t *device, int16_t *rx1TempCompGain_mdB)
This function gets the Temperature gain compensation for Rx1.
Definition mykonos.c:4771
mykonosErr_t MYKONOS_getTx1Attenuation(mykonosDevice_t *device, uint16_t *tx1Attenuation_mdB)
Reads back the Tx1 RF output Attenuation.
Definition mykonos.c:6515
mykonosErr_t MYKONOS_loadArmFromBinary(mykonosDevice_t *device, uint8_t *binary, uint32_t count)
Loads binary byte array into ARM program memory.
Definition mykonos.c:13195
mykonosErr_t MYKONOS_configClgc(mykonosDevice_t *device)
This function will configure CLGC settings.
Definition mykonos.c:14658
mykonosErr_t MYKONOS_getRx1Gain(mykonosDevice_t *device, uint8_t *rx1GainIndex)
Reads the Rx1 Gain Index for Manual or AGC gain control mode.
Definition mykonos.c:3777
mykonosErr_t MYKONOS_enableRxFramerLink(mykonosDevice_t *device, uint8_t enable)
Enables/Disables the JESD204B Rx Framer.
Definition mykonos.c:9888
mykonosErr_t MYKONOS_getDpdStatus(mykonosDevice_t *device, mykonosTxChannels_t txChannel, mykonosDpdStatus_t *dpdStatus)
This function reads the DPD calibration status from the Mykonos ARM processor.
Definition mykonos.c:13974
mykonosErr_t MYKONOS_radioOff(mykonosDevice_t *device)
Instructs the ARM processor to move the radio state to the off state.
Definition mykonos.c:11626
mykonosErr_t MYKONOS_setRadioControlPinMode(mykonosDevice_t *device)
Configures the Radio power up/down control for Rx and Tx paths to be controlled by pins (TX1/2_ENABLE...
Definition mykonos.c:17054
mykonosErr_t MYKONOS_setObsRxTempGainComp(mykonosDevice_t *device, int16_t obsRxTempCompGain_mdB)
This function sets the Temperature gain compensation for the observation channel.
Definition mykonos.c:4924
mykonosErr_t MYKONOS_setupRxAgc(mykonosDevice_t *device)
Sets up the device Rx Automatic Gain Control (AGC) registers.
Definition mykonos.c:3954
mykonosErr_t MYKONOS_readDeframerStatus(mykonosDevice_t *device, uint8_t *deframerStatus)
Reads the transceiver's deframer status.
Definition mykonos.c:10622
mykonosErr_t MYKONOS_setDefaultObsRxPath(mykonosDevice_t *device, mykonosObsRxChannels_t defaultObsRxCh)
Sets the default Obs Rx channel to enter when device moves from radioOff to radioOn.
Definition mykonos.c:5218
mykonosErr_t MYKONOS_verifyArmChecksum(mykonosDevice_t *device)
Verifies the ARM checksum value.
Definition mykonos.c:13433
mykonosErr_t MYKONOS_getDigDcOffsetEn(mykonosDevice_t *device, uint8_t *enableMask)
reads Enable/ Disable channels Digital DC Offset and returns a mask of it. The mask returned will be ...
Definition mykonos.c:17708
mykonosErr_t MYKONOS_resetDpd(mykonosDevice_t *device, mykonosTxChannels_t txChannel, mykonosDpdResetMode_t reset)
This function resets the DPD model.
Definition mykonos.c:14576
mykonosErr_t MYKONOS_getRx2Gain(mykonosDevice_t *device, uint8_t *rx2GainIndex)
Reads the Rx2 Gain Index for Manual or AGC gain control mode.
Definition mykonos.c:3824
mykonosErr_t MYKONOS_readArmMem(mykonosDevice_t *device, uint32_t address, uint8_t *returnData, uint32_t bytesToRead, uint8_t autoIncrement)
Read from the Mykonos ARM program or data memory.
Definition mykonos.c:15588
mykonosErr_t MYKONOS_initSubRegisterTables(mykonosDevice_t *device)
Write indirect registers (Programmable FIRs, Rx gain tables, JESD204B settings). Must be done after M...
Definition mykonos.c:1377
mykonosErr_t MYKONOS_resetExtTxLolChannel(mykonosDevice_t *device, mykonosTxChannels_t channelSel)
Performs reset to the External Tx LO Leakage tracking calibration channel estimate.
Definition mykonos.c:16977
mykonosErr_t MYKONOS_getAllTrackCalState(mykonosDevice_t *device, uint32_t *trackCals)
Get the Suspended or Resumed state for tracking calibrations.
Definition mykonos.c:12120
mykonosErr_t MYKONOS_getRfDcOffsetCnt(mykonosDevice_t *device, mykonosDcOffsetChannels_t channel, uint16_t *measureCount)
retrieves the measure count which is the number of samples taken before DC offset correction is appli...
Definition mykonos.c:17231
mykonosErr_t MYKONOS_getArmVersion(mykonosDevice_t *device, uint8_t *majorVer, uint8_t *minorVer, uint8_t *rcVer, mykonosBuild_t *buildType)
Reads back the version of the ARM binary loaded into the Mykonos ARM memory.
Definition mykonos.c:13617
mykonosErr_t MYKONOS_obsRxInjectPrbsError(mykonosDevice_t *device)
Initiates a PRBS error injection into the Observation RX data path.
Definition mykonos.c:10828
mykonosErr_t MYKONOS_getVswrStatus(mykonosDevice_t *device, mykonosTxChannels_t txChannel, mykonosVswrStatus_t *vswrStatus)
This function reads the VSWR calibration status from the Mykonos ARM processor.
Definition mykonos.c:15477
mykonosErr_t MYKONOS_getTxQecStatus(mykonosDevice_t *device, mykonosTxChannels_t txChannel, mykonosTxQecStatus_t *txQecStatus)
Returns the status of the TxQEC tracking calibration.
Definition mykonos.c:12680
mykonosErr_t MYKONOS_setRxPfirSyncClk(mykonosDevice_t *device)
Sets the digital Rx PFIR SYNC clock divider.
Definition mykonos.c:2634
mykonosErr_t MYKONOS_resetDeframer(mykonosDevice_t *device)
Resets the JESD204B Deframer.
Definition mykonos.c:8099
mykonosErr_t MYKONOS_setObsRxPathSource(mykonosDevice_t *device, mykonosObsRxChannels_t obsRxCh)
Powers up or down the Observation Rx signal chain in the radioOn state.
Definition mykonos.c:5273
mykonosErr_t MYKONOS_getOrxQecStatus(mykonosDevice_t *device, mykonosObsRxChannels_t orxChannel, mykonosOrxQecStatus_t *orxQecStatus)
Returns the status of the ORxQEC tracking calibration.
Definition mykonos.c:12894
mykonosErr_t MYKONOS_getTxLolStatus(mykonosDevice_t *device, mykonosTxChannels_t txChannel, mykonosTxLolStatus_t *txLolStatus)
Returns the status of the TxLOL external tracking calibration.
Definition mykonos.c:12573
mykonosErr_t MYKONOS_getPaProtectErrorFlagStatus(mykonosDevice_t *device, uint8_t *errorFlagStatus)
Returns PA Protection Error Flag Status.
Definition mykonos.c:6937
mykonosErr_t MYKONOS_setObsRxAgcMinMaxGainIndex(mykonosDevice_t *device, mykonosObsRxChannels_t obsRxChannelSelect, uint8_t maxGainIndex, uint8_t minGainIndex)
This function sets the min/max gain indexes for AGC in the observation channel.
Definition mykonos.c:4608
mykonosErr_t MYKONOS_setObsRxGainControlMode(mykonosDevice_t *device, mykonosGainMode_t mode)
Configures the ObsRx gain control mode.
Definition mykonos.c:6284
mykonosErr_t MYKONOS_setDpdActuatorCheck(mykonosDevice_t *device, mykonosDpdActuatorCheck_t *actCheck)
DPD feature to set the actuator gain difference check. If the gain before and after the actuator exce...
Definition mykonos.c:18202
mykonosErr_t MYKONOS_initArm(mykonosDevice_t *device)
Resets the ARM processor and performs initialization.
Definition mykonos.c:13061
mykonosErr_t MYKONOS_getRxQecStatus(mykonosDevice_t *device, mykonosRxChannels_t rxChannel, mykonosRxQecStatus_t *rxQecStatus)
Returns the status of the RxQEC tracking calibration.
Definition mykonos.c:12787
mykonosErr_t MYKONOS_waitArmCmdStatus(mykonosDevice_t *device, uint8_t opCode, uint32_t timeoutMs, uint8_t *cmdStatByte)
Mykonos ARM command status wait function polls command status until opcode completes.
Definition mykonos.c:16128
mykonosErr_t MYKONOS_setClgcGain(mykonosDevice_t *device, mykonosTxChannels_t txChannel, int16_t gain)
This function updates the CLGC desired gain parameter.
Definition mykonos.c:15165
mykonosErr_t MYKONOS_setRfDcOffsetCnt(mykonosDevice_t *device, mykonosDcOffsetChannels_t channel, uint16_t measureCount)
Sets the measure count which is the number of samples taken before DC offset correction is applied fo...
Definition mykonos.c:17143
mykonosErr_t MYKONOS_enableDeframerPrbsChecker(mykonosDevice_t *device, uint8_t lanes, mykonosPrbsOrder_t polyOrder, uint8_t enable)
Configures and enables or disables the transceiver's deframer PRBS checker.
Definition mykonos.c:10862
mykonosErr_t MYKONOS_getInitCalStatus(mykonosDevice_t *device, mykonosInitCalStatus_t *initCalStatus)
Gets the device initialization calibration status.
Definition mykonos.c:11499
mykonosErr_t MYKONOS_getTrackingCalState(mykonosDevice_t *device, mykonosTrackingCalibrations_t trackingCal, uint8_t *trackCalState)
Get the Suspended or Resumed state for individual tracking calibration.
Definition mykonos.c:12353
mykonosErr_t MYKONOS_enableRxGainCtrSyncPulse(mykonosDevice_t *device, uint8_t enable)
Enables or disables the Rx slow loop gain counter to use the sync pulse.
Definition mykonos.c:5018
mykonosErr_t MYKONOS_resetDevice(mykonosDevice_t *device)
Performs a hard reset on the MYKONOS DUT (Toggles RESETB pin on device)
Definition mykonos.c:248
mykonosErr_t MYKONOS_getObsRxTempGainComp(mykonosDevice_t *device, int16_t *obsRxTempCompGain_mdB)
This function gets the Temperature gain compensation for the observation channel.
Definition mykonos.c:4972
mykonosErr_t MYKONOS_enableObsRxGainCtrSyncPulse(mykonosDevice_t *device, uint8_t enable)
Enables or disables the ObsRx slow loop gain counter to use the sync pulse.
Definition mykonos.c:6251
mykonosErr_t MYKONOS_getPendingTrackingCals(mykonosDevice_t *device, uint32_t *pendingCalMask)
Returns the tracking calibration pending and error status.
Definition mykonos.c:12526
mykonosErr_t MYKONOS_configVswr(mykonosDevice_t *device)
This function, when called during RadioOff, will configure VSWR settings.
Definition mykonos.c:15253
mykonosErr_t MYKONOS_saveDpdModel(mykonosDevice_t *device, mykonosTxChannels_t txChannel, uint8_t *modelDataBuffer, uint32_t modelNumberBytes)
This function called during RadioOff, will allow retrieval of the DPD model file.
Definition mykonos.c:14321
mykonosErr_t MYKONOS_setRxGainControlMode(mykonosDevice_t *device, mykonosGainMode_t mode)
Configures the Rx gain control mode.
Definition mykonos.c:5052
mykonosErr_t MYKONOS_setRx2ManualGain(mykonosDevice_t *device, uint8_t gainIndex)
Sets the Rx2 Manual Gain index.
Definition mykonos.c:3733
mykonosErr_t MYKONOS_enableRxFramerPrbs(mykonosDevice_t *device, mykonosPrbsOrder_t polyOrder, uint8_t enable)
Selects the PRBS type and enables or disables RX Framer PRBS20 generation.
Definition mykonos.c:10723
mykonosErr_t MYKONOS_getObsRxDecPower(mykonosDevice_t *device, uint16_t *obsRxDecPower_mdBFS)
Performs a power measurement in the ObsRx digital data path.
Definition mykonos.c:6341
mykonosErr_t MYKONOS_readArmCmdStatus(mykonosDevice_t *device, uint16_t *errorWord, uint16_t *statusWord)
Reads the Mykonos ARM 64-bit command status register.
Definition mykonos.c:16005
mykonosErr_t MYKONOS_getTx2Attenuation(mykonosDevice_t *device, uint16_t *tx2Attenuation_mdB)
Reads back the Tx2 RF output Attenuation.
Definition mykonos.c:6563
mykonosErr_t MYKONOS_setRfPllFrequency(mykonosDevice_t *device, mykonosRfPllName_t pllName, uint64_t rfPllLoFrequency_Hz)
Sets the RF PLL local oscillator frequency (RF carrier frequency).
Definition mykonos.c:2155
mykonosErr_t MYKONOS_configDpd(mykonosDevice_t *device)
This function will configure DPD settings.
Definition mykonos.c:13688
mykonosErr_t MYKONOS_getRfPllLoopFilter(mykonosDevice_t *device, mykonosRfPllName_t pllName, uint16_t *loopBandwidth_kHz, uint8_t *stability)
Gets the RF PLL loop filter bandwidth and stability.
Definition mykonos.c:17555
mykonosErr_t MYKONOS_writeArmMem(mykonosDevice_t *device, uint32_t address, uint8_t *data, uint32_t byteCount)
Write to the Mykonos ARM program or data memory.
Definition mykonos.c:15686
mykonosErr_t MYKONOS_setPathDelay(mykonosDevice_t *device, mykonosPathdelay_t *pathDelay)
This function will configure the path delay settings for all the features: DPD, VSWR and CLGC.
Definition mykonos.c:17757
mykonosErr_t MYKONOS_readDeframerPrbsCounters(mykonosDevice_t *device, uint8_t counterSelect, uint32_t *prbsErrorCount)
Reads the deframer PRBS counters.
Definition mykonos.c:10911
mykonosErr_t MYKONOS_getRx2TempGainComp(mykonosDevice_t *device, int16_t *rx2TempCompGain_mdB)
This function gets the Temperature gain compensation for Rx2.
Definition mykonos.c:4871
mykonosErr_t MYKONOS_clearPaErrorFlag(mykonosDevice_t *device)
Manually clears the PA Protection Error Flags.
Definition mykonos.c:6975
mykonosErr_t MYKONOS_runInitCals(mykonosDevice_t *device, uint32_t calMask)
Runs the Mykonos initialization calibrations.
Definition mykonos.c:11272
mykonosErr_t MYKONOS_setRxAgcMinMaxGainIndex(mykonosDevice_t *device, mykonosRxChannels_t rxChannelSelect, uint8_t maxGainIndex, uint8_t minGainIndex)
This function sets the min/max gain indexes for AGC in the main RX channel.
Definition mykonos.c:4537
mykonosErr_t MYKONOS_getRfPllFrequency(mykonosDevice_t *device, mykonosRfPllName_t pllName, uint64_t *rfPllLoFrequency_Hz)
Gets the RF PLL local oscillator frequency (RF carrier frequency).
Definition mykonos.c:2253
mykonosErr_t MYKONOS_getObsRxPathSource(mykonosDevice_t *device, mykonosObsRxChannels_t *obsRxCh)
Reads back the currently enabled Observation Rx channel in the radioOn state.
Definition mykonos.c:5343
mykonosErr_t MYKONOS_getEnabledTrackingCals(mykonosDevice_t *device, uint32_t *enableMask)
Reads back which ARM tracking cals are enabled.
Definition mykonos.c:12455
mykonosErr_t MYKONOS_setRx1ManualGain(mykonosDevice_t *device, uint8_t gainIndex)
Sets the Rx1 Manual Gain Index.
Definition mykonos.c:3687
mykonosErr_t MYKONOS_programFir(mykonosDevice_t *device, mykonosfirName_t filterToProgram, mykonosFir_t *firFilter)
Configures one or more FIR filters in the device.
Definition mykonos.c:2799
mykonosErr_t MYKONOS_sendArmCommand(mykonosDevice_t *device, uint8_t opCode, uint8_t *extendedData, uint8_t extendedDataNumBytes)
Sends a command to the Mykonos ARM processor.
Definition mykonos.c:15925
mykonosErr_t MYKONOS_setupJesd204bFramer(mykonosDevice_t *device)
Sets up the JESD204B Framer.
Definition mykonos.c:8986
mykonosErr_t MYKONOS_setDpdActState(mykonosDevice_t *device, mykonosTxChannels_t txChannel, uint8_t actState)
This function sets the state of the DPD actuator.
Definition mykonos.c:14475
mykonosErr_t MYKONOS_setTx1Attenuation(mykonosDevice_t *device, uint16_t tx1Attenuation_mdB)
Sets the Tx1 RF output Attenuation.
Definition mykonos.c:6386
mykonosErr_t MYKONOS_readFir(mykonosDevice_t *device, mykonosfirName_t filterToRead, mykonosFir_t *firFilter)
Reads the FIR filter programmed into the device.
Definition mykonos.c:3094
mykonosErr_t MYKONOS_readRxFramerStatus(mykonosDevice_t *device, uint8_t *framerStatus)
Reads the transceiver's RX framer status.
Definition mykonos.c:10536
mykonosErr_t MYKONOS_enableSysrefToRxFramer(mykonosDevice_t *device, uint8_t enable)
Enables or disables SYSREF to the transceiver's RX framer.
Definition mykonos.c:10437
mykonosErr_t MYKONOS_getRx1DecPower(mykonosDevice_t *device, uint16_t *rx1DecPower_mdBFS)
Performs a power measurement in the Rx1 digital data path.
Definition mykonos.c:5123
mykonosErr_t MYKONOS_checkPllsLockStatus(mykonosDevice_t *device, uint8_t *pllLockStatus)
Checks if the PLLs are locked.
Definition mykonos.c:2444
mykonosErr_t MYKONOS_setupPaProtection(mykonosDevice_t *device, uint16_t powerThreshold, uint8_t attenStepSize, uint8_t avgDuration, uint8_t stickyFlagEnable, uint8_t txAttenControlEnable)
Writes Mykonos device registers with settings for the PA Protection block.
Definition mykonos.c:6757
mykonosErr_t MYKONOS_setTrackingCalState(mykonosDevice_t *device, mykonosTrackingCalibrations_t trackingCal, uint8_t trackCalState)
Suspend or resume individual tracking calibration.
Definition mykonos.c:12196
mykonosErr_t MYKONOS_readArmCmdStatusByte(mykonosDevice_t *device, uint8_t opCode, uint8_t *cmdStatByte)
Isolated byte read of the Mykonos ARM 64-bit command status register based on the opcode.
Definition mykonos.c:16067
mykonosErr_t MYKONOS_waitForEvent(mykonosDevice_t *device, waitEvent_t waitEvent, uint32_t timeout_us)
Performs a blocking wait for a Mykonos calibration or Pll Lock.
Definition mykonos.c:1576
mykonosErr_t MYKONOS_setSnifferChannel(mykonosDevice_t *device, mykonosSnifferChannel_t snifferChannel)
Selects the Sniffer RF input to use for the observation receiver when in ObsRx pin mode and ORX_MODE ...
Definition mykonos.c:12998
mykonosErr_t MYKONOS_setObsRxManualGain(mykonosDevice_t *device, mykonosObsRxChannels_t obsRxCh, uint8_t gainIndex)
Sets the Rx gain of the ObsRx channel.
Definition mykonos.c:5423
mykonosErr_t MYKONOS_setupObsRxAgc(mykonosDevice_t *device)
Sets up the device ObsRx Automatic Gain Control (AGC) registers.
Definition mykonos.c:5714
mykonosErr_t MYKONOS_getRadioState(mykonosDevice_t *device, uint32_t *radioStatus)
Reads the current ARM radio state.
Definition mykonos.c:11684
mykonosErr_t MYKONOS_getDigDcOffsetMShift(mykonosDevice_t *device, mykonosDcOffsetChannels_t channel, uint8_t *mShift)
retrieves the M-Shift value which is the Corner frequency of Rx notch filter for the given channel....
Definition mykonos.c:17374
mykonosErr_t MYKONOS_initDigitalClocks(mykonosDevice_t *device)
Sets the CLKPLL output frequency.
Definition mykonos.c:1888
mykonosErr_t MYKONOS_setTxPfirSyncClk(mykonosDevice_t *device)
Sets the digital Tx PFIR SYNC clock divider.
Definition mykonos.c:2511
mykonosErr_t MYKONOS_loadArmConcurrent(mykonosDevice_t *device, uint8_t *binary, uint32_t count)
Loads binary byte array into ARM program memory. This API function allows user to load the ARM concur...
Definition mykonos.c:13317
const char * getMykonosErrorMessage(mykonosErr_t errorCode)
Helper function for return of character string based on 32-bit mykonosErr_t enum value.
Definition mykonos.c:7006
mykonosErr_t MYKONOS_setDpdBypassConfig(mykonosDevice_t *device, mykonosDpdBypassConfig_t *actConfig)
DPD feature to set the bypassing actuator when Tx signal power is below a programmable threshold give...
Definition mykonos.c:18095
mykonosErr_t MYKONOS_setRfPllLoopFilter(mykonosDevice_t *device, mykonosRfPllName_t pllName, uint16_t loopBandwidth_kHz, uint8_t stability)
Sets the RF PLL loop filter bandwith.
Definition mykonos.c:17439
mykonosErr_t MYKONOS_checkArmState(mykonosDevice_t *device, mykonosArmState_t armStateCheck)
Verifies the ARM status once it is start running.
Definition mykonos.c:13498
mykonosErr_t MYKONOS_readArmConfig(mykonosDevice_t *device, uint8_t objectId, uint16_t offset, uint8_t *data, uint8_t byteCount)
Low level helper function used by Mykonos API to read the ARM memory config structures.
Definition mykonos.c:15864
mykonosErr_t MYKONOS_resetRxAgc(mykonosDevice_t *device)
This function resets the AGC state machine.
Definition mykonos.c:4500
mykonosErr_t MYKONOS_programRxGainTable(mykonosDevice_t *device, uint8_t *gainTablePtr, uint8_t numGainIndexesInTable, mykonosGainTable_t rxChannel)
Programs the gain table settings for either Rx1, Rx2, Rx1 + Rx2, ORx, or SnRx receiver types.
Definition mykonos.c:3354
mykonosErr_t MYKONOS_radioOn(mykonosDevice_t *device)
Instructs the ARM processor to move the radio state to the Radio ON state.
Definition mykonos.c:11575
mykonosErr_t MYKONOS_getDpdConfig(mykonosDevice_t *device)
Definition mykonos.c:13884
mykonosErr_t MYKONOS_clearDeframerPrbsCounters(mykonosDevice_t *device)
Clears the deframer/deserializer PRBS counters.
Definition mykonos.c:10963
mykonosErr_t MYKONOS_getProductId(mykonosDevice_t *device, uint8_t *productId)
Reads back the Product ID for the Mykonos Device.
Definition mykonos.c:294
mykonosErr_t MYKONOS_setTx2Attenuation(mykonosDevice_t *device, uint16_t tx2Attenuation_mdB)
Sets the Tx2 RF output Attenuation (Step size is 0.05dB.)
Definition mykonos.c:6449
mykonosErr_t MYKONOS_getRx2DecPower(mykonosDevice_t *device, uint16_t *rx2DecPower_mdBFS)
Performs a power measurement in the Rx2 digital data path.
Definition mykonos.c:5168
mykonosErr_t MYKONOS_jesd204bIlasCheck(mykonosDevice_t *device, uint16_t *mismatch)
Reads the lane 0 JESD204B deframer configuration and compares it against the ILAS received values.
Definition mykonos.c:11014
mykonosErr_t MYKONOS_verifyProfiles(mykonosDevice_t *device)
Verifies the init structure profiles are valid combinations.
Definition mykonos.c:1294
mykonosErr_t MYKONOS_rxInjectPrbsError(mykonosDevice_t *device)
Injects a PRBS error into the RX data path.
Definition mykonos.c:10800
mykonosErr_t MYKONOS_abortInitCals(mykonosDevice_t *device, uint32_t *calsCompleted)
Aborts from an on going ARM init calibration operation.
Definition mykonos.c:11420
Contains the version number for the Mykonos API.
Definition ad9361_util.h:63
Structure to configure the CLGC attenuation tuning range.
Definition t_mykonos.h:1110
Data structure used to read back CLGC calibration status.
Definition t_mykonos.h:1588
Data structure to hold Mykonos device settings.
Definition t_mykonos.h:1696
Structure to configure the DPD actuator gain check.
Definition t_mykonos.h:1071
Structure to configure the feature to bypass DPD actuator when signal power below a threshold.
Definition t_mykonos.h:1058
This structure contains the DPD error status counters for the different errors.
Definition t_mykonos.h:1651
Data structure used to read back DPD calibration status.
Definition t_mykonos.h:1551
Data structure to hold Mykonos FIR filter settings.
Definition t_mykonos.h:1179
Data structure used to read back the Init Calibration Status.
Definition t_mykonos.h:1539
Data structure to hold Orx QEC Status.
Definition t_mykonos.h:1684
This structure contains the internal path delay.
Definition t_mykonos.h:1639
Data structure to hold Rx QEC Status.
Definition t_mykonos.h:1672
Data structure to hold Tx LOL Status.
Definition t_mykonos.h:1626
Data structure to hold Tx QEC Status.
Definition t_mykonos.h:1660
Definition t_mykonos.h:1143
Contains type definitions for Mykonos API.
mykonosTxChannels_t
Enum of possible Tx channels.
Definition t_mykonos.h:617
mykonosGainTable_t
Enum to set the desired Rx gain table channel.
Definition t_mykonos.h:786
waitEvent_t
Enum of possible wait events to use with MYKONOS_waitForEvent()
Definition t_mykonos.h:745
mykonosBuild_t
Enum of build type.
Definition t_mykonos.h:940
mykonosObsRxChannels_t
Enum of possible Observation Rx channels.
Definition t_mykonos.h:639
mykonosfirName_t
Enum to set the desired FIR filter type for related functions.
Definition t_mykonos.h:771
mykonosRxChannels_t
Enum of possible Rx channels.
Definition t_mykonos.h:628
mykonosGainMode_t
Enum to set the Rx Gain control mode.
Definition t_mykonos.h:799
mykonosRfPllName_t
Enum of RF PLL names.
Definition t_mykonos.h:715
mykonosArmState_t
Enum for ARM states.
Definition t_mykonos.h:903
mykonosErr_t
Enum of unique error codes from the Mykonos API functions. Each error condition in the library should...
Definition t_mykonos.h:31
mykonosDcOffsetChannels_t
Enum for channel selection for DC offset settings.
Definition t_mykonos.h:917
mykonosDpdResetMode_t
Enum for DPD reset modes.
Definition t_mykonos.h:975
mykonosPrbsOrder_t
Enum of possible PRBS pattern settings.
Definition t_mykonos.h:705
mykonosPathDelaySel_t
Enum to select the desired status calibration path delay read back.
Definition t_mykonos.h:871
mykonosSnifferChannel_t
Enum of possible Sniffer Rx channels.
Definition t_mykonos.h:656
mykonosTrackingCalibrations_t
Enum to help set the tracking calibration mask.
Definition t_mykonos.h:846