Go to the documentation of this file.
15 #ifndef MYKONOSGPIO_H_
16 #define MYKONOSGPIO_H_
#define MYKONOS_ADDR_AGC_ORX_SNRX_GPIO_SEL
Definition: mykonos_macros.h:276
Data structure used to configure the on-die Temperature Sensor.
Definition: t_mykonos_gpio.h:345
mykonosGpioErr_t MYKONOS_getGpioPinLevel(mykonosDevice_t *device, uint32_t *gpioPinLevel)
Reads the Mykonos low voltage GPIO pin levels and returns their contents in a single 32-bit word.
Definition: mykonos_gpio.c:2150
mykonosGpioErr_t MYKONOS_setRxGainCompensation(mykonosDevice_t *device, mykonosGainComp_t *gainComp, uint8_t enable)
Gain compensation enable and setup function.
Definition: mykonos_gpio.c:3421
mykonosGpioErr_t MYKONOS_getGpioDrv(mykonosDevice_t *device, uint32_t *gpioDrv)
This function gets the GPIOs drive strength.
Definition: mykonos_gpio.c:4914
mykonosGpioErr_t MYKONOS_getGpioOe(mykonosDevice_t *device, uint32_t *gpioOutEn)
Gets the Mykonos low voltage GPIO output pins direction.
Definition: mykonos_gpio.c:2962
Contains macro definitions and function prototypes for mykonos_gpio.c.
@ MYKONOS_ERR_OBS_RX_GAINCOMP_SET_NULL_STRUCT
Definition: t_mykonos_gpio.h:120
@ MYKONOS_ERR_FLOATFRMT_SET_INV_RX2ATT
Definition: t_mykonos_gpio.h:159
#define MYKONOS_ADDR_TEMP_SENSOR_CONFIG
Definition: mykonos_macros.h:548
uint8_t tempWindow
Definition: t_mykonos_gpio.h:352
#define MYKONOS_ADDR_FLOATING_POINT_ORX_CTRL
Definition: mykonos_macros.h:456
@ MYKONOS_ERR_GETTX1PIN_EN_NULL_PARM
Definition: t_mykonos_gpio.h:71
int16_t tempCode
Definition: t_mykonos_gpio.h:362
#define MYKONOS_ADDR_FLOATING_POINT_RX_CTRL
Definition: mykonos_macros.h:455
mykonosGpioErr_t MYKONOS_setupGpio3v3(mykonosDevice_t *device)
Sets the Mykonos 3.3 VDC GPIO configuration registers.
Definition: mykonos_gpio.c:3097
@ MYKONOS_ERR_GETRX1PIN_DECSTEP_NULL_PARM
Definition: t_mykonos_gpio.h:52
uint8_t overrideFusedOffset
Definition: t_mykonos_gpio.h:350
@ MYK_SLEWRATE_NONE
Definition: t_mykonos_gpio.h:229
#define MYKONOS_ADDR_AUXDAC_0_WORD_MSB
Definition: mykonos_macros.h:534
#define MYKONOS_ADDR_SOURCE_CONTROL_EXTRA_BITS
Definition: mykonos_macros.h:519
@ MYKGPIO18
Definition: t_mykonos.h:593
@ MYKONOS_ERR_CMOS_DRV_NULL_PARAM
Definition: t_mykonos_gpio.h:201
mykonosGpioErr_t MYKONOS_setRxGainCompensation(mykonosDevice_t *device, mykonosGainComp_t *gainComp, uint8_t enable)
Gain compensation enable and setup function.
Definition: mykonos_gpio.c:3421
mykonosGpioErr_t MYKONOS_getObsRxAgcEnSyncPin(mykonosDevice_t *device, mykonosGpioSelect_t *obsRxAgcSyncPin)
This API function gets the pin configuration for AGC Sync gain control of observation channel.
Definition: mykonos_gpio.c:1599
mykonosGpioErr_t MYKONOS_setRxAgcEnSyncPin(mykonosDevice_t *device, mykonosGpioSelect_t rx1AgcSyncPin, mykonosGpioSelect_t rx2AgcSyncPin)
This API function set the pins for sync AGC gain control.
Definition: mykonos_gpio.c:1353
mykonosGpioErr_t MYKONOS_setAuxAdcChannel(mykonosDevice_t *device, mykonosAuxAdcChannels_t auxAdcChannel)
Sets the selected channel of the auxiliary ADC.
Definition: mykonos_gpio.c:2590
#define MYKONOS_ADDR_GPIO_SPI_SRC_7_0
Definition: mykonos_macros.h:511
@ MYKONOS_ERR_GPIO_HYBRID_RX2_PIN_NULL_PARM
Definition: t_mykonos_gpio.h:178
Data structure to hold Gain compensation settings for the observation channel.
Definition: t_mykonos_gpio.h:290
@ MYKONOS_ERR_GPIO_AGC_SYNC_RX1_PIN_NULL_PARM
Definition: t_mykonos_gpio.h:188
@ HYBRID
Definition: t_mykonos.h:802
@ MYK_CMOSPAD_DRV_1X
Definition: t_mykonos_gpio.h:240
mykonosGpioErr_t MYKONOS_setObsRxAgcEnSyncPin(mykonosDevice_t *device, mykonosGpioSelect_t obsRxAgcSyncPin)
This API function set the pins for AGC gain Sync control.
Definition: mykonos_gpio.c:1537
uint8_t compStep
Definition: t_mykonos_gpio.h:295
mykonosAuxAdcChannels_t
Enumerated list for Aux ADCs.
Definition: t_mykonos_gpio.h:251
@ MYKONOS_ERR_GETGPIO3V3OUT_NULL_PARM
Definition: t_mykonos_gpio.h:90
#define MYKONOS_ADDR_GPIO_DIR_CTL_7_0
Definition: mykonos_macros.h:508
@ MYKONOS_ERR_GPIO_HYBRID_ORX_PIN
Definition: t_mykonos_gpio.h:182
uint8_t expBits
Definition: t_mykonos_gpio.h:330
mykonosGpioErr_t MYKONOS_getGpio3v3Oe(mykonosDevice_t *device, uint16_t *gpio3v3OutEn)
Reads the Mykonos 3.3 VDC GPIO pin direction.
Definition: mykonos_gpio.c:3289
mykonosGpioErr_t MYKONOS_setGpioSourceCtrl(mykonosDevice_t *device, uint32_t gpioSrcCtrl)
Sets the Mykonos GPIO source control for different GPIO functionality.
Definition: mykonos_gpio.c:3006
@ MYKONOS_ERR_FLOATFRMT_INV_ORXEN
Definition: t_mykonos_gpio.h:162
#define RX1_ENABLE_ACK_SIGNALID
Definition: mykonos_macros.h:688
mykonosGpioErr_t MYKONOS_getOrxEnFloatPntFrmt(mykonosDevice_t *device, uint8_t *orxAtt, uint8_t *enable)
Floating point formatter enable and setup function.
Definition: mykonos_gpio.c:4491
commonErr_t CMB_writeToLog(ADI_LOGLEVEL level, uint8_t deviceIndex, uint32_t errorCode, const char *comment)
Definition: common.c:250
uint8_t dataFormat
Definition: t_mykonos_gpio.h:324
#define MYKONOS_ADDR_GPIO_3V3_SPI_READ_7_0
Definition: mykonos_macros.h:503
mykonosGpioErr_t MYKONOS_writeAuxDac(mykonosDevice_t *device, uint8_t auxDacIndex, uint16_t auxDacCode)
Writes the current AuxDAC code for a particular AuxDAC.
Definition: mykonos_gpio.c:2776
@ MYKONOS_ERR_INV_AUX_ADC_CHAN_PARM
Definition: t_mykonos_gpio.h:108
@ MYKGPIO7
Definition: t_mykonos.h:582
#define MYKONOS_ADDR_RX2_GAIN_COMP_OFFSET
Definition: mykonos_macros.h:446
#define MYKONOS_ADDR_TEMP_SENSOR_READ
Definition: mykonos_macros.h:547
mykonosGpioErr_t MYKONOS_setupAuxDacs(mykonosDevice_t *device)
Sets up the 10 AuxDACs on the Mykonos device.
Definition: mykonos_gpio.c:2696
@ MYKONOS_ERR_GPIO_OK
Definition: t_mykonos_gpio.h:32
mykonosGpioErr_t MYKONOS_getRxAgcEnSyncPin(mykonosDevice_t *device, mykonosGpioSelect_t *rx1AgcSyncPin, mykonosGpioSelect_t *rx2AgcSyncPin)
This API function gets the GPIO pin configuration for AGC gain sync control of RX1 and RX2.
Definition: mykonos_gpio.c:1439
@ MYKONOS_ERR_SPI2_INV_GPIO
Definition: t_mykonos_gpio.h:74
mykonosGpioErr_t MYKONOS_setFloatPointFrmt(mykonosDevice_t *device, mykonosFloatPntFrmt_t *floatFrmt)
Floating point formatter enable and setup function.
Definition: mykonos_gpio.c:4117
@ MYKONOS_ERR_TPCTX1_GPIO_DECPIN_INV_PARAM
Definition: t_mykonos_gpio.h:60
mykonosGpioErr_t MYKONOS_getTx1AttenCtrlPin(mykonosDevice_t *device, uint8_t *stepSize, mykonosGpioSelect_t *tx1AttenIncPin, mykonosGpioSelect_t *tx1AttenDecPin, uint8_t *enable, uint8_t *useTx1ForTx2)
This API function returns the configuration TX1 attenuation Pin control.
Definition: mykonos_gpio.c:1793
@ MYK_CMOSPAD_DRV_2X
Definition: t_mykonos_gpio.h:241
@ MYKGPIO5
Definition: t_mykonos.h:580
@ MYKONOS_ERR_SETUPTEMPSENSOR_INV_TEMPDECIMATION
Definition: t_mykonos_gpio.h:167
@ MYKONOS_ERR_SETUPTEMPSENSOR_INV_TEMPWINDOW
Definition: t_mykonos_gpio.h:169
@ MYKONOS_ERR_FLOATFRMT_INV_LEADING
Definition: t_mykonos_gpio.h:150
@ MYKONOS_ERR_FLOATFRMT_NULL_STRUCT
Definition: t_mykonos_gpio.h:144
@ MYKONOS_ERR_FLOATFRMT_NULL_ORXENABLE
Definition: t_mykonos_gpio.h:164
mykonosGpioErr_t MYKONOS_getTempSensorConfig(mykonosDevice_t *device, mykonosTempSensorConfig_t *tempSensor)
Reads from the Temperature Sensor registers and populates device data structure.
Definition: mykonos_gpio.c:4644
@ MYKONOS_ERR_GPIO3V3OUTEN_NULL_PARM
Definition: t_mykonos_gpio.h:93
@ MYKONOS_ERR_GAINCOMP_INV_EN
Definition: t_mykonos_gpio.h:118
mykonosGpioErr_t MYKONOS_getRx1GainCtrlPin(mykonosDevice_t *device, uint8_t *incStep, uint8_t *decStep, mykonosGpioSelect_t *rx1GainIncPin, mykonosGpioSelect_t *rx1GainDecPin, uint8_t *enable)
This API function returns the configuration RX1 gain Pin control.
Definition: mykonos_gpio.c:705
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
@ ADIHAL_LOG_ERROR
Definition: common.h:51
@ MYKONOS_ERR_GPIO_AGC_SYNC_RX2_PIN_NULL_PARM
Definition: t_mykonos_gpio.h:189
#define MYKONOS_ADDR_AUX_DAC_LATCH_CONTROL
Definition: mykonos_macros.h:533
mykonosGpioErr_t MYKONOS_setGpioSlewRate(mykonosDevice_t *device, mykonosGpioSelect_t gpioSelect, mykonosGpioSlewRate_t slewRate)
This function sets the slew rate for the required GPIOs.
Definition: mykonos_gpio.c:5002
@ MYKONOS_ERR_GETRX2PIN_INCPIN_NULL_PARM
Definition: t_mykonos_gpio.h:48
#define MYKONOS_ARM_SET_OPCODE
Definition: mykonos_macros.h:655
@ MYKONOS_ERR_GPIO_AGC_SYNC_RX2_PIN
Definition: t_mykonos_gpio.h:187
mykonosGpioErr_t MYKONOS_spi2GpioSetup(mykonosDevice_t *device, uint8_t enable, uint8_t updateTxAttenPinSelect)
This API function configures and enables the secondary SPI port.
Definition: mykonos_gpio.c:5329
#define MYKONOS_ADDR_CONFIGURATION_CONTROL_1
Definition: mykonos_macros.h:155
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
mykonosGpioErr_t MYKONOS_setFloatPointFrmt(mykonosDevice_t *device, mykonosFloatPntFrmt_t *floatFrmt)
Floating point formatter enable and setup function.
Definition: mykonos_gpio.c:4117
#define MYKONOS_ADDR_SOURCE_CONTROL_LOWER_BYTE
Definition: mykonos_macros.h:517
@ MYKONOS_ERR_GETGPIOMON_MONITORMASK_NULL_PARM
Definition: t_mykonos_gpio.h:37
@ MYKONOS_ERR_GETRX2PIN_DECSTEP_NULL_PARM
Definition: t_mykonos_gpio.h:47
#define MYKONOS_GPIO_SLEW_CTL_1
Definition: mykonos_macros.h:28
mykonosGpioErr_t MYKONOS_setAuxAdcChannel(mykonosDevice_t *device, mykonosAuxAdcChannels_t auxAdcChannel)
Sets the selected channel of the auxiliary ADC.
Definition: mykonos_gpio.c:2590
@ MYKONOS_ERR_CMOS_DRV_INV_PARAM
Definition: t_mykonos_gpio.h:200
@ MYKGPIO14
Definition: t_mykonos.h:589
mykonosGpioErr_t MYKONOS_getGpioMonitorOut(mykonosDevice_t *device, uint8_t *monitorIndex, uint8_t *monitorMask)
This API function reads the GPIO monitor index from Mykonos.
Definition: mykonos_gpio.c:540
@ MYKONOS_ERR_GETRX1PIN_INCSTEP_NULL_PARM
Definition: t_mykonos_gpio.h:51
#define ORX_MODE_1_SIGNALID
Definition: mykonos_macros.h:686
#define MYKONOS_GPIO_DRV_CTL_0
Definition: mykonos_macros.h:25
@ MYKONOS_ERR_GPIO_AGC_SYNC_RX1_PIN
Definition: t_mykonos_gpio.h:186
#define MYKONOS_ADDR_GPIO_SPI_READ_18_16
Definition: mykonos_macros.h:516
@ VCODIV_2
Definition: t_mykonos.h:697
@ MYKONOS_ERR_GETTX1PIN_STEP_NULL_PARM
Definition: t_mykonos_gpio.h:68
@ MYKONOS_ERR_GETRX1PIN_EN_NULL_PARM
Definition: t_mykonos_gpio.h:55
#define MYKONOS_ADDR_DPD_SNF_RX_GAIN_COMP_OFFSET
Definition: mykonos_macros.h:450
@ MYKONOS_ERR_GETTX2PIN_INC_NULL_PARM
Definition: t_mykonos_gpio.h:64
mykonosGpioErr_t MYKONOS_getGpio3v3PinLevel(mykonosDevice_t *device, uint16_t *gpio3v3PinLevel)
Reads the Mykonos 3.3 VDC GPIO pin levels for BITBANG mode.
Definition: mykonos_gpio.c:3217
Definition: ad9361_util.h:69
mykonosGpioErr_t MYKONOS_getGpioDrv(mykonosDevice_t *device, uint32_t *gpioDrv)
This function gets the GPIOs drive strength.
Definition: mykonos_gpio.c:4914
mykonosGpioErr_t MYKONOS_getGpio3v3SourceCtrl(mykonosDevice_t *device, uint16_t *gpio3v3SrcCtrl)
Reads the Mykonos 3v3 GPIO source control for different GPIO functionality.
Definition: mykonos_gpio.c:3372
@ MYK_CMOSPAD_DRV_3X
Definition: t_mykonos_gpio.h:242
@ MYKONOS_ERR_GETTX1PIN_INC_NULL_PARM
Definition: t_mykonos_gpio.h:69
@ MYKONOS_ERR_FLOATFRMT_SET_INV_RX1ATT
Definition: t_mykonos_gpio.h:158
@ MYKONOS_ERR_GETRX2PIN_EN_NULL_PARM
Definition: t_mykonos_gpio.h:50
@ MYKONOS_ERR_TPCTX2_GPIO_DECPIN_INV_PARAM
Definition: t_mykonos_gpio.h:57
mykonosGpioErr_t MYKONOS_writeAuxDac(mykonosDevice_t *device, uint8_t auxDacIndex, uint16_t auxDacCode)
Writes the current AuxDAC code for a particular AuxDAC.
Definition: mykonos_gpio.c:2776
@ MYKONOS_ERR_GAINCOMP_INV_RX2_OFFSET
Definition: t_mykonos_gpio.h:116
mykonosGpioErr_t MYKONOS_getTx2AttenCtrlPin(mykonosDevice_t *device, uint8_t *stepSize, mykonosGpioSelect_t *tx2AttenIncPin, mykonosGpioSelect_t *tx2AttenDecPin, uint8_t *enable, uint8_t *useTx1ForTx2)
This API function returns the configuration TX2 attenuation Pin control.
Definition: mykonos_gpio.c:2014
@ MYKGPIO3
Definition: t_mykonos.h:578
@ MYKONOS_ERR_GETGPIO_OE_NULL_PARM
Definition: t_mykonos_gpio.h:82
@ MYKONOS_ERR_SET_ARMGPIO_PINS_INV_GPIOPIN
Definition: t_mykonos_gpio.h:100
mykonosGpioErr_t MYKONOS_setGpio3v3PinLevel(mykonosDevice_t *device, uint16_t gpio3v3PinLevel)
If the GPIO3v3 pins are setup for BITBANG mode, this function sets the output pin levels per pin.
Definition: mykonos_gpio.c:3146
@ MYKONOS_ERR_GPIO_HYBRID_RX1_PIN
Definition: t_mykonos_gpio.h:175
@ MYKONOS_ERR_GETRX1PIN_DECPIN_NULL_PARM
Definition: t_mykonos_gpio.h:54
@ MYKONOS_ERR_GPIO_OE_INV_PARAM
Definition: t_mykonos_gpio.h:83
uint8_t obsRxOffset
Definition: t_mykonos_gpio.h:292
mykonosGpioErr_t MYKONOS_readTempSensor(mykonosDevice_t *device, mykonosTempSensorStatus_t *tempStatus)
Reads temperature code and statuses from the Temperature Sensor registers.
Definition: mykonos_gpio.c:4755
#define MYKONOS_ADDR_TX_TPC_CONFIG
Definition: mykonos_macros.h:490
#define TX1_ENABLE_ACK_SIGNALID
Definition: mykonos_macros.h:690
#define MYKONOS_ADDR_AUX_ADC_SEL
Definition: mykonos_macros.h:540
mykonosGpio3v3Mode_t
Enum to set the GPIO3v3 mode.
Definition: t_mykonos.h:880
#define MYKONOS_ADDR_TEMP_SENSOR_OFFSET
Definition: mykonos_macros.h:544
#define MYKONOS_ADDR_DPD_SNF_RX_SLCR_PIN_CFG
Definition: mykonos_macros.h:452
#define ORX_MODE_0_SIGNALID
Definition: mykonos_macros.h:685
@ MYKONOS_ERR_INV_GP_INT_MASK_PARM
Definition: t_mykonos_gpio.h:87
#define MYKONOS_ADDR_TEMP_SENSOR_CONTROL_LSB
Definition: mykonos_macros.h:545
@ MYKONOS_ERR_GETTX1PIN_DEC_NULL_PARM
Definition: t_mykonos_gpio.h:70
#define MYKONOS_ADDR_GPIO_SPI_READ_7_0
Definition: mykonos_macros.h:514
mykonosGpioErr_t MYKONOS_getCmosDrv(mykonosDevice_t *device, mykonosCmosPadDrvStr_t *cmosDrv)
This function gets the programmed CMOS output driver.
Definition: mykonos_gpio.c:5264
@ ADIHAL_LOG_MESSAGE
Definition: common.h:49
mykonosGpioErr_t MYKONOS_getRx2GainCtrlPin(mykonosDevice_t *device, uint8_t *incStep, uint8_t *decStep, mykonosGpioSelect_t *rx2GainIncPin, mykonosGpioSelect_t *rx2GainDecPin, uint8_t *enable)
This API function returns the configuration RX2 gain Pin control.
Definition: mykonos_gpio.c:913
mykonosGpioErr_t MYKONOS_getRxHybridGainChangePin(mykonosDevice_t *device, mykonosGpioSelect_t *rx1GainChangePin, mykonosGpioSelect_t *rx2GainChangePin)
This API function gets the pin configuration for hybrid gain control of RX1 and RX2.
Definition: mykonos_gpio.c:1115
#define MYKONOS_ADDR_AUX_ADC_CFG
Definition: mykonos_macros.h:537
mykonosGpioErr_t MYKONOS_setGpio3v3PinLevel(mykonosDevice_t *device, uint16_t gpio3v3PinLevel)
If the GPIO3v3 pins are setup for BITBANG mode, this function sets the output pin levels per pin.
Definition: mykonos_gpio.c:3146
#define RX2_ENABLE_ACK_SIGNALID
Definition: mykonos_macros.h:689
@ MYKGPIO2
Definition: t_mykonos.h:577
#define MYKONOS_GPIO_SLEW_CTL_3
Definition: mykonos_macros.h:30
mykonosGpioErr_t MYKONOS_spi2GpioSetup(mykonosDevice_t *device, uint8_t enable, uint8_t updateTxAttenPinSelect)
This API function configures and enables the secondary SPI port.
Definition: mykonos_gpio.c:5329
mykonosGpioErr_t MYKONOS_readTempSensor(mykonosDevice_t *device, mykonosTempSensorStatus_t *tempStatus)
Reads temperature code and statuses from the Temperature Sensor registers.
Definition: mykonos_gpio.c:4755
@ GPIO_5_6_7
Definition: t_mykonos_gpio.h:210
mykonosGpioErr_t MYKONOS_getGpio3v3SetLevel(mykonosDevice_t *device, uint16_t *gpio3v3SetLevel)
Reads the Mykonos 3.3 VDC GPIO pin output levels for BITBANG mode.
Definition: mykonos_gpio.c:3175
#define MYKONOS_ADDR_AUX_ADC_BUFFER_CONFIG_0
Definition: mykonos_macros.h:541
Mykonos GPIO error handling and type defines.
@ MYKONOS_ERR_SET_GPIO_3V3_INV_MODE
Definition: t_mykonos_gpio.h:94
@ MYKONOS_ERR_SLICER_EN_INV
Definition: t_mykonos_gpio.h:130
mykonosGpioErr_t MYKONOS_setupGpio(mykonosDevice_t *device)
Sets the Mykonos low voltage GPIO configuration registers.
Definition: mykonos_gpio.c:2835
#define MYKONOS_VERBOSE
Definition: mykonos_user.h:24
Contains macro definitions and global structure declarations for mykonos_user.c.
@ MYKONOS_ERR_FLOATFRMT_NULL_RX1ATT
Definition: t_mykonos_gpio.h:154
@ MYKONOS_ERR_GETRX1PIN_INCPIN_NULL_PARM
Definition: t_mykonos_gpio.h:53
commonErr_t CMB_SPIWriteByte(spiSettings_t *spiSettings, uint16_t addr, uint8_t data)
Definition: common.c:173
@ MYKONOS_ERR_MGCRX1_GPIO_INCPIN_INV_PARAM
Definition: t_mykonos_gpio.h:44
@ MYKONOS_ERR_SET_ARMGPIO_PINS_INV_SIGNALID
Definition: t_mykonos_gpio.h:99
uint8_t encNan
Definition: t_mykonos_gpio.h:327
@ MYKONOS_ERR_SLICER_OBS_RXPIN_NULL_PARM
Definition: t_mykonos_gpio.h:142
@ MYKONOS_ERR_GETGPIO3V3SPI_NULL_PARM
Definition: t_mykonos_gpio.h:92
mykonosGpioErr_t
Enum of unique error codes from the Mykonos GPIO API functions. Each error condition in the library s...
Definition: t_mykonos_gpio.h:30
@ MYKONOS_ERR_GAINCOMP_NULL_STRUCT
Definition: t_mykonos_gpio.h:112
mykonosGpioErr_t MYKONOS_getGpio3v3SetLevel(mykonosDevice_t *device, uint16_t *gpio3v3SetLevel)
Reads the Mykonos 3.3 VDC GPIO pin output levels for BITBANG mode.
Definition: mykonos_gpio.c:3175
#define MYKONOS_ADDR_GPIO_3V3_SPI_SRC_15_8
Definition: mykonos_macros.h:502
mykonosGpioErr_t MYKONOS_getGpio3v3PinLevel(mykonosDevice_t *device, uint16_t *gpio3v3PinLevel)
Reads the Mykonos 3.3 VDC GPIO pin levels for BITBANG mode.
Definition: mykonos_gpio.c:3217
mykonosGpioErr_t MYKONOS_setupTempSensor(mykonosDevice_t *device, mykonosTempSensorConfig_t *tempSensor)
Sets up the Temperature Sensor.
Definition: mykonos_gpio.c:4551
@ MYK_AUXADC_0
Definition: t_mykonos_gpio.h:253
@ MYKONOS_ERR_MGCRX2_STEP_INV_PARAM
Definition: t_mykonos_gpio.h:42
mykonosGpioErr_t MYKONOS_setGpio3v3SourceCtrl(mykonosDevice_t *device, uint16_t gpio3v3SrcCtrl)
Sets the Mykonos GPIO 3.3 VDC source control for different GPIO fucntionality.
Definition: mykonos_gpio.c:3330
#define MYKONOS_ADDR_FLOATING_POINT_CFG
Definition: mykonos_macros.h:454
mykonosGpioErr_t MYKONOS_getGpio3v3SourceCtrl(mykonosDevice_t *device, uint16_t *gpio3v3SrcCtrl)
Reads the Mykonos 3v3 GPIO source control for different GPIO functionality.
Definition: mykonos_gpio.c:3372
mykonosGpioErr_t MYKONOS_getGpioSourceCtrl(mykonosDevice_t *device, uint32_t *gpioSrcCtrl)
Reads the Mykonos GPIO source control for different GPIO functionality.
Definition: mykonos_gpio.c:3051
#define MYKONOS_ADDR_AUX_ADC_READ_MSB
Definition: mykonos_macros.h:538
@ MYKGPIO4
Definition: t_mykonos.h:579
@ MYKONOS_ERR_MONITOR_OUT_INDEX_RANGE
Definition: t_mykonos_gpio.h:35
mykonosGpioErr_t MYKONOS_setupGpio(mykonosDevice_t *device)
Sets the Mykonos low voltage GPIO configuration registers.
Definition: mykonos_gpio.c:2835
mykonosCmosPadDrvStr_t
Enumerated list of CMOS pads drive strength options.
Definition: t_mykonos_gpio.h:238
#define MYKONOS_ADDR_GP_INTERRUPT_MASK_0
Definition: mykonos_macros.h:525
#define MYKONOS_ADDR_AUX_ADC_BUFFER_CONFIG_1
Definition: mykonos_macros.h:542
#define MYKONOS_ADDR_GPIO_3V3_DIR_CTL_15_8
Definition: mykonos_macros.h:500
mykonosGpioErr_t MYKONOS_setTx2AttenCtrlPin(mykonosDevice_t *device, uint8_t stepSize, mykonosGpioSelect_t tx2AttenIncPin, mykonosGpioSelect_t tx2AttenDecPin, uint8_t enable)
This API function configures the GPIO inputs for controlling Tx attenuation settings.
Definition: mykonos_gpio.c:1915
@ MYKONOS_ERR_MGCRX1_GPIO_DECPIN_INV_PARAM
Definition: t_mykonos_gpio.h:43
@ MYKGPIONAN
Definition: t_mykonos.h:574
mykonosGpioErr_t MYKONOS_setArmGpioPins(mykonosDevice_t *device)
Sets the input and output GPIO pin selections for ARM related signals.
Definition: mykonos_gpio.c:2355
mykonosGpioErr_t MYKONOS_setGpioDrv(mykonosDevice_t *device, uint32_t gpioDrv)
This function sets the drive strength for the required GPIOs.
Definition: mykonos_gpio.c:4829
#define MYKONOS_ADDR_GPIO_3V3_DIR_CTL_7_0
Definition: mykonos_macros.h:499
commonErr_t CMB_SPIReadField(spiSettings_t *spiSettings, uint16_t addr, uint8_t *field_val, uint8_t mask, uint8_t start_bit)
Definition: common.c:236
mykonosGpioErr_t MYKONOS_setupAuxAdcs(mykonosDevice_t *device, uint8_t adcDecimation, uint8_t enable)
Sets up the auxiliary ADC.
Definition: mykonos_gpio.c:2505
@ MYKGPIO8
Definition: t_mykonos.h:583
mykonosGpioErr_t MYKONOS_getGpioPinLevel(mykonosDevice_t *device, uint32_t *gpioPinLevel)
Reads the Mykonos low voltage GPIO pin levels and returns their contents in a single 32-bit word.
Definition: mykonos_gpio.c:2150
@ MYKONOS_ERR_INV_AUX_ADC_DEC_PARM
Definition: t_mykonos_gpio.h:110
@ GPIO_16_15_14
Definition: t_mykonos_gpio.h:221
mykonosGpioErr_t MYKONOS_setGpioOe(mykonosDevice_t *device, uint32_t gpioOutEn, uint32_t gpioUsedMask)
Sets the Mykonos low voltage GPIO output pins direction.
Definition: mykonos_gpio.c:2902
mykonosGpioErr_t MYKONOS_getGpioSourceCtrl(mykonosDevice_t *device, uint32_t *gpioSrcCtrl)
Reads the Mykonos GPIO source control for different GPIO functionality.
Definition: mykonos_gpio.c:3051
#define TX_OBS_SELECT_SIGNALID
Definition: mykonos_macros.h:695
@ MYKONOS_ERR_OBS_GAIN_CONTROL_NOT_AGC
Definition: t_mykonos_gpio.h:190
#define MYKONOS_ADDR_AGC_MANUAL_GAIN_CFG
Definition: mykonos_macros.h:250
@ VCODIV_1
Definition: t_mykonos.h:695
mykonosGpioErr_t MYKONOS_getRxHybridGainChangePin(mykonosDevice_t *device, mykonosGpioSelect_t *rx1GainChangePin, mykonosGpioSelect_t *rx2GainChangePin)
This API function gets the pin configuration for hybrid gain control of RX1 and RX2.
Definition: mykonos_gpio.c:1115
@ MYKONOS_ERR_OBS_RX_GAINCOMP_INV_OFFSET
Definition: t_mykonos_gpio.h:123
mykonosGpioErr_t MYKONOS_setTx1AttenCtrlPin(mykonosDevice_t *device, uint8_t stepSize, mykonosGpioSelect_t tx1AttenIncPin, mykonosGpioSelect_t tx1AttenDecPin, uint8_t enable, uint8_t useTx1ForTx2)
This API function configures the GPIO inputs for controlling Tx attenuation settings.
Definition: mykonos_gpio.c:1683
@ MYKONOS_ERR_SETUPAUXDAC_INV_AUXDACCODE
Definition: t_mykonos_gpio.h:105
#define MYKONOS_ADDR_SOURCE_CONTROL_UPPER_BYTE
Definition: mykonos_macros.h:518
@ MYKONOS_ERR_SETUPTEMPSENSOR_INV_OFFSET
Definition: t_mykonos_gpio.h:168
@ MYKONOS_ERR_SLICER_OBS_RX_STEP_NULL_PARM
Definition: t_mykonos_gpio.h:141
#define MYKONOS_ADDR_GPIO_DIR_CTL_15_8
Definition: mykonos_macros.h:509
uint8_t roundMode
Definition: t_mykonos_gpio.h:315
@ MYKONOS_ERR_FLOATFRMT_SET_NULL_STRUCT
Definition: t_mykonos_gpio.h:145
@ MYKGPIO0
Definition: t_mykonos.h:575
mykonosGpioErr_t MYKONOS_getObsRxSlicerCtrl(mykonosDevice_t *device, uint8_t *slicerStep, mykonosObsRxSlicer_t *obsRxPins, uint8_t *enable)
This function will get the programmed Slicer control for observation channel.
Definition: mykonos_gpio.c:4027
mykonosGpioErr_t MYKONOS_getCmosDrv(mykonosDevice_t *device, mykonosCmosPadDrvStr_t *spiDrv)
This function gets the programmed CMOS output driver.
Definition: mykonos_gpio.c:5264
@ MYKONOS_ERR_SLICER_RX1PIN_NULL_PARM
Definition: t_mykonos_gpio.h:132
mykonosGpioErr_t MYKONOS_startTempMeasurement(mykonosDevice_t *device)
Initiates temperature measurement.
Definition: mykonos_gpio.c:4701
@ MYKONOS_ERR_FLOATFRMT_NULL_ENABLE
Definition: t_mykonos_gpio.h:156
@ MYKONOS_ERR_SLICER_EN_NULL_PARM
Definition: t_mykonos_gpio.h:135
@ MYKGPIO15
Definition: t_mykonos.h:590
#define MYKONOS_ADDR_GPIO_3V3_MSB_SRC_CTL
Definition: mykonos_macros.h:506
@ MYKONOS_ERR_SET_GPIO_1V8_INV_POINTER
Definition: t_mykonos_gpio.h:77
@ MYKONOS_ERR_OBS_RX_GAINCOMP_INV_EN
Definition: t_mykonos_gpio.h:122
@ MYKONOS_ERR_FLOATFRMT_INV_ROUND_MODE
Definition: t_mykonos_gpio.h:146
#define MYKONOS_ADDR_PDAUXDAC_MANUAL_IN_5_0
Definition: mykonos_macros.h:531
mykonosGpioErr_t MYKONOS_setRx1GainCtrlPin(mykonosDevice_t *device, uint8_t incStep, uint8_t decStep, mykonosGpioSelect_t rx1GainIncPin, mykonosGpioSelect_t rx1GainDecPin, uint8_t enable)
This API function configures the GPIO inputs for controlling RX gain.
Definition: mykonos_gpio.c:617
mykonosGpioErr_t MYKONOS_getObsRxHybridGainChangePin(mykonosDevice_t *device, mykonosGpioSelect_t *obsRxGainChangePin)
This API function gets the pin configuration for hybrid gain control of observation channel.
Definition: mykonos_gpio.c:1276
@ MYKONOS_ERR_GETGPIOMON_INDEX_NULL_PARM
Definition: t_mykonos_gpio.h:36
mykonosGpioErr_t MYKONOS_setOrxEnFloatPntFrmt(mykonosDevice_t *device, uint8_t orxAtt, uint8_t enable)
Floating point formatter enable function for ORx channel.
Definition: mykonos_gpio.c:4429
mykonosGpioErr_t MYKONOS_setupTempSensor(mykonosDevice_t *device, mykonosTempSensorConfig_t *tempSensor)
Sets up the Temperature Sensor.
Definition: mykonos_gpio.c:4551
mykonosGpioErr_t MYKONOS_getGpioSlewRate(mykonosDevice_t *device, mykonosGpioSelect_t gpioSelect, mykonosGpioSlewRate_t *slewRate)
This function gets the GPIO slew rate setting.
Definition: mykonos_gpio.c:5116
Data structure used to store Temperature Sensor related values.
Definition: t_mykonos_gpio.h:360
mykonosGpioErr_t MYKONOS_setRx2GainCtrlPin(mykonosDevice_t *device, uint8_t incStep, uint8_t decStep, mykonosGpioSelect_t rx2GainIncPin, mykonosGpioSelect_t rx2GainDecPin, uint8_t enable)
This API function configures the GPIO inputs for controlling RX gain.
Definition: mykonos_gpio.c:825
#define MYKONOS_GPIO_DRV_CTL_1
Definition: mykonos_macros.h:26
mykonosGpioErr_t MYKONOS_getGpio3v3Oe(mykonosDevice_t *device, uint16_t *gpio3v3OutEn)
Reads the Mykonos 3.3 VDC GPIO pin direction.
Definition: mykonos_gpio.c:3289
mykonosGpioErr_t MYKONOS_setGpio3v3SourceCtrl(mykonosDevice_t *device, uint16_t gpio3v3SrcCtrl)
Sets the Mykonos GPIO 3.3 VDC source control for different GPIO fucntionality.
Definition: mykonos_gpio.c:3330
mykonosGpioErr_t MYKONOS_setGpioSourceCtrl(mykonosDevice_t *device, uint32_t gpioSrcCtrl)
Sets the Mykonos GPIO source control for different GPIO functionality.
Definition: mykonos_gpio.c:3006
mykonosGpioErr_t MYKONOS_setObsRxSlicerCtrl(mykonosDevice_t *device, uint8_t slicerStep, mykonosObsRxSlicer_t obsRxPins, uint8_t enable)
Slicer control over GPIO inputs for the observation channel.
Definition: mykonos_gpio.c:3954
commonErr_t CMB_SPIWriteField(spiSettings_t *spiSettings, uint16_t addr, uint8_t field_val, uint8_t mask, uint8_t start_bit)
Definition: common.c:219
@ MYK_AUXADC_0_DIV2
Definition: t_mykonos_gpio.h:257
@ MYKONOS_ERR_WRITEAUXDAC_INV_AUXDACINDEX
Definition: t_mykonos_gpio.h:107
#define MYKONOS_GPIO_SLEW_CTL_0
Definition: mykonos_macros.h:27
@ MYKGPIO13
Definition: t_mykonos.h:588
@ MYKONOS_ERR_GAINCOMP_INV_RX1_OFFSET
Definition: t_mykonos_gpio.h:115
@ MYKONOS_ERR_FLOATFRMT_INV_RX1ATT
Definition: t_mykonos_gpio.h:151
mykonosGpioErr_t MYKONOS_getRx2GainCtrlPin(mykonosDevice_t *device, uint8_t *incStep, uint8_t *decStep, mykonosGpioSelect_t *rx2GainIncPin, mykonosGpioSelect_t *rx2GainDecPin, uint8_t *enable)
This API function returns the configuration RX2 gain Pin control.
Definition: mykonos_gpio.c:913
mykonosGpioErr_t MYKONOS_setObsRxHybridGainChangePin(mykonosDevice_t *device, mykonosGpioSelect_t obsRxGainChangePin)
This API function set the pins for hybrid gain control.
Definition: mykonos_gpio.c:1214
mykonosGpioErr_t MYKONOS_setupAuxDacs(mykonosDevice_t *device)
Sets up the 10 AuxDACs on the Mykonos device.
Definition: mykonos_gpio.c:2696
mykonosGpioErr_t MYKONOS_setArmGpioPins(mykonosDevice_t *device)
Sets the input and output GPIO pin selections for ARM related signals.
Definition: mykonos_gpio.c:2355
@ MYKONOS_ERR_READTEMPSENSOR_NULL_PARAM
Definition: t_mykonos_gpio.h:171
@ MYKONOS_ERR_READAUXADC_NULL_PARAM
Definition: t_mykonos_gpio.h:104
mykonosGpioErr_t MYKONOS_setOrxEnFloatPntFrmt(mykonosDevice_t *device, uint8_t orxAtt, uint8_t enable)
Floating point formatter enable function for ORx channel.
Definition: mykonos_gpio.c:4429
@ MYKONOS_ERR_GAIN_CONTROL_NOT_AGC
Definition: t_mykonos_gpio.h:185
@ VCODIV_3
Definition: t_mykonos.h:698
mykonosGpioErr_t MYKONOS_getGpioSlewRate(mykonosDevice_t *device, mykonosGpioSelect_t gpioSelect, mykonosGpioSlewRate_t *slewRate)
This function gets the GPIO slew rate setting.
Definition: mykonos_gpio.c:5116
@ MYKONOS_ERR_GPIO_AGC_SYNC_ORX_PIN
Definition: t_mykonos_gpio.h:191
mykonosGpioErr_t MYKONOS_setGpioPinLevel(mykonosDevice_t *device, uint32_t gpioPinLevel)
Sets the Mykonos low voltage GPIO output pins level.
Definition: mykonos_gpio.c:2116
#define MYKONOS_ADDR_AGC_GAIN_CHANGE_GPIO_SEL
Definition: mykonos_macros.h:247
#define MYKONOS_ADDR_GP_INTERRUPT_READ_0
Definition: mykonos_macros.h:527
@ MYKONOS_ERR_SETUPAUXDAC_NULL_PARAM
Definition: t_mykonos_gpio.h:102
mykonosGpioErr_t MYKONOS_setGpioOe(mykonosDevice_t *device, uint32_t gpioOutEn, uint32_t gpioUsedMask)
Sets the Mykonos low voltage GPIO output pins direction.
Definition: mykonos_gpio.c:2902
#define MYKONOS_GPIO_SLEW_CTL_2
Definition: mykonos_macros.h:29
mykonosGpioErr_t MYKONOS_getTempSensorConfig(mykonosDevice_t *device, mykonosTempSensorConfig_t *tempSensor)
Reads from the Temperature Sensor registers and populates device data structure.
Definition: mykonos_gpio.c:4644
#define MYKONOS_ADDR_GPIO_MONITOR_ENABLE
Definition: mykonos_macros.h:522
mykonosGpioErr_t MYKONOS_setGpio3v3Oe(mykonosDevice_t *device, uint16_t gpio3v3OutEn)
This function sets the Pin direction control for the Mykonos 3.3 VDC GPIO.
Definition: mykonos_gpio.c:3257
#define MYKONOS_ADDR_PDAUXDAC_MANUAL_IN_9_6
Definition: mykonos_macros.h:532
#define ORX1_ENABLE_ACK_SIGNALID
Definition: mykonos_macros.h:692
@ MYKONOS_ERR_GPIO_GETSLEW_NULL_PARAM
Definition: t_mykonos_gpio.h:198
@ MYKONOS_ERR_SETUPAUXADC_INV_VCODIV
Definition: t_mykonos_gpio.h:109
@ MYK_CMOSPAD_DRV_5X
Definition: t_mykonos_gpio.h:244
mykonosGpioErr_t MYKONOS_setGpioSlewRate(mykonosDevice_t *device, mykonosGpioSelect_t gpioSelect, mykonosGpioSlewRate_t slewRate)
This function sets the slew rate for the required GPIOs.
Definition: mykonos_gpio.c:5002
mykonosGpioErr_t MYKONOS_setTx1AttenCtrlPin(mykonosDevice_t *device, uint8_t stepSize, mykonosGpioSelect_t tx1AttenIncPin, mykonosGpioSelect_t tx1AttenDecPin, uint8_t enable, uint8_t useTx1ForTx2)
This API function configures the GPIO inputs for controlling Tx attenuation settings.
Definition: mykonos_gpio.c:1683
@ MYKONOS_ERR_GETTX2PIN_DEC_NULL_PARM
Definition: t_mykonos_gpio.h:65
@ GPIO_18_17_16
Definition: t_mykonos_gpio.h:220
#define TX2_ENABLE_ACK_SIGNALID
Definition: mykonos_macros.h:691
@ MYKONOS_ERR_GPIO_HYBRID_ORX_PIN_NULL_PARM
Definition: t_mykonos_gpio.h:183
@ MYKONOS_ERR_SLICER_OBS_RX_EN_INV
Definition: t_mykonos_gpio.h:139
@ MYKONOS_ERR_SET_ARMGPIO_INV_POINTER
Definition: t_mykonos_gpio.h:97
mykonosGpioErr_t MYKONOS_setObsRxGainCompensation(mykonosDevice_t *device, mykonosObsRxGainComp_t *gainComp, uint8_t enable)
Gain compensation enable and setup function for the observation channel.
Definition: mykonos_gpio.c:3579
mykonosGpioErr_t MYKONOS_setGpioPinLevel(mykonosDevice_t *device, uint32_t gpioPinLevel)
Sets the Mykonos low voltage GPIO output pins level.
Definition: mykonos_gpio.c:2116
@ MYKONOS_ERR_FLOATFRMT_INV_ORXATT
Definition: t_mykonos_gpio.h:161
mykonosGpioErr_t MYKONOS_setGpio3v3Oe(mykonosDevice_t *device, uint16_t gpio3v3OutEn)
This function sets the Pin direction control for the Mykonos 3.3 VDC GPIO.
Definition: mykonos_gpio.c:3257
#define MYKONOS_ADDR_GPIO_3V3_LSB_SRC_CTL
Definition: mykonos_macros.h:505
#define MYKONOS_ADDR_AGC_MANUAL_GAIN_GPIO_SEL
Definition: mykonos_macros.h:251
uint8_t tempValid
Definition: t_mykonos_gpio.h:367
@ MYKONOS_ERR_SLICER_INV_RX2_SEL
Definition: t_mykonos_gpio.h:129
@ MYKONOS_ERR_GETTX2PIN_TX1TX2_NULL_PARM
Definition: t_mykonos_gpio.h:67
@ MYKONOS_ERR_SET_GPIO_3V3_INV_POINTER
Definition: t_mykonos_gpio.h:91
mykonosGpioSelect_t
Enum for Mykonos low voltage GPIO available pins.
Definition: t_mykonos.h:572
mykonosGpioErr_t MYKONOS_getGpioSetLevel(mykonosDevice_t *device, uint32_t *gpioPinSetLevel)
Reads the Mykonos GPIO pin output levels for BITBANG mode.
Definition: mykonos_gpio.c:2193
mykonosGpioErr_t MYKONOS_setGpioDrv(mykonosDevice_t *device, uint32_t gpioDrv)
This function sets the drive strength for the required GPIOs.
Definition: mykonos_gpio.c:4829
mykonosGpioErr_t MYKONOS_setCmosDrv(mykonosDevice_t *device, mykonosCmosPadDrvStr_t cmosDrv)
This function sets the CMOS output driver.
Definition: mykonos_gpio.c:5222
mykonosGpioErr_t MYKONOS_setupAuxAdcs(mykonosDevice_t *device, uint8_t adcDecimation, uint8_t enable)
Sets up the auxiliary ADC.
Definition: mykonos_gpio.c:2505
@ MYKONOS_ERR_SLICER_OBS_RX_STEP_OUT_OF_RANGE
Definition: t_mykonos_gpio.h:138
#define MYKONOS_ADDR_GPIO_3V3_SPI_READ_15_8
Definition: mykonos_macros.h:504
@ MYKGPIO17
Definition: t_mykonos.h:592
@ VCODIV_1p5
Definition: t_mykonos.h:696
@ MYKONOS_ERR_GAIN_CONTROL_NOT_HYBRID
Definition: t_mykonos_gpio.h:174
mykonosGpioErr_t MYKONOS_setObsRxGainCompensation(mykonosDevice_t *device, mykonosObsRxGainComp_t *gainComp, uint8_t enable)
Gain compensation enable and setup function for the observation channel.
Definition: mykonos_gpio.c:3579
mykonosGpioErr_t MYKONOS_getObsRxGainCompensation(mykonosDevice_t *device, mykonosObsRxGainComp_t *gainComp, uint8_t *enabled)
Get gain compensation setup and enabled function for the observation channel.
Definition: mykonos_gpio.c:3660
Contains address and miscellaneous macro definitions for Mykonos API.
@ MYKONOS_ERR_GETTX2PIN_EN_NULL_PARM
Definition: t_mykonos_gpio.h:66
Data structure to hold Mykonos device settings.
Definition: t_mykonos.h:1695
mykonosObsRxSlicer_t
Enum of possible observation channel Slicer pin combinations.
Definition: t_mykonos_gpio.h:218
mykonosGpioErr_t MYKONOS_getObsRxAgcEnSyncPin(mykonosDevice_t *device, mykonosGpioSelect_t *obsRxAgcSyncPin)
This API function gets the pin configuration for AGC Sync gain control of observation channel.
Definition: mykonos_gpio.c:1599
mykonosGpioErr_t MYKONOS_setRxAgcEnSyncPin(mykonosDevice_t *device, mykonosGpioSelect_t rx1AgcSyncPin, mykonosGpioSelect_t rx2AgcSyncPin)
This API function set the pins for sync AGC gain control.
Definition: mykonos_gpio.c:1353
#define MYKONOS_ADDR_PDAUXDAC_MANUAL_CONTROL_5_0
Definition: mykonos_macros.h:529
#define SRX_ENABLE_ACK_SIGNALID
Definition: mykonos_macros.h:694
@ MYKONOS_ERR_SET_GPIO_3V3_INV_SRC_CTRL
Definition: t_mykonos_gpio.h:95
@ GPIO_8_9_10
Definition: t_mykonos_gpio.h:211
mykonosGpioErr_t MYKONOS_getTx2AttenCtrlPin(mykonosDevice_t *device, uint8_t *stepSize, mykonosGpioSelect_t *tx2AttenIncPin, mykonosGpioSelect_t *tx2AttenDecPin, uint8_t *enable, uint8_t *useTx1ForTx2)
This API function returns the configuration TX2 attenuation Pin control.
Definition: mykonos_gpio.c:2014
Data structure to hold Gain compensation settings for the main receive channels.
Definition: t_mykonos_gpio.h:265
#define MYKONOS_ADDR_TEMP_SENSOR_CONTROL_MSB
Definition: mykonos_macros.h:546
#define MYKONOS_ADDR_GP_INTERRUPT_READ_1
Definition: mykonos_macros.h:526
mykonosGpioErr_t MYKONOS_setRxSlicerCtrl(mykonosDevice_t *device, uint8_t slicerStep, mykonosRxSlicer_t rx1Pins, mykonosRxSlicer_t rx2Pins, uint8_t enable)
Slicer control over GPIO inputs.
Definition: mykonos_gpio.c:3744
mykonosGpioErr_t MYKONOS_setRxHybridGainChangePin(mykonosDevice_t *device, mykonosGpioSelect_t rx1GainChangePin, mykonosGpioSelect_t rx2GainChangePin)
This API function set the pins for hybrid gain control.
Definition: mykonos_gpio.c:1028
mykonosGpioErr_t MYKONOS_getRxGainCompensation(mykonosDevice_t *device, mykonosGainComp_t *gainComp, uint8_t *enabled)
Get gain compensation setup and enabled function.
Definition: mykonos_gpio.c:3510
@ MYKONOS_ERR_GPIO_HYBRID_RX1_PIN_NULL_PARM
Definition: t_mykonos_gpio.h:177
@ MYKONOS_ERR_MGCRX2_GPIO_DECPIN_INV_PARAM
Definition: t_mykonos_gpio.h:39
@ MYKONOS_ERR_OBS_RX_GAINCOMP_INV_STEP
Definition: t_mykonos_gpio.h:124
@ MYKONOS_ERR_TPCTX1_GPIO_INCPIN_INV_PARAM
Definition: t_mykonos_gpio.h:61
@ MYKONOS_ERR_WRITEAUXDAC_INV_AUXDACCODE
Definition: t_mykonos_gpio.h:106
@ MYKONOS_ERR_GPIO_SLEW_RATE_INV_PARAM
Definition: t_mykonos_gpio.h:197
@ MYKONOS_ERR_GAINCOMP_INV_STEP
Definition: t_mykonos_gpio.h:117
@ MYKONOS_ERR_SLICER_STEP_OUT_OF_RANGE
Definition: t_mykonos_gpio.h:127
@ MYK_CMOSPAD_DRV_4X
Definition: t_mykonos_gpio.h:243
@ MYKONOS_ERR_GETGPIOSETLEVEL_NULL_PARM
Definition: t_mykonos_gpio.h:79
mykonosGpioErr_t MYKONOS_getOrxEnFloatPntFrmt(mykonosDevice_t *device, uint8_t *orxAtt, uint8_t *enable)
Floating point formatter enable and setup function.
Definition: mykonos_gpio.c:4491
uint8_t compStep
Definition: t_mykonos_gpio.h:273
#define MYKONOS_ADDR_GP_INTERRUPT_MASK_1
Definition: mykonos_macros.h:524
@ MYKONOS_ERR_GETTX1PIN_TX1TX2_NULL_PARM
Definition: t_mykonos_gpio.h:72
@ MYKONOS_ERR_TPCTX2_GPIO_STEP_INV_PARAM
Definition: t_mykonos_gpio.h:59
mykonosGpioErr_t MYKONOS_getFloatPointFrmt(mykonosDevice_t *device, mykonosFloatPntFrmt_t *floatFrmt)
Floating point formatter setup function.
Definition: mykonos_gpio.c:4217
@ MYKONOS_ERR_OBS_RX_GAINCOMP_EN_NULL_PARAM
Definition: t_mykonos_gpio.h:121
mykonosGpioErr_t MYKONOS_getRxGainCompensation(mykonosDevice_t *device, mykonosGainComp_t *gainComp, uint8_t *enabled)
Get gain compensation setup and enabled function.
Definition: mykonos_gpio.c:3510
mykonosGpioErr_t MYKONOS_readGpInterruptStatus(mykonosDevice_t *device, uint16_t *status)
Reads the General Purpose (GP) interrupt status to determine what caused the GP Interrupt pin to asse...
Definition: mykonos_gpio.c:2310
#define MYKONOS_ADR_AUX_ADC_CLOCK_DIVIDE
Definition: mykonos_macros.h:536
@ MYKONOS_ERR_MGCRX1_STEP_INV_PARAM
Definition: t_mykonos_gpio.h:45
commonErr_t CMB_SPIReadByte(spiSettings_t *spiSettings, uint16_t addr, uint8_t *readdata)
Definition: common.c:202
@ MYKGPIO1
Definition: t_mykonos.h:576
#define MYKONOS_ADDR_PDAUXDAC_MANUAL_CONTROL_9_6
Definition: mykonos_macros.h:530
@ AGC
Definition: t_mykonos.h:801
#define NULL
Definition: wrapper.h:64
@ MYKONOS_ERR_TPCTX2_GPIO_INCPIN_INV_PARAM
Definition: t_mykonos_gpio.h:58
@ MYKGPIO12
Definition: t_mykonos.h:587
@ MYKONOS_ERR_WRITEAUXDAC_NULL_AUXIO
Definition: t_mykonos_gpio.h:103
uint8_t tempDecimation
Definition: t_mykonos_gpio.h:347
mykonosGpioErr_t MYKONOS_getRxSlicerCtrl(mykonosDevice_t *device, uint8_t *slicerStep, mykonosRxSlicer_t *rx1Pins, mykonosRxSlicer_t *rx2Pins, uint8_t *enable)
This function will get the programmed Slicer control for Rx1 and Rx2 channels.
Definition: mykonos_gpio.c:3840
@ MYKONOS_ERR_SET_ARMGPIO_PINS_ARMERROR
Definition: t_mykonos_gpio.h:98
const char * getGpioMykonosErrorMessage(mykonosGpioErr_t errorCode)
Helper function for return of character string based on 32-bit mykonosGpioErr_t enum value.
Definition: mykonos_gpio.c:37
@ MYKONOS_ERR_SLICER_INV_RX1_SEL
Definition: t_mykonos_gpio.h:128
mykonosGpioErr_t MYKONOS_setObsRxHybridGainChangePin(mykonosDevice_t *device, mykonosGpioSelect_t obsRxGainChangePin)
This API function set the pins for hybrid gain control.
Definition: mykonos_gpio.c:1214
mykonosGpioErr_t MYKONOS_setCmosDrv(mykonosDevice_t *device, mykonosCmosPadDrvStr_t spiDrv)
This function sets the CMOS output driver.
Definition: mykonos_gpio.c:5222
uint8_t windowExceeded
Definition: t_mykonos_gpio.h:363
@ MYKONOS_ERR_FLOATFRMT_INV_EXP_BITS
Definition: t_mykonos_gpio.h:149
uint8_t offset
Definition: t_mykonos_gpio.h:349
@ MYKONOS_ERR_MGCRX2_GPIO_INCPIN_INV_PARAM
Definition: t_mykonos_gpio.h:40
mykonosGpioErr_t MYKONOS_getObsRxGainCompensation(mykonosDevice_t *device, mykonosObsRxGainComp_t *gainComp, uint8_t *enabled)
Get gain compensation setup and enabled function for the observation channel.
Definition: mykonos_gpio.c:3660
mykonosGpioSlewRate_t
Enum of possible GPIO slew rate settings.
Definition: t_mykonos_gpio.h:227
mykonosGpioMode_t
Enum to set the low voltage GPIO mode.
Definition: t_mykonos.h:891
@ MYKGPIO11
Definition: t_mykonos.h:586
mykonosGpioErr_t MYKONOS_getGpioOe(mykonosDevice_t *device, uint32_t *gpioOutEn)
Gets the Mykonos low voltage GPIO output pins direction.
Definition: mykonos_gpio.c:2962
@ MYKONOS_ERR_FLOATFRMT_INV_ENC_NAN
Definition: t_mykonos_gpio.h:148
#define ORX_TRIGGER_SIGNALID
Definition: mykonos_macros.h:684
@ MYKGPIO9
Definition: t_mykonos.h:584
@ MYKONOS_ERR_EN_MONITOR_OUT_NOT_ENABLED
Definition: t_mykonos_gpio.h:33
#define MYKONOS_ADDR_GPIO_MONITOR_INDEX
Definition: mykonos_macros.h:521
const char * getGpioMykonosErrorMessage(mykonosGpioErr_t errorCode)
Helper function for return of character string based on 32-bit mykonosGpioErr_t enum value.
Definition: mykonos_gpio.c:37
mykonosGpioErr_t MYKONOS_getRxEnFloatPntFrmt(mykonosDevice_t *device, uint8_t *rx1Att, uint8_t *rx2Att, uint8_t *enable)
Floating point formatter setup function.
Definition: mykonos_gpio.c:4357
mykonosGpioErr_t MYKONOS_setupGpio3v3(mykonosDevice_t *device)
Sets the Mykonos 3.3 VDC GPIO configuration registers.
Definition: mykonos_gpio.c:3097
mykonosGpioErr_t MYKONOS_setRxHybridGainChangePin(mykonosDevice_t *device, mykonosGpioSelect_t rx1GainChangePin, mykonosGpioSelect_t rx2GainChangePin)
This API function set the pins for hybrid gain control.
Definition: mykonos_gpio.c:1028
@ MYKONOS_ERR_FLOATFRMT_SET_INV_EN
Definition: t_mykonos_gpio.h:157
Contains macro definitions and function prototypes for mykonos.c.
@ MYKONOS_ERR_GAINCOMP_EN_NULL_PARM
Definition: t_mykonos_gpio.h:113
@ MYKONOS_ERR_GET_GPIO_SOURCE_CONTROL_NULL_PARM
Definition: t_mykonos_gpio.h:85
@ MYKONOS_ERR_READGPIOSPI_NULL_PARM
Definition: t_mykonos_gpio.h:80
mykonosGpioErr_t MYKONOS_setRxEnFloatPntFrmt(mykonosDevice_t *device, uint8_t rx1Att, uint8_t rx2Att, uint8_t enable)
Floating point formatter enable/disable Rx1 and Rx2 function.
Definition: mykonos_gpio.c:4285
mykonosGpioErr_t MYKONOS_configGpInterrupt(mykonosDevice_t *device, uint16_t gpMask)
Sets the General Purpose (GP) interrupt register bit mask to enable interrupt sources to assert the G...
Definition: mykonos_gpio.c:2252
@ MYKONOS_ERR_GPIO_HYBRID_RX2_PIN
Definition: t_mykonos_gpio.h:176
mykonosGpioErr_t MYKONOS_readAuxAdc(mykonosDevice_t *device, uint16_t *adcCode)
Reads from the selected channel of the auxiliary ADC.
Definition: mykonos_gpio.c:2647
@ MYKONOS_ERR_OBS_RX_GAINCOMP_NULL_STRUCT
Definition: t_mykonos_gpio.h:125
uint8_t windowHiLo
Definition: t_mykonos_gpio.h:365
mykonosGpioErr_t MYKONOS_getRxEnFloatPntFrmt(mykonosDevice_t *device, uint8_t *rx1Att, uint8_t *rx2Att, uint8_t *enable)
Floating point formatter setup function.
Definition: mykonos_gpio.c:4357
#define MYKONOS_ADDR_GPIO_SPI_READ_15_8
Definition: mykonos_macros.h:515
mykonosGpioErr_t MYKONOS_getGpioSetLevel(mykonosDevice_t *device, uint32_t *gpioPinSetLevel)
Reads the Mykonos GPIO pin output levels for BITBANG mode.
Definition: mykonos_gpio.c:2193
@ MYKONOS_ERR_SET_GPIO_1V8_INV_MODE
Definition: t_mykonos_gpio.h:81
mykonosGpioErr_t MYKONOS_getFloatPointFrmt(mykonosDevice_t *device, mykonosFloatPntFrmt_t *floatFrmt)
Floating point formatter setup function.
Definition: mykonos_gpio.c:4217
#define MYKONOS_ADDR_DPD_SNF_RX_GAIN_COMP_CFG
Definition: mykonos_macros.h:451
mykonosGpioErr_t MYKONOS_readGpInterruptStatus(mykonosDevice_t *device, uint16_t *status)
Reads the General Purpose (GP) interrupt status to determine what caused the GP Interrupt pin to asse...
Definition: mykonos_gpio.c:2310
#define MYKONOS_ADDR_GPIO_SPI_SRC_18_16
Definition: mykonos_macros.h:513
mykonosGpioErr_t MYKONOS_getObsRxSlicerCtrl(mykonosDevice_t *device, uint8_t *slicerStep, mykonosObsRxSlicer_t *obsRxPins, uint8_t *enable)
This function will get the programmed Slicer control for observation channel.
Definition: mykonos_gpio.c:4027
#define MYKONOS_ADDR_GPIO_3V3_SPI_SRC_7_0
Definition: mykonos_macros.h:501
@ MYKONOS_ERR_SETUPTEMPSENSOR_NULL_PARAM
Definition: t_mykonos_gpio.h:166
mykonosGpioErr_t MYKONOS_setRxEnFloatPntFrmt(mykonosDevice_t *device, uint8_t rx1Att, uint8_t rx2Att, uint8_t enable)
Floating point formatter enable/disable Rx1 and Rx2 function.
Definition: mykonos_gpio.c:4285
@ GPIO_0_1_2
Definition: t_mykonos_gpio.h:209
mykonosGpioErr_t MYKONOS_startTempMeasurement(mykonosDevice_t *device)
Initiates temperature measurement.
Definition: mykonos_gpio.c:4701
mykonosGpioErr_t MYKONOS_getRxSlicerCtrl(mykonosDevice_t *device, uint8_t *slicerStep, mykonosRxSlicer_t *rx1Pins, mykonosRxSlicer_t *rx2Pins, uint8_t *enable)
This function will get the programmed Slicer control for Rx1 and Rx2 channels.
Definition: mykonos_gpio.c:3840
mykonosGpioErr_t MYKONOS_readAuxAdc(mykonosDevice_t *device, uint16_t *adcCode)
Reads from the selected channel of the auxiliary ADC.
Definition: mykonos_gpio.c:2647
@ MYKONOS_ERR_GETGPIODRV_NULL_PARAM
Definition: t_mykonos_gpio.h:194
@ MYKONOS_ERR_READTEMPSENSOR_NOT_LOCKED
Definition: t_mykonos_gpio.h:172
@ MYKONOS_ERR_GP_INT_STATUS_NULL_PARAM
Definition: t_mykonos_gpio.h:88
@ MYKONOS_ERR_SLICER_STEP_NULL_PARM
Definition: t_mykonos_gpio.h:134
#define MYKONOS_ADDR_RX_GAIN_COMP_CFG
Definition: mykonos_macros.h:447
@ MYKONOS_ERR_GAINCOMP_SET_NULL_STRUCT
Definition: t_mykonos_gpio.h:114
#define MYKONOS_ADDR_RX_SLCR_PIN_CFG
Definition: mykonos_macros.h:448
@ MYKONOS_ERR_SLICER_RX2PIN_NULL_PARM
Definition: t_mykonos_gpio.h:133
mykonosGpioErr_t MYKONOS_setGpioMonitorOut(mykonosDevice_t *device, uint8_t monitorIndex, uint8_t monitorMask)
This API function configures the monitor output function for the GPIOs.
Definition: mykonos_gpio.c:494
@ MYKGPIO16
Definition: t_mykonos.h:591
mykonosGpioErr_t MYKONOS_setRx1GainCtrlPin(mykonosDevice_t *device, uint8_t incStep, uint8_t decStep, mykonosGpioSelect_t rx1GainIncPin, mykonosGpioSelect_t rx1GainDecPin, uint8_t enable)
This API function configures the GPIO inputs for controlling RX gain.
Definition: mykonos_gpio.c:617
#define ORX2_ENABLE_ACK_SIGNALID
Definition: mykonos_macros.h:693
@ MYKONOS_ERR_SLICER_INV_OBS_RX_SEL
Definition: t_mykonos_gpio.h:137
mykonosGpioErr_t MYKONOS_setRxSlicerCtrl(mykonosDevice_t *device, uint8_t slicerStep, mykonosRxSlicer_t rx1Pins, mykonosRxSlicer_t rx2Pins, uint8_t enable)
Slicer control over GPIO inputs.
Definition: mykonos_gpio.c:3744
mykonosGpioErr_t MYKONOS_getObsRxHybridGainChangePin(mykonosDevice_t *device, mykonosGpioSelect_t *obsRxGainChangePin)
This API function gets the pin configuration for hybrid gain control of observation channel.
Definition: mykonos_gpio.c:1276
#define MYKONOS_ADDR_RX1_GAIN_COMP_OFFSET
Definition: mykonos_macros.h:445
mykonosGpioErr_t MYKONOS_getRxAgcEnSyncPin(mykonosDevice_t *device, mykonosGpioSelect_t *rx1AgcSyncPin, mykonosGpioSelect_t *rx2AgcSyncPin)
This API function gets the GPIO pin configuration for AGC gain sync control of RX1 and RX2.
Definition: mykonos_gpio.c:1439
#define MYKONOS_ADDR_TX_TPC_GPIO_CFG
Definition: mykonos_macros.h:491
mykonosGpioErr_t MYKONOS_getTx1AttenCtrlPin(mykonosDevice_t *device, uint8_t *stepSize, mykonosGpioSelect_t *tx1AttenIncPin, mykonosGpioSelect_t *tx1AttenDecPin, uint8_t *enable, uint8_t *useTx1ForTx2)
This API function returns the configuration TX1 attenuation Pin control.
Definition: mykonos_gpio.c:1793
mykonosGpioErr_t MYKONOS_setRx2GainCtrlPin(mykonosDevice_t *device, uint8_t incStep, uint8_t decStep, mykonosGpioSelect_t rx2GainIncPin, mykonosGpioSelect_t rx2GainDecPin, uint8_t enable)
This API function configures the GPIO inputs for controlling RX gain.
Definition: mykonos_gpio.c:825
uint8_t rx1Offset
Definition: t_mykonos_gpio.h:267
#define MYKONOS_ADDR_GPIO_DIR_CTL_18_16
Definition: mykonos_macros.h:510
@ MYKONOS_ERR_GPIO_DRV_INV_PARAM
Definition: t_mykonos_gpio.h:195
Data structure to hold floating point formatter settings for the floating point number generation.
Definition: t_mykonos_gpio.h:313
mykonosGpioErr_t MYKONOS_setObsRxSlicerCtrl(mykonosDevice_t *device, uint8_t slicerStep, mykonosObsRxSlicer_t obsRxPins, uint8_t enable)
Slicer control over GPIO inputs for the observation channel.
Definition: mykonos_gpio.c:3954
#define MYKONOS_ADDR_AUX_ADC_READ_LSB
Definition: mykonos_macros.h:539
Contains type definitions for Mykonos API.
@ GPIO_11_12_13
Definition: t_mykonos_gpio.h:212
@ MYKGPIO6
Definition: t_mykonos.h:581
uint8_t rx2Offset
Definition: t_mykonos_gpio.h:270
mykonosRxSlicer_t
Enum of possible Rx Slicer pin combinations.
Definition: t_mykonos_gpio.h:207
mykonosGpioErr_t MYKONOS_getRx1GainCtrlPin(mykonosDevice_t *device, uint8_t *incStep, uint8_t *decStep, mykonosGpioSelect_t *rx1GainIncPin, mykonosGpioSelect_t *rx1GainDecPin, uint8_t *enable)
This API function returns the configuration RX1 gain Pin control.
Definition: mykonos_gpio.c:705
uint8_t leading
Definition: t_mykonos_gpio.h:338
#define MYKONOS_ADDR_GPIO_SPI_SRC_15_8
Definition: mykonos_macros.h:512
@ MYKONOS_ERR_GETTX2PIN_STEP_NULL_PARM
Definition: t_mykonos_gpio.h:63
@ MYKONOS_ERR_FLOATFRMT_NULL_RX2ATT
Definition: t_mykonos_gpio.h:155
@ MYKONOS_ERR_GPIO_SRC_PARAM_INV
Definition: t_mykonos_gpio.h:84
@ MYKONOS_ERR_AGC_OBS_NOT_IN_HYBRID
Definition: t_mykonos_gpio.h:181
mykonosGpioErr_t MYKONOS_setObsRxAgcEnSyncPin(mykonosDevice_t *device, mykonosGpioSelect_t obsRxAgcSyncPin)
This API function set the pins for AGC gain Sync control.
Definition: mykonos_gpio.c:1537
@ MYKONOS_ERR_FLOATFRMT_INV_RX2ATT
Definition: t_mykonos_gpio.h:152
mykonosGpioErr_t MYKONOS_setGpioMonitorOut(mykonosDevice_t *device, uint8_t monitorIndex, uint8_t monitorMask)
This API function configures the monitor output function for the GPIOs.
Definition: mykonos_gpio.c:494
@ MYKONOS_ERR_FLOATFRMT_INV_DATA_FORMAT
Definition: t_mykonos_gpio.h:147
#define ORX_MODE_2_SIGNALID
Definition: mykonos_macros.h:687
mykonosGpioErr_t MYKONOS_configGpInterrupt(mykonosDevice_t *device, uint16_t gpMask)
Sets the General Purpose (GP) interrupt register bit mask to enable interrupt sources to assert the G...
Definition: mykonos_gpio.c:2252
@ MYKONOS_ERR_GPIO_AGC_SYNC_ORX_PIN_NULL_PARM
Definition: t_mykonos_gpio.h:192
@ MYKONOS_ERR_GETRX2PIN_INCSTEP_NULL_PARM
Definition: t_mykonos_gpio.h:46
#define MYKONOS_ADDR_TX_INCR_DECR_WORD
Definition: mykonos_macros.h:489
mykonosGpioErr_t MYKONOS_getGpioMonitorOut(mykonosDevice_t *device, uint8_t *monitorIndex, uint8_t *monitorMask)
This API function reads the GPIO monitor index from Mykonos.
Definition: mykonos_gpio.c:540
@ MYKONOS_ERR_TPCTX1_GPIO_STEP_INV_PARAM
Definition: t_mykonos_gpio.h:62
@ MYKGPIO10
Definition: t_mykonos.h:585
@ MYKONOS_ERR_SLICER_OBS_RX_EN_NULL_PARM
Definition: t_mykonos_gpio.h:140
@ MYKONOS_ERR_GETRX2PIN_DECPIN_NULL_PARM
Definition: t_mykonos_gpio.h:49
@ MYKONOS_ERR_GETTEMPSENSORCFG_NULL_PARAM
Definition: t_mykonos_gpio.h:170
mykonosGpioErr_t MYKONOS_setTx2AttenCtrlPin(mykonosDevice_t *device, uint8_t stepSize, mykonosGpioSelect_t tx2AttenIncPin, mykonosGpioSelect_t tx2AttenDecPin, uint8_t enable)
This API function configures the GPIO inputs for controlling Tx attenuation settings.
Definition: mykonos_gpio.c:1915
@ MYKONOS_ERR_FLOATFRMT_NULL_ORXATT
Definition: t_mykonos_gpio.h:163