![Logo](ti_logo.svg) |
AM273x MCU+ SDK
08.06.00
|
|
Go to the documentation of this file.
56 #include <drivers/hw_include/cslr_soc.h>
73 #define GPADC_DISABLE (0U)
75 #define GPADC_ENABLE (1U)
77 #define GPADC_ASSERT_RESET (1U)
79 #define GPADC_DEASSERT_RESET (0U)
81 #define GPADC_FSM_ASSERT_RESET (0x7U)
83 #define GPADC_FSM_DEASSERT_RESET (0U)
92 #define GPADC_MODE_DISABLE (0U)
94 #define GPADC_MODE_IFM (1U)
96 #define GPADC_MODE_CTM (2U)
105 #define GPADC_MON_INSTR_RAM_ST_IND (224U)
107 #define GPADC_MAX_MON_INSTR_RAM (32U)
111 #define MAX_CTM_GPADC_PARAMS (1U)
122 #define GPADC_TIMEOUT_MAX (200000U)
125 #define EFUSE_TRIM_TEMPERATURE_CONST 523
127 #define EFUSE_TRIM_TEMPERATURE_DIV_CONST 10
129 #define ZERO_PT_TRIM_FIXED_TRIM_TEMP 110
131 #define ZERO_PT_TRIM_FIXED_DIG_TEMP_SENSOR_TRIM_30C 305U
136 #define ZERO_PT_TRIM_FIXED_SLOPE -1.05
138 #define ONE_PT_TRIM_FIXED_SLOPE -1.05
140 #define EFUSE1_ROW_14_FUSEROM_VER_START_BIT 20U
142 #define EFUSE1_ROW_14_FUSEROM_VER_STOP_BIT 24U
144 #define EFUSE1_ROW_36_TRIM_TEMPERATURE_30C_START_BIT 15U
146 #define EFUSE1_ROW_36_TRIM_TEMPERATURE_30C_STOP_BIT 25U
148 #define EFUSE1_ROW_33_TRIM_TEMPERATURE_125C_START_BIT 0U
150 #define EFUSE1_ROW_33_TRIM_TEMPERATURE_125C_STOP_BIT 10U
152 #define EFUSE1_ROW_37_DIG_DSP_TEMP_SENSOR_TRIM0_30C_START_BIT 5U
154 #define EFUSE1_ROW_37_DIG_DSP_TEMP_SENSOR_TRIM0_30C_STOP_BIT 14U
156 #define EFUSE1_ROW_37_DIG_HWA_TEMP_SENSOR_TRIM1_30C_START_BIT 15U
158 #define EFUSE1_ROW_37_DIG_HWA_TEMP_SENSOR_TRIM1_30C_STOP_BIT 24U
160 #define EFUSE1_ROW_38_DIG_HSM_TEMP_SENSOR_TRIM2_30C_START_BIT 0U
162 #define EFUSE1_ROW_38_DIG_HSM_TEMP_SENSOR_TRIM2_30C_STOP_BIT 9U
164 #define EFUSE1_ROW_34_DIG_DSP_TEMP_SENSOR_TRIM0_125C_START_BIT 5U
166 #define EFUSE1_ROW_34_DIG_DSP_TEMP_SENSOR_TRIM0_125C_STOP_BIT 14U
168 #define EFUSE1_ROW_34_DIG_HWA_TEMP_SENSOR_TRIM1_125C_START_BIT 15U
170 #define EFUSE1_ROW_34_DIG_HWA_TEMP_SENSOR_TRIM1_125C_STOP_BIT 24U
172 #define EFUSE1_ROW_35_DIG_HSM_TEMP_SENSOR_TRIM2_125C_START_BIT 0U
174 #define EFUSE1_ROW_35_DIG_HSM_TEMP_SENSOR_TRIM2_125C_STOP_BIT 9U
177 #define GPADC_REGS_PTR ((T_GPADC_REGS*)CSL_MSS_GPADC_REG_U_BASE)
179 #define GPADCPKTRAM_REGS_PTR ((T_GPADCPKTRAM_REGS*)CSL_MSS_GPADC_PKT_RAM_U_BASE)
181 #define GPADCOUT_RAM_PTR ((T_GPADCOUT_RAM*)CSL_MSS_GPADC_DATA_RAM_U_BASE)
184 #define MSS_GPADC_RST_CTRL_ADDR (CSL_MSS_RCM_U_BASE + CSL_MSS_RCM_MSS_GPADC_RST_CTRL)
186 #define MSS_GPADC_RST_CTRL_PTR ((MSS_GPADC_RST_CTRL_REG*)MSS_GPADC_RST_CTRL_ADDR)
188 #define MSS_GPADC_CLK_DIV_VAL_ADDR (CSL_MSS_RCM_U_BASE + CSL_MSS_RCM_MSS_GPADC_CLK_DIV_VAL)
190 #define MSS_GPADC_CLK_DIV_VAL_PTR ((MSS_GPADC_CLK_DIV_VAL_REG*)MSS_GPADC_CLK_DIV_VAL_ADDR)
192 #define MSS_GPADC_CLK_GATE_ADDR (CSL_MSS_RCM_U_BASE + CSL_MSS_RCM_MSS_GPADC_CLK_GATE)
194 #define MSS_GPADC_CLK_GATE_PTR ((MSS_GPADC_CLK_GATE_REG*)MSS_GPADC_CLK_GATE_ADDR)
196 #define MSS_TOPRCM_ANA_REG_TW_ANA_TMUX_CTRL_LOWV_ADDR (CSL_MSS_TOPRCM_U_BASE + CSL_MSS_TOPRCM_ANA_REG_TW_ANA_TMUX_CTRL_LOWV)
198 #define MSS_TOPRCM_ANA_REG_TW_ANA_TMUX_CTRL_LOWV_PTR ((MSS_TOPRCM_ANA_REG_TW_ANA_TMUX_CTRL_LOWV_REG*)MSS_TOPRCM_ANA_REG_TW_ANA_TMUX_CTRL_LOWV_ADDR)
200 #define MSS_TOPRCM_ANA_REG_REFSYS_SPARE_REG_LOWV_ADDR (CSL_MSS_TOPRCM_U_BASE + CSL_MSS_TOPRCM_ANA_REG_REFSYS_SPARE_REG_LOWV)
202 #define MSS_TOPRCM_ANA_REG_REFSYS_SPARE_REG_LOWV_PTR ((MSS_TOPRCM_ANA_REG_REFSYS_SPARE_REG_LOWV_REG*)MSS_TOPRCM_ANA_REG_REFSYS_SPARE_REG_LOWV_ADDR)
204 #define MSS_TOPRCM_ANA_REG_TW_CTRL_REG_LOWV_ADDR (CSL_MSS_TOPRCM_U_BASE + CSL_MSS_TOPRCM_ANA_REG_TW_CTRL_REG_LOWV)
206 #define MSS_TOPRCM_ANA_REG_TW_CTRL_REG_LOWV_PTR ((U_MSS_TOPRCM_ANA_REG_TW_CTRL_REG_LOWV_REG*)MSS_TOPRCM_ANA_REG_TW_CTRL_REG_LOWV_ADDR)
208 #define MSS_CTRL_MSS_GPADC_MEM_INIT_ADDR (CSL_MSS_CTRL_U_BASE + CSL_MSS_CTRL_MSS_GPADC_MEM_INIT)
210 #define MSS_CTRL_MSS_GPADC_MEM_INIT_PTR ((MSS_CTRL_MSS_GPADC_MEM_INIT_REG*)MSS_CTRL_MSS_GPADC_MEM_INIT_ADDR)
215 #define REG_STRUCT_SWRITE(w_hwRegStruct, w_regVal, w_regWrSts) \
216 do { (w_hwRegStruct) = (w_regVal); \
217 REG32_SCOMPARE((w_hwRegStruct), (w_regVal), (w_regWrSts)); \
223 #define REG32_SCOMPARE(w_hwVal, w_swVal, w_regWrSts) \
225 (w_regWrSts) |= (((uint32_t)(w_swVal)) ^ ((uint32_t)(w_hwVal))); \
231 #define REG_STRUCT_SCLEAR(w_hwRegStruct, w_regVal, w_regWrSts) \
232 do { (w_hwRegStruct) = (w_regVal); \
233 (w_regWrSts) |= ((((uint32_t)(w_hwRegStruct)) & (uint32_t)(w_regVal))); \
968 typedef volatile struct
@ MAX_GPADC_TEMP_SENSORS
0x3 - MAX_TEMP_SENSORS
Definition: gpadc/v0/gpadc.h:386
@ GPADC_TRIG_SRC_DSS_RTIB_1
0x0C - DSS_RTIB_1
Definition: gpadc/v0/gpadc.h:273
Bool isBufferedMode
TRUE: Buffered mode FALSE: Unbuffered/ Full Scale mode.
Definition: gpadc/v0/gpadc.h:434
int32_t GPADC_readResultBuffer(uint16_t *ResBufferPtr)
The function is used to read the result buffer from the GPADC Driver.
@ GPADC_MEAS_EXT_CH4
0x3 - Channel 4
Definition: gpadc/v0/gpadc.h:321
@ GPADC_TRIG_SRC_RSS_CSI2A_EOL_INT
0x04 - RSS_CSI2A_EOL_INT
Definition: gpadc/v0/gpadc.h:257
uint32_t b8_ParamValue
Definition: gpadc/v0/gpadc.h:484
void GPADC_initTempMeasurement(void)
Initialize GPADC efuse temperature parameters.
GPADC_ChannelConvModeType
Enumeration which lists the conversion modes supported for AM273x GPADC conversion.
Definition: gpadc/v0/gpadc.h:288
uint32_t b3_AdcRefSel_2_0
Definition: gpadc/v0/gpadc.h:692
GPADCREG_REG1 r_Reg1
Definition: gpadc/v0/gpadc.h:971
uint32_t channelConfigValue
Channel Config value
Definition: gpadc/v0/gpadc.h:530
GPADCREG_REG16 r_Reg16
Definition: gpadc/v0/gpadc.h:983
Temperature sensors mux values.
Definition: gpadc/v0/gpadc.h:598
@ GPADC_TRIG_SRC_DSS_RTIA_1
0x0B - DSS_RTIA_1
Definition: gpadc/v0/gpadc.h:271
@ GPADC_TRIG_SRC_RSS_CSI2B_SOF_INT
0x08 - RSS_CSI2B_SOF_INT
Definition: gpadc/v0/gpadc.h:265
uint32_t b3_Gpadc2adcbufPathEn
Definition: gpadc/v0/gpadc.h:714
@ GPADC_TRIG_SRC_MMR_Based_SW_Trigger
0x0F - MMR_Based_SW_Trigger
Definition: gpadc/v0/gpadc.h:279
uint32_t b6_Nu1
Definition: gpadc/v0/gpadc.h:892
GPADC_ConvResultType GPADC_startGroupConversion(GPADC_channelsGroupSelectType channels, uint8_t numChannels)
Starts and triggers the multi channel ADC conversion.
@ GPADC_MEAS_EXT_CH8
0x7 - Channel 8
Definition: gpadc/v0/gpadc.h:329
uint32_t b29_Nu1
Definition: gpadc/v0/gpadc.h:657
uint32_t b1_mem0_init
Definition: gpadc/v0/gpadc.h:997
Register4 Offset 0x010.
Definition: gpadc/v0/gpadc.h:767
GPADCREG_REG8 r_Reg8
Definition: gpadc/v0/gpadc.h:975
@ GPADC_TRIGG_SRC_SW
Conversion is triggered by a software API call.
Definition: gpadc/v0/gpadc.h:304
uint32_t b12_Nu
Definition: gpadc/v0/gpadc.h:882
GPADCREG_REG18 r_Reg18
Definition: gpadc/v0/gpadc.h:985
uint32_t channelConfigValue
Unique muxing config value per sensor.
Definition: gpadc/v0/gpadc.h:600
uint32_t b10_MinGpadc
Definition: gpadc/v0/gpadc.h:891
uint32_t b31_Nu
Definition: gpadc/v0/gpadc.h:924
uint32_t b32_ConfigValueIfm
Definition: gpadc/v0/gpadc.h:742
@ GPADC_TRIG_SRC_GPIO_0
0x00 - GPIO_0
Definition: gpadc/v0/gpadc.h:249
Configuration Parameters for GPADC LUT in IFM mode 32 bits: ConfigValue 32 bits: ParamInfo.
Definition: gpadc/v0/gpadc.h:1006
GPADC_ChannelConvModeType convMode
Conversion mode of the GPADC driver.
Definition: gpadc/v0/gpadc.h:465
uint32_t b1_GpadcFsmBypass
Definition: gpadc/v0/gpadc.h:730
Register11 Offset 0x02C.
Definition: gpadc/v0/gpadc.h:848
uint32_t b30_Reserved1
Definition: gpadc/v0/gpadc.h:666
GPADC_MeasExtSrcType
Enumeration which describes the external sources available for GPADC conversion.
Definition: gpadc/v0/gpadc.h:313
uint32_t b1_AnaTmuxBufBypass
Definition: gpadc/v0/gpadc.h:698
@ GPADC_CONV_ERROR
GPADC conversion error.
Definition: gpadc/v0/gpadc.h:342
uint32_t b8_PktRamBaseAddrCp1
Definition: gpadc/v0/gpadc.h:771
GPADC Config Type data structure for the mode, trigger source and channel configuration for all the a...
Definition: gpadc/v0/gpadc.h:400
void GPADC_init(void)
This function initializes the GPADC module.
@ GPADC_TRIG_SRC_MSS_RTIB_INT1
0x0E - MSS_RTIB_INT1
Definition: gpadc/v0/gpadc.h:277
Register13 Offset 0x034.
Definition: gpadc/v0/gpadc.h:871
uint32_t b32_Val
Definition: gpadc/v0/gpadc.h:491
uint32_t b8_PktRamBaseAddrCp3
Definition: gpadc/v0/gpadc.h:773
uint8_t collectSamples
Number of samples to be collected for conversion per each input channel.
Definition: gpadc/v0/gpadc.h:441
uint32_t b7_Nu1
Definition: gpadc/v0/gpadc.h:727
uint32_t b1_VrefExtCtrl
Definition: gpadc/v0/gpadc.h:696
uint32_t b1_AnaTestEn
Definition: gpadc/v0/gpadc.h:668
uint16_t TotalTime
Time in unit of 100ns = CollectSamples*16 + SkipSamples.
Definition: gpadc/v0/gpadc.h:1014
uint8_t collectSamples
Number of samples to be collected for conversion per each input channel.
Definition: gpadc/v0/gpadc.h:613
@ GPADC_TRIG_SRC_GPIO_1
0x01 - GPIO_1
Definition: gpadc/v0/gpadc.h:251
@ GPADC_MEAS_EXT_CH3
0x2 - Channel 3
Definition: gpadc/v0/gpadc.h:319
Register1 Offset 0x004.
Definition: gpadc/v0/gpadc.h:725
@ GPADC_CONV_DONE
GPADC conversion done.
Definition: gpadc/v0/gpadc.h:344
@ GPADC_TRIG_SRC_RSS_CSI2A_SOF_INT1
0x06 - RSS_CSI2A_SOF_INT1
Definition: gpadc/v0/gpadc.h:261
uint32_t b10_MaxGpadc
Definition: gpadc/v0/gpadc.h:893
uint32_t b32_Reg
bits 31: 0
Definition: gpadc/v0/gpadc.h:759
Bool isConfigured
GPADC driver considers channels configuration passed to the driver by the application only if this fl...
Definition: gpadc/v0/gpadc.h:432
GPADCREG_REG10 r_Reg10
Definition: gpadc/v0/gpadc.h:977
uint16_t b16_Val
bits 16: 0
Definition: gpadc/v0/gpadc.h:516
GPADCREG_REG12 r_Reg12
Definition: gpadc/v0/gpadc.h:979
uint32_t b8_PktRamBaseAddrCp0
Definition: gpadc/v0/gpadc.h:770
uint32_t BuffConfigValue
Buffer configuration value.
Definition: gpadc/v0/gpadc.h:1010
@ GPADC_MEAS_EXT_CH2
0x1 - Channel 2
Definition: gpadc/v0/gpadc.h:317
uint32_t b1_AdcReset
Definition: gpadc/v0/gpadc.h:689
uint32_t b8_CollectSamples
Definition: gpadc/v0/gpadc.h:485
@ GPADC_TRIG_SRC_GPIO_2
0x02 - GPIO_2
Definition: gpadc/v0/gpadc.h:253
Register17 Offset 0x044.
Definition: gpadc/v0/gpadc.h:912
@ GPADC_TRIGG_SRC_HW
Conversion is triggered by a hardware event.
Definition: gpadc/v0/gpadc.h:306
uint32_t b30_Reserved1
Definition: gpadc/v0/gpadc.h:677
uint32_t b5_RtrimTw_4_0
Definition: gpadc/v0/gpadc.h:700
RCM Analog register TW Control Registers.
Definition: gpadc/v0/gpadc.h:686
uint16_t Min
Minimum of ADC samples.
Definition: gpadc/v0/gpadc.h:1025
GPADCREG_REG0 r_Reg0
Definition: gpadc/v0/gpadc.h:970
@ GPADC_MEAS_EXT_CH5
0x4 - Channel 5
Definition: gpadc/v0/gpadc.h:323
uint32_t b8_CollectSamplesIfm
Definition: gpadc/v0/gpadc.h:754
Register21 Offset 0x050.
Definition: gpadc/v0/gpadc.h:942
uint16_t TrimTemp30C
Temperature trim value.
Definition: gpadc/v0/gpadc.h:581
uint16_t FuseROMVer
FuseROM Version.
Definition: gpadc/v0/gpadc.h:564
uint32_t channelConfigValue
Unique muxing config value per channel.
Definition: gpadc/v0/gpadc.h:418
uint16_t * ResultBufferPtr
Pointer to store conversion results.
Definition: gpadc/v0/gpadc.h:554
uint32_t b32_ParamNotUsedTxEna1Off
Definition: gpadc/v0/gpadc.h:831
uint32_t b8_PktRamBaseAddrCp6
Definition: gpadc/v0/gpadc.h:786
Register12 Offset 0x030.
Definition: gpadc/v0/gpadc.h:857
uint32_t b8_PktRamBaseAddrCp14
Definition: gpadc/v0/gpadc.h:810
uint16_t Max
Maximum of ADC samples.
Definition: gpadc/v0/gpadc.h:1027
GPADCREG_REG9 r_Reg9
Definition: gpadc/v0/gpadc.h:976
uint32_t b7_Nu3
Definition: gpadc/v0/gpadc.h:731
Register14 Offset 0x038.
Definition: gpadc/v0/gpadc.h:880
uint32_t b8_PktRamBaseAddrCp15
Definition: gpadc/v0/gpadc.h:811
The Temperature sensor trim parameters structure.
Definition: gpadc/v0/gpadc.h:562
GPADCREG_REG14 r_Reg14
Definition: gpadc/v0/gpadc.h:981
uint32_t b8_PktRamBaseAddrCp12
Definition: gpadc/v0/gpadc.h:808
@ MAX_GPADC_MEAS_SOURCES
0x9 - MAX_CHANNELS
Definition: gpadc/v0/gpadc.h:333
Register6 Offset 0x018.
Definition: gpadc/v0/gpadc.h:795
@ GPADC_DIG_HWA_TEMP_SENSOR
0x1 - DIG_HWA_TEMP_SENSOR
Definition: gpadc/v0/gpadc.h:382
GPADCREG_REG22 r_Reg22
Definition: gpadc/v0/gpadc.h:989
uint32_t b8_GpadcClkDiv
Definition: gpadc/v0/gpadc.h:820
int16_t DigDspTempValue
Digital Dsp Temperature value.
Definition: gpadc/v0/gpadc.h:622
GPADC returning min, avg, max and sum.
Definition: gpadc/v0/gpadc.h:1021
Register Offset 0x000.
Definition: gpadc/v0/gpadc.h:710
uint32_t b1_GpadcIfmDoneClr
Definition: gpadc/v0/gpadc.h:923
uint16_t TrimTemp30C
Efuse Tim Temperature30C Value.
Definition: gpadc/v0/gpadc.h:566
uint32_t b1_GpadcStartBypVal
Definition: gpadc/v0/gpadc.h:732
The Temperature sensor trim parameters structure.
Definition: gpadc/v0/gpadc.h:579
GPADCREG_REG15 r_Reg15
Definition: gpadc/v0/gpadc.h:982
@ GPADC_TRIG_SRC_HW_Sync_FE2
0x0A - HW_Sync_FE2
Definition: gpadc/v0/gpadc.h:269
GPADC_StatusType GPADC_getStatus(void)
Gets the status of GPADC Driver HW unit.
uint32_t b1_AnaogTestTmuxEsdCtrl
Definition: gpadc/v0/gpadc.h:678
@ GPADC_BUSY
The conversion of the specified group has been started and is still going on. So far no result is ava...
Definition: gpadc/v0/gpadc.h:366
uint32_t b8_PktRamBaseAddrCp13
Definition: gpadc/v0/gpadc.h:809
uint32_t b7_Nu1
Definition: gpadc/v0/gpadc.h:859
uint32_t b1_AdcRefBufEn
Definition: gpadc/v0/gpadc.h:691
Bool isChannelConfigured
true if channel is configured
Definition: gpadc/v0/gpadc.h:534
GPADC Clock Divider Value register.
Definition: gpadc/v0/gpadc.h:644
GPADC_ParamInfoType channelParamValue
Channel Param type.
Definition: gpadc/v0/gpadc.h:532
uint32_t b6_Nu2
Definition: gpadc/v0/gpadc.h:894
U_GPADCREG_REG3 r_Reg3
Definition: gpadc/v0/gpadc.h:973
GPADC Driver Channel configuration.
Definition: gpadc/v0/gpadc.h:526
uint32_t b32_SpareWr1
Definition: gpadc/v0/gpadc.h:961
uint32_t skipSamples
Number of samples to be skipped before collecting samples per input channel.
Definition: gpadc/v0/gpadc.h:439
uint16_t TrimTemp125C
Temperature trim value.
Definition: gpadc/v0/gpadc.h:583
Register9 Offset 0x024.
Definition: gpadc/v0/gpadc.h:830
uint32_t b1_GpadcClkEnable
Definition: gpadc/v0/gpadc.h:821
uint32_t b1_AdcInpBufEn
Definition: gpadc/v0/gpadc.h:690
@ GPADC_MEAS_EXT_CH1
0x0 - Channel 1
Definition: gpadc/v0/gpadc.h:315
GPADC_StatusType
Current status of the conversion of the requested GPADC HW unit.
Definition: gpadc/v0/gpadc.h:356
GPADC Memory initialize registers.
Definition: gpadc/v0/gpadc.h:996
Register19 Offset 0x048.
Definition: gpadc/v0/gpadc.h:922
int32_t GPADC_open(GPADC_ConfigType *CfgPtr)
Initializes the GPADC Driver with the channels configuration.
uint32_t b8_PktRamBaseAddrCp7
Definition: gpadc/v0/gpadc.h:787
int32_t GPADC_readTemperature(uint8_t numAverages, uint8_t numChannels, GPADC_TempSensValueType *tempValuesPtr)
Read the temperature sensor value.
int32_t GPADC_stopConversion(void)
Stops the GPADC conversion.
@ GPADC_TRIG_SRC_RSS_CSI2A_SOF_INT
0x07 - RSS_CSI2A_SOF_INT
Definition: gpadc/v0/gpadc.h:263
uint32_t b32_SpareWr2
Definition: gpadc/v0/gpadc.h:872
uint32_t b3_Assert
Definition: gpadc/v0/gpadc.h:635
uint32_t b7_Nu4
Definition: gpadc/v0/gpadc.h:733
uint32_t b1_ClkTmuxEsdCtrl
Definition: gpadc/v0/gpadc.h:667
uint32_t b9_Reserved
Definition: gpadc/v0/gpadc.h:488
float InterceptTemp
Intercept Temperature value.
Definition: gpadc/v0/gpadc.h:591
uint32_t b8_PktRamBaseAddrCp4
Definition: gpadc/v0/gpadc.h:784
GPADC_TriggerSourceType triggSrc
Conversion trigger SW/HW trigger selection.
Definition: gpadc/v0/gpadc.h:467
GPADC_MeasExtSrcType channelID
Channel number The hardware channel number from which input is given Valid values: 0x00 to MAX_GPADC_...
Definition: gpadc/v0/gpadc.h:415
GPADC Clock Gate register.
Definition: gpadc/v0/gpadc.h:655
uint32_t b7_SkipSamples
Definition: gpadc/v0/gpadc.h:487
uint32_t b1_VinExtCtrl
Definition: gpadc/v0/gpadc.h:697
GPADC_TriggerSourceType triggSrc
Trigger Source Type.
Definition: gpadc/v0/gpadc.h:548
@ GPADC_TRIG_SRC_GPIO_3
0x03 - GPIO_3
Definition: gpadc/v0/gpadc.h:255
GPADC Config Type data structure for the mode, trigger source and channel configuration for all the a...
Definition: gpadc/v0/gpadc.h:463
@ GPADC_IDLE
The conversion of the specified group has not been started. No result is available.
Definition: gpadc/v0/gpadc.h:361
uint32_t b8_PktRamBaseAddrCp2
Definition: gpadc/v0/gpadc.h:772
uint32_t b1_AdcStartConv
Definition: gpadc/v0/gpadc.h:688
Register5 Offset 0x014.
Definition: gpadc/v0/gpadc.h:783
uint32_t b8_Nu1
Definition: gpadc/v0/gpadc.h:647
uint32_t b16_GpadcSamplesFrame
Definition: gpadc/v0/gpadc.h:933
uint32_t b4_Nu2
Definition: gpadc/v0/gpadc.h:715
uint32_t Sum
Sum of ADC samples.
Definition: gpadc/v0/gpadc.h:1029
uint32_t b8_ParamValIfm
Definition: gpadc/v0/gpadc.h:753
GPADCREG_REG17 r_Reg17
Definition: gpadc/v0/gpadc.h:984
uint32_t b32_SpareRd2
Definition: gpadc/v0/gpadc.h:952
uint32_t b1_GpadcDebugModeEnable
Definition: gpadc/v0/gpadc.h:716
uint32_t skipSamples
Number of samples to be skipped before collecting samples per input channel.
Definition: gpadc/v0/gpadc.h:610
uint32_t b1_TsDiffInpBufEn
Definition: gpadc/v0/gpadc.h:693
uint32_t b1_GpadcInit
Definition: gpadc/v0/gpadc.h:728
uint32_t b8_PktRamBaseAddrCp10
Definition: gpadc/v0/gpadc.h:798
int32_t GPADC_setupResultBuffer(uint16_t *ResBufferPtr)
Initializes GPADC driver with the group specific result buffer start address where the conversion res...
Analog Mux Control Registers.
Definition: gpadc/v0/gpadc.h:665
MSS_GPADC_REG_REGS.
Definition: gpadc/v0/gpadc.h:969
uint32_t b1_GpadcFsmClkEnable
Definition: gpadc/v0/gpadc.h:713
@ GPADC_ONESHOT_CONV_MODE
0x00 - IFM - Inter Frame Monitoring/One Shot Conversion Mode
Definition: gpadc/v0/gpadc.h:290
Register22 Offset 0x054.
Definition: gpadc/v0/gpadc.h:951
GPADC_TempSensorSrcType
Enumeration which describes the temperature sensors available for GPADC measurement.
Definition: gpadc/v0/gpadc.h:378
uint32_t b7_Nu2
Definition: gpadc/v0/gpadc.h:729
void GPADC_deinit(void)
This function de-initializes the GPADC module.
Register8 Offset 0x020.
Definition: gpadc/v0/gpadc.h:819
GPADCREG_REG20 r_Reg20
Definition: gpadc/v0/gpadc.h:987
uint32_t b8_PktRamBaseAddrCp9
Definition: gpadc/v0/gpadc.h:797
uint32_t b12_Reserved1
Definition: gpadc/v0/gpadc.h:701
uint32_t b8_DramRepairedBit
Definition: gpadc/v0/gpadc.h:863
int16_t DigHwaTempValue
Digital Hwa Temperature value.
Definition: gpadc/v0/gpadc.h:624
uint32_t b23_Nu
Definition: gpadc/v0/gpadc.h:822
Register15 Offset 0x03C.
Definition: gpadc/v0/gpadc.h:890
GPADC Reset Control register.
Definition: gpadc/v0/gpadc.h:634
uint32_t b1_GpadcMemInitDoneStat
Definition: gpadc/v0/gpadc.h:903
uint16_t b7_Reserved
Reserved.
Definition: gpadc/v0/gpadc.h:513
GPADCREG_REG19 r_Reg19
Definition: gpadc/v0/gpadc.h:986
GPADC_TriggerSourceType
Enumeration which describes the trigger sources for GPADC CTM mode conversion.
Definition: gpadc/v0/gpadc.h:302
@ GPADC_DIG_HSM_TEMP_SENSOR
0x2 - DIG_HSM_TEMP_SENSOR
Definition: gpadc/v0/gpadc.h:384
uint32_t b1_DramEccEnable
Definition: gpadc/v0/gpadc.h:858
GPADC_StatusType driverStatus
Driver Status.
Definition: gpadc/v0/gpadc.h:550
GPADC_ConvResultType
Enumeration which describes the error types of GPADC conversion.
Definition: gpadc/v0/gpadc.h:340
int32_t GPADC_close(void)
This function closes the GPADC module.
GPADC_ConvResultType GPADC_startSingleChannelConversion(GPADC_MeasExtSrcType channelID, uint16_t *gpadcValue)
Starts and triggers the single channel conversion. Pass the channelID and result address to the drive...
GPADC_CtmTrigSrcType
Enumeration which describes the trigger sources for GPADC CTM mode conversion.
Definition: gpadc/v0/gpadc.h:247
uint32_t b24_Clkdivr
MSS_GPADC_CLK_DIV_VAL_REG bits structure.
Definition: gpadc/v0/gpadc.h:646
Available <0-8> external sources/channels could be selected by using bitmap of 9 bits in LSB....
Definition: gpadc/v0/gpadc.h:502
Register10 Offset 0x028.
Definition: gpadc/v0/gpadc.h:839
GPADCREG_REG21 r_Reg21
Definition: gpadc/v0/gpadc.h:988
uint8_t channelParamValue
Channel parameters including channel paramVal(subsystem-type), collect samples and skip *samples.
Definition: gpadc/v0/gpadc.h:424
uint32_t b32_ParamNotUsedTxEna3Off
Definition: gpadc/v0/gpadc.h:849
uint32_t b29_Nu1
Definition: gpadc/v0/gpadc.h:636
uint32_t b31_Nu
Definition: gpadc/v0/gpadc.h:904
uint32_t b8_DramEccErrAddr
Definition: gpadc/v0/gpadc.h:862
GPADCREG_REG11 r_Reg11
Definition: gpadc/v0/gpadc.h:978
uint32_t b31_Reserved
Definition: gpadc/v0/gpadc.h:998
@ GPADC_DIG_DSP_TEMP_SENSOR
0x0 - DIG_DSP_TEMP_SENSOR
Definition: gpadc/v0/gpadc.h:380
uint32_t b1_GpadcIfmDoneStatus
Definition: gpadc/v0/gpadc.h:913
uint32_t b7_Nu2
Definition: gpadc/v0/gpadc.h:861
The Temperature sensor values structure.
Definition: gpadc/v0/gpadc.h:620
uint32_t b31_Nu
Definition: gpadc/v0/gpadc.h:914
GPADC_ChannelConvModeType convMode
Operation mode of the group.
Definition: gpadc/v0/gpadc.h:546
@ GPADC_CONTINUOUS_CONV_MODE
0x01 - CTM - Continuous Time Monitoring/ Continuous conversion Mode
Definition: gpadc/v0/gpadc.h:293
uint32_t b32_SpareRd1
Definition: gpadc/v0/gpadc.h:943
uint32_t b20_SumIfm
Definition: gpadc/v0/gpadc.h:881
uint32_t b32_ParamNotUsedTxEna2Off
Definition: gpadc/v0/gpadc.h:840
Configuration Parameters for GPADC in IFM mode ParamValue : Value to be programmed in one hot reg Col...
Definition: gpadc/v0/gpadc.h:480
uint32_t b3_Gated
Definition: gpadc/v0/gpadc.h:656
uint32_t b1_DramEccErrClr
Definition: gpadc/v0/gpadc.h:860
Register20 Offset 0x04C.
Definition: gpadc/v0/gpadc.h:932
Analog Refsys spare Registers.
Definition: gpadc/v0/gpadc.h:676
GPADC_ParamInfoType ParamInfo
ParamInfo.
Definition: gpadc/v0/gpadc.h:1012
@ GPADC_MEAS_EXT_CH9
0x8 - Channel 9
Definition: gpadc/v0/gpadc.h:331
uint16_t TrimTemp125C
Efuse Tim Temperature125C Value.
Definition: gpadc/v0/gpadc.h:568
@ GPADC_MEAS_EXT_CH7
0x6 - Channel 7
Definition: gpadc/v0/gpadc.h:327
Register3 Offset 0x00C.
Definition: gpadc/v0/gpadc.h:750
uint32_t b6_Nu1
Definition: gpadc/v0/gpadc.h:712
uint32_t b1_IforceExtCtrl
Definition: gpadc/v0/gpadc.h:695
uint8_t channelParamValue
Channel parameters including channel paramVal(subsystem-type), collect samples and skip samples.
Definition: gpadc/v0/gpadc.h:605
uint32_t b8_PktRamBaseAddrCp11
Definition: gpadc/v0/gpadc.h:799
uint32_t b8_PktRamBaseAddrCp8
Definition: gpadc/v0/gpadc.h:796
Bool useLuTable
TRUE: Use predefined lookup table to load number of skipSamples and collectSamples configuration for ...
Definition: gpadc/v0/gpadc.h:449
int16_t DigHsmTempValue
Digital Hsm Temperature value.
Definition: gpadc/v0/gpadc.h:626
@ GPADC_TRIG_SRC_MSS_RTIA_INT1
0x0D - MSS_RTIA_INT1
Definition: gpadc/v0/gpadc.h:275
uint32_t UnbuffConfigValue
Unbuff configuration value.
Definition: gpadc/v0/gpadc.h:1008
Register22 Offset 0x058.
Definition: gpadc/v0/gpadc.h:960
uint32_t b2_DcbistMode
Definition: gpadc/v0/gpadc.h:711
@ GPADC_CONV_CHANNEL_CONFIG_MISSING
GPADC requested channel through the channel bitmap or index is not configured during the initializati...
Definition: gpadc/v0/gpadc.h:349
@ GPADC_TRIG_SRC_RSS_CSI2A_SOF_INT0
0x05 - RSS_CSI2A_SOF_INT0
Definition: gpadc/v0/gpadc.h:259
Register7 Offset 0x01C.
Definition: gpadc/v0/gpadc.h:807
uint32_t b7_SkipSamplesIfm
Definition: gpadc/v0/gpadc.h:755
uint16_t b9_ChannelSelectionBitMap
Channel selection bitmap for triggering group GPADC conversion and getting results for the specified ...
Definition: gpadc/v0/gpadc.h:511
uint32_t b9_Nu
Definition: gpadc/v0/gpadc.h:756
uint32_t b1_AdcEn
Definition: gpadc/v0/gpadc.h:687
uint16_t Avg
Average of ADC samples.
Definition: gpadc/v0/gpadc.h:1023
Register16 Offset 0x040.
Definition: gpadc/v0/gpadc.h:902
uint32_t b32_Reg
Definition: gpadc/v0/gpadc.h:775
GPADCREG_REG13 r_Reg13
Definition: gpadc/v0/gpadc.h:980
Bool isChannelBufferedMode
true if Channel is Buffer mode
Definition: gpadc/v0/gpadc.h:528
uint32_t b1_AnaTmuxBufEn
Definition: gpadc/v0/gpadc.h:699
uint32_t b1_GpadcTrigger
Definition: gpadc/v0/gpadc.h:726
uint32_t b1_TsSeInpBufEn
Definition: gpadc/v0/gpadc.h:694
uint32_t b8_PktRamBaseAddrCp5
Definition: gpadc/v0/gpadc.h:785
@ GPADC_MEAS_EXT_CH6
0x5 - Channel 6
Definition: gpadc/v0/gpadc.h:325
@ GPADC_COMPLETED
A conversion round of the specified group has been finished. A result is available for all specified ...
Definition: gpadc/v0/gpadc.h:371
GPADCREG_REG2 r_Reg2
Definition: gpadc/v0/gpadc.h:972
uint32_t b15_Nu3
Definition: gpadc/v0/gpadc.h:717
GPADC Driver Object configuration.
Definition: gpadc/v0/gpadc.h:544
Register2 Offset 0x008.
Definition: gpadc/v0/gpadc.h:741
uint32_t b16_Nu
Definition: gpadc/v0/gpadc.h:934
@ GPADC_TRIG_SRC_HW_Sync_FE1
0x09 - HW_Sync_FE1
Definition: gpadc/v0/gpadc.h:267