AM273x MCU+ SDK  08.06.00
gpadc/v0/gpadc.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2021 Texas Instruments Incorporated
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions
6  * are met:
7  *
8  * Redistributions of source code must retain the above copyright
9  * notice, this list of conditions and the following disclaimer.
10  *
11  * Redistributions in binary form must reproduce the above copyright
12  * notice, this list of conditions and the following disclaimer in the
13  * documentation and/or other materials provided with the
14  * distribution.
15  *
16  * Neither the name of Texas Instruments Incorporated nor the names of
17  * its contributors may be used to endorse or promote products derived
18  * from this software without specific prior written permission.
19  *
20  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31  */
32 
49 #ifndef GPADC_H_
50 #define GPADC_H_
51 
52 /* ========================================================================== */
53 /* Include Files */
54 /* ========================================================================== */
55 
56 #include <drivers/hw_include/cslr_soc.h>
57 #include <kernel/dpl/HwiP.h>
58 
59 #ifdef __cplusplus
60 extern "C" {
61 #endif
62 
63 /* ========================================================================== */
64 /* Macros & Typedefs */
65 /* ========================================================================== */
66 
73 #define GPADC_DISABLE (0U)
74 
75 #define GPADC_ENABLE (1U)
76 
77 #define GPADC_ASSERT_RESET (1U)
78 
79 #define GPADC_DEASSERT_RESET (0U)
80 
81 #define GPADC_FSM_ASSERT_RESET (0x7U)
82 
83 #define GPADC_FSM_DEASSERT_RESET (0U)
84 
92 #define GPADC_MODE_DISABLE (0U)
93 
94 #define GPADC_MODE_IFM (1U)
95 
96 #define GPADC_MODE_CTM (2U)
97 
105 #define GPADC_MON_INSTR_RAM_ST_IND (224U)
106 
107 #define GPADC_MAX_MON_INSTR_RAM (32U)
108 
111 #define MAX_CTM_GPADC_PARAMS (1U)
112 
122 #define GPADC_TIMEOUT_MAX (200000U)
123 
125 #define EFUSE_TRIM_TEMPERATURE_CONST 523
126 
127 #define EFUSE_TRIM_TEMPERATURE_DIV_CONST 10
128 
129 #define ZERO_PT_TRIM_FIXED_TRIM_TEMP 110
130 
131 #define ZERO_PT_TRIM_FIXED_DIG_TEMP_SENSOR_TRIM_30C 305U
132 
133 #define ZERO 0
134 
136 #define ZERO_PT_TRIM_FIXED_SLOPE -1.05
137 
138 #define ONE_PT_TRIM_FIXED_SLOPE -1.05
139 
140 #define EFUSE1_ROW_14_FUSEROM_VER_START_BIT 20U
141 
142 #define EFUSE1_ROW_14_FUSEROM_VER_STOP_BIT 24U
143 
144 #define EFUSE1_ROW_36_TRIM_TEMPERATURE_30C_START_BIT 15U
145 
146 #define EFUSE1_ROW_36_TRIM_TEMPERATURE_30C_STOP_BIT 25U
147 
148 #define EFUSE1_ROW_33_TRIM_TEMPERATURE_125C_START_BIT 0U
149 
150 #define EFUSE1_ROW_33_TRIM_TEMPERATURE_125C_STOP_BIT 10U
151 
152 #define EFUSE1_ROW_37_DIG_DSP_TEMP_SENSOR_TRIM0_30C_START_BIT 5U
153 
154 #define EFUSE1_ROW_37_DIG_DSP_TEMP_SENSOR_TRIM0_30C_STOP_BIT 14U
155 
156 #define EFUSE1_ROW_37_DIG_HWA_TEMP_SENSOR_TRIM1_30C_START_BIT 15U
157 
158 #define EFUSE1_ROW_37_DIG_HWA_TEMP_SENSOR_TRIM1_30C_STOP_BIT 24U
159 
160 #define EFUSE1_ROW_38_DIG_HSM_TEMP_SENSOR_TRIM2_30C_START_BIT 0U
161 
162 #define EFUSE1_ROW_38_DIG_HSM_TEMP_SENSOR_TRIM2_30C_STOP_BIT 9U
163 
164 #define EFUSE1_ROW_34_DIG_DSP_TEMP_SENSOR_TRIM0_125C_START_BIT 5U
165 
166 #define EFUSE1_ROW_34_DIG_DSP_TEMP_SENSOR_TRIM0_125C_STOP_BIT 14U
167 
168 #define EFUSE1_ROW_34_DIG_HWA_TEMP_SENSOR_TRIM1_125C_START_BIT 15U
169 
170 #define EFUSE1_ROW_34_DIG_HWA_TEMP_SENSOR_TRIM1_125C_STOP_BIT 24U
171 
172 #define EFUSE1_ROW_35_DIG_HSM_TEMP_SENSOR_TRIM2_125C_START_BIT 0U
173 
174 #define EFUSE1_ROW_35_DIG_HSM_TEMP_SENSOR_TRIM2_125C_STOP_BIT 9U
175 
177 #define GPADC_REGS_PTR ((T_GPADC_REGS*)CSL_MSS_GPADC_REG_U_BASE)
178 
179 #define GPADCPKTRAM_REGS_PTR ((T_GPADCPKTRAM_REGS*)CSL_MSS_GPADC_PKT_RAM_U_BASE)
180 
181 #define GPADCOUT_RAM_PTR ((T_GPADCOUT_RAM*)CSL_MSS_GPADC_DATA_RAM_U_BASE)
182 
184 #define MSS_GPADC_RST_CTRL_ADDR (CSL_MSS_RCM_U_BASE + CSL_MSS_RCM_MSS_GPADC_RST_CTRL)
185 
186 #define MSS_GPADC_RST_CTRL_PTR ((MSS_GPADC_RST_CTRL_REG*)MSS_GPADC_RST_CTRL_ADDR)
187 
188 #define MSS_GPADC_CLK_DIV_VAL_ADDR (CSL_MSS_RCM_U_BASE + CSL_MSS_RCM_MSS_GPADC_CLK_DIV_VAL)
189 
190 #define MSS_GPADC_CLK_DIV_VAL_PTR ((MSS_GPADC_CLK_DIV_VAL_REG*)MSS_GPADC_CLK_DIV_VAL_ADDR)
191 
192 #define MSS_GPADC_CLK_GATE_ADDR (CSL_MSS_RCM_U_BASE + CSL_MSS_RCM_MSS_GPADC_CLK_GATE)
193 
194 #define MSS_GPADC_CLK_GATE_PTR ((MSS_GPADC_CLK_GATE_REG*)MSS_GPADC_CLK_GATE_ADDR)
195 
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)
197 
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)
199 
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)
201 
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)
203 
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)
205 
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)
207 
208 #define MSS_CTRL_MSS_GPADC_MEM_INIT_ADDR (CSL_MSS_CTRL_U_BASE + CSL_MSS_CTRL_MSS_GPADC_MEM_INIT)
209 
210 #define MSS_CTRL_MSS_GPADC_MEM_INIT_PTR ((MSS_CTRL_MSS_GPADC_MEM_INIT_REG*)MSS_CTRL_MSS_GPADC_MEM_INIT_ADDR)
211 
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)); \
218  } while (0)
219 
223 #define REG32_SCOMPARE(w_hwVal, w_swVal, w_regWrSts) \
224  do { \
225  (w_regWrSts) |= (((uint32_t)(w_swVal)) ^ ((uint32_t)(w_hwVal))); \
226  } while (0)
227 
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))); \
234  } while (0)
235 
236 /* ========================================================================== */
237 /* Structures and Enums */
238 /* ========================================================================== */
239 
246 typedef enum
247 {
281 
287 typedef enum
288 {
291 
295 
301 typedef enum
302 {
308 
312 typedef enum
313 {
335 
339 typedef enum
340 {
351 
355 typedef enum
356 {
373 
377 typedef enum
378 {
388 
399 typedef struct
400 {
416 
419 
425 
439  uint32_t skipSamples;
441  uint8_t collectSamples;
451 
462 typedef struct
463 {
471 
479 typedef union
480 {
482  struct
483  {
484  uint32_t b8_ParamValue : 8; /* bits 7: 0 */
485  uint32_t b8_CollectSamples : 8; /* bits 15: 8 */
486  /* Skip samples = Mantissa[3:0] * 2^(Exponent[6:4]) */
487  uint32_t b7_SkipSamples : 7; /* bits 22: 16 - */
488  uint32_t b9_Reserved : 9; /* bits 31: 23 - */
489  } bits;
491  uint32_t b32_Val;
493 
501 typedef union
502 {
504  struct
505  {
511  uint16_t b9_ChannelSelectionBitMap : 9; /* bits 8: 0 */
513  uint16_t b7_Reserved : 7; /* bits 15: 9 */
514  } bits;
516  uint16_t b16_Val;
518 
525 typedef struct
526 {
536 
543 typedef struct
544 {
554  uint16_t *ResultBufferPtr;
556 
561 typedef struct
562 {
564  uint16_t FuseROMVer;
566  uint16_t TrimTemp30C;
568  uint16_t TrimTemp125C;
570  uint16_t TrimIntercept30C[MAX_GPADC_TEMP_SENSORS];
572  uint16_t TrimIntercept125C[MAX_GPADC_TEMP_SENSORS];
574 
578 typedef struct
579 {
581  uint16_t TrimTemp30C;
583  uint16_t TrimTemp125C;
585  uint16_t TrimIntercept30C[MAX_GPADC_TEMP_SENSORS];
587  uint16_t TrimIntercept125C[MAX_GPADC_TEMP_SENSORS];
593 
597 typedef struct
598 {
610  uint32_t skipSamples;
613  uint8_t collectSamples;
615 
619 typedef struct
620 {
628 
633 typedef struct
634 {
635  uint32_t b3_Assert : 3;
636  uint32_t b29_Nu1 : 29;
638 
643 typedef struct
644 {
646  uint32_t b24_Clkdivr : 24;
647  uint32_t b8_Nu1 : 8;
649 
654 typedef struct
655 {
656  uint32_t b3_Gated : 3;
657  uint32_t b29_Nu1 : 29;
659 
664 typedef struct
665 {
666  uint32_t b30_Reserved1 : 30;
667  uint32_t b1_ClkTmuxEsdCtrl : 1;
668  uint32_t b1_AnaTestEn : 1;
670 
675 typedef struct
676 {
677  uint32_t b30_Reserved1 : 31;
678  uint32_t b1_AnaogTestTmuxEsdCtrl : 1;
680 
685 typedef struct
686 {
687  uint32_t b1_AdcEn : 1;
688  uint32_t b1_AdcStartConv : 1;
689  uint32_t b1_AdcReset : 1;
690  uint32_t b1_AdcInpBufEn : 1;
691  uint32_t b1_AdcRefBufEn : 1;
692  uint32_t b3_AdcRefSel_2_0 : 3;
693  uint32_t b1_TsDiffInpBufEn : 1;
694  uint32_t b1_TsSeInpBufEn : 1;
695  uint32_t b1_IforceExtCtrl : 1;
696  uint32_t b1_VrefExtCtrl : 1;
697  uint32_t b1_VinExtCtrl : 1;
698  uint32_t b1_AnaTmuxBufBypass : 1;
699  uint32_t b1_AnaTmuxBufEn : 1;
700  uint32_t b5_RtrimTw_4_0 : 5;
701  uint32_t b12_Reserved1 : 12;
703 
704 
709 typedef struct
710 {
711  uint32_t b2_DcbistMode : 2;
712  uint32_t b6_Nu1 : 6;
713  uint32_t b1_GpadcFsmClkEnable : 1;
714  uint32_t b3_Gpadc2adcbufPathEn : 3;
715  uint32_t b4_Nu2 : 4;
716  uint32_t b1_GpadcDebugModeEnable : 1;
717  uint32_t b15_Nu3 : 15;
718 } GPADCREG_REG0;
719 
724 typedef struct
725 {
726  uint32_t b1_GpadcTrigger : 1;
727  uint32_t b7_Nu1 : 7;
728  uint32_t b1_GpadcInit : 1;
729  uint32_t b7_Nu2 : 7;
730  uint32_t b1_GpadcFsmBypass : 1;
731  uint32_t b7_Nu3 : 7;
732  uint32_t b1_GpadcStartBypVal : 1;
733  uint32_t b7_Nu4 : 7;
734 } GPADCREG_REG1;
735 
740 typedef struct
741 {
742  uint32_t b32_ConfigValueIfm : 32;
743 } GPADCREG_REG2;
744 
749 typedef union
750 {
751  struct
752  {
753  uint32_t b8_ParamValIfm : 8;
754  uint32_t b8_CollectSamplesIfm : 8;
755  uint32_t b7_SkipSamplesIfm : 7;
756  uint32_t b9_Nu : 9;
757  } bits;
759  uint32_t b32_Reg;
761 
766 typedef union
767 {
768  struct
769  {
770  uint32_t b8_PktRamBaseAddrCp0 : 8;
771  uint32_t b8_PktRamBaseAddrCp1 : 8;
772  uint32_t b8_PktRamBaseAddrCp2 : 8;
773  uint32_t b8_PktRamBaseAddrCp3 : 8;
774  } bits;
775  uint32_t b32_Reg;
777 
782 typedef struct
783 {
784  uint32_t b8_PktRamBaseAddrCp4 : 8;
785  uint32_t b8_PktRamBaseAddrCp5 : 8;
786  uint32_t b8_PktRamBaseAddrCp6 : 8;
787  uint32_t b8_PktRamBaseAddrCp7 : 8;
788 } GPADCREG_REG5;
789 
794 typedef struct
795 {
796  uint32_t b8_PktRamBaseAddrCp8 : 8;
797  uint32_t b8_PktRamBaseAddrCp9 : 8;
798  uint32_t b8_PktRamBaseAddrCp10 : 8;
799  uint32_t b8_PktRamBaseAddrCp11 : 8;
800 } GPADCREG_REG6;
801 
806 typedef struct
807 {
808  uint32_t b8_PktRamBaseAddrCp12 : 8;
809  uint32_t b8_PktRamBaseAddrCp13 : 8;
810  uint32_t b8_PktRamBaseAddrCp14 : 8;
811  uint32_t b8_PktRamBaseAddrCp15 : 8;
812 } GPADCREG_REG7;
813 
818 typedef struct
819 {
820  uint32_t b8_GpadcClkDiv : 8;
821  uint32_t b1_GpadcClkEnable : 1;
822  uint32_t b23_Nu : 23;
823 } GPADCREG_REG8;
824 
829 typedef struct
830 {
832 } GPADCREG_REG9;
833 
838 typedef struct
839 {
842 
847 typedef struct
848 {
851 
856 typedef struct
857 {
858  uint32_t b1_DramEccEnable : 1;
859  uint32_t b7_Nu1 : 7;
860  uint32_t b1_DramEccErrClr : 1;
861  uint32_t b7_Nu2 : 7;
862  uint32_t b8_DramEccErrAddr : 8;
863  uint32_t b8_DramRepairedBit : 8;
865 
870 typedef struct
871 {
872  uint32_t b32_SpareWr2 : 32;
874 
879 typedef struct
880 {
881  uint32_t b20_SumIfm : 20;
882  uint32_t b12_Nu : 12;
884 
889 typedef struct
890 {
891  uint32_t b10_MinGpadc : 10;
892  uint32_t b6_Nu1 : 6;
893  uint32_t b10_MaxGpadc : 10;
894  uint32_t b6_Nu2 : 6;
896 
901 typedef struct
902 {
903  uint32_t b1_GpadcMemInitDoneStat : 1;
904  uint32_t b31_Nu : 31;
906 
911 typedef struct
912 {
913  uint32_t b1_GpadcIfmDoneStatus : 1;
914  uint32_t b31_Nu : 31;
916 
921 typedef struct
922 {
923  uint32_t b1_GpadcIfmDoneClr : 1;
924  uint32_t b31_Nu : 31;
926 
931 typedef struct
932 {
933  uint32_t b16_GpadcSamplesFrame : 16;
934  uint32_t b16_Nu : 16;
936 
941 typedef struct
942 {
943  uint32_t b32_SpareRd1 : 32;
945 
950 typedef struct
951 {
952  uint32_t b32_SpareRd2 : 32;
954 
959 typedef struct
960 {
961  uint32_t b32_SpareWr1 : 32;
963 
964 
968 typedef volatile struct
969 {
974  U_GPADCREG_REG4 r_PacketRamAdd[4] ;
990 } T_GPADC_REGS;
991 
995 typedef struct
996 {
997  uint32_t b1_mem0_init : 1;
998  uint32_t b31_Reserved : 31;
1000 
1005 typedef struct
1006 {
1014  uint16_t TotalTime;
1016 
1020 typedef struct
1021 {
1023  uint16_t Avg;
1025  uint16_t Min;
1027  uint16_t Max;
1029  uint32_t Sum;
1031 
1032 
1033 /* ========================================================================== */
1034 /* Internal/Private Structure Declarations */
1035 /* ========================================================================== */
1036 
1037 
1038 /* ========================================================================== */
1039 /* Global Variables Declarations */
1040 /* ========================================================================== */
1041 
1042 
1043 /* ========================================================================== */
1044 /* Function Declarations */
1045 /* ========================================================================== */
1046 
1050 void GPADC_init(void);
1051 
1055 void GPADC_deinit(void);
1056 
1063 int32_t GPADC_open(GPADC_ConfigType *CfgPtr);
1064 
1068 int32_t GPADC_close(void);
1069 
1095 
1113 
1123 int32_t GPADC_stopConversion(void);
1124 
1139 int32_t GPADC_setupResultBuffer(uint16_t * ResBufferPtr);
1140 
1152 int32_t GPADC_readResultBuffer(uint16_t *ResBufferPtr);
1153 
1166 
1176 int32_t GPADC_readTemperature(uint8_t numAverages, uint8_t numChannels, GPADC_TempSensValueType * tempValuesPtr);
1177 
1182 
1183 /* ========================================================================== */
1184 /* Static Function Definitions */
1185 /* ========================================================================== */
1186 
1187 /* None */
1188 
1189 #ifdef __cplusplus
1190 }
1191 #endif
1192 
1193 #endif /* #ifndef GPADC_H_ */
1194 
MAX_GPADC_TEMP_SENSORS
@ MAX_GPADC_TEMP_SENSORS
0x3 - MAX_TEMP_SENSORS
Definition: gpadc/v0/gpadc.h:386
GPADC_TRIG_SRC_DSS_RTIB_1
@ GPADC_TRIG_SRC_DSS_RTIB_1
0x0C - DSS_RTIB_1
Definition: gpadc/v0/gpadc.h:273
GPADC_ChannelConfigType::isBufferedMode
Bool isBufferedMode
TRUE: Buffered mode FALSE: Unbuffered/ Full Scale mode.
Definition: gpadc/v0/gpadc.h:434
GPADC_readResultBuffer
int32_t GPADC_readResultBuffer(uint16_t *ResBufferPtr)
The function is used to read the result buffer from the GPADC Driver.
GPADC_MEAS_EXT_CH4
@ GPADC_MEAS_EXT_CH4
0x3 - Channel 4
Definition: gpadc/v0/gpadc.h:321
GPADC_TRIG_SRC_RSS_CSI2A_EOL_INT
@ GPADC_TRIG_SRC_RSS_CSI2A_EOL_INT
0x04 - RSS_CSI2A_EOL_INT
Definition: gpadc/v0/gpadc.h:257
GPADC_ParamInfoType::b8_ParamValue
uint32_t b8_ParamValue
Definition: gpadc/v0/gpadc.h:484
GPADC_initTempMeasurement
void GPADC_initTempMeasurement(void)
Initialize GPADC efuse temperature parameters.
GPADC_ChannelConvModeType
GPADC_ChannelConvModeType
Enumeration which lists the conversion modes supported for AM273x GPADC conversion.
Definition: gpadc/v0/gpadc.h:288
U_MSS_TOPRCM_ANA_REG_TW_CTRL_REG_LOWV_REG::b3_AdcRefSel_2_0
uint32_t b3_AdcRefSel_2_0
Definition: gpadc/v0/gpadc.h:692
T_GPADC_REGS::r_Reg1
GPADCREG_REG1 r_Reg1
Definition: gpadc/v0/gpadc.h:971
GPADC_DriverChannelConfigType::channelConfigValue
uint32_t channelConfigValue
Channel Config value
Definition: gpadc/v0/gpadc.h:530
T_GPADC_REGS::r_Reg16
GPADCREG_REG16 r_Reg16
Definition: gpadc/v0/gpadc.h:983
GPADC_TempSensMuxType
Temperature sensors mux values.
Definition: gpadc/v0/gpadc.h:598
GPADC_TRIG_SRC_DSS_RTIA_1
@ GPADC_TRIG_SRC_DSS_RTIA_1
0x0B - DSS_RTIA_1
Definition: gpadc/v0/gpadc.h:271
GPADC_TRIG_SRC_RSS_CSI2B_SOF_INT
@ GPADC_TRIG_SRC_RSS_CSI2B_SOF_INT
0x08 - RSS_CSI2B_SOF_INT
Definition: gpadc/v0/gpadc.h:265
GPADCREG_REG0::b3_Gpadc2adcbufPathEn
uint32_t b3_Gpadc2adcbufPathEn
Definition: gpadc/v0/gpadc.h:714
GPADC_TRIG_SRC_MMR_Based_SW_Trigger
@ GPADC_TRIG_SRC_MMR_Based_SW_Trigger
0x0F - MMR_Based_SW_Trigger
Definition: gpadc/v0/gpadc.h:279
GPADCREG_REG15::b6_Nu1
uint32_t b6_Nu1
Definition: gpadc/v0/gpadc.h:892
GPADC_startGroupConversion
GPADC_ConvResultType GPADC_startGroupConversion(GPADC_channelsGroupSelectType channels, uint8_t numChannels)
Starts and triggers the multi channel ADC conversion.
GPADC_MEAS_EXT_CH8
@ GPADC_MEAS_EXT_CH8
0x7 - Channel 8
Definition: gpadc/v0/gpadc.h:329
MSS_GPADC_CLK_GATE_REG::b29_Nu1
uint32_t b29_Nu1
Definition: gpadc/v0/gpadc.h:657
MSS_CTRL_MSS_GPADC_MEM_INIT_REG::b1_mem0_init
uint32_t b1_mem0_init
Definition: gpadc/v0/gpadc.h:997
U_GPADCREG_REG4
Register4 Offset 0x010.
Definition: gpadc/v0/gpadc.h:767
T_GPADC_REGS::r_Reg8
GPADCREG_REG8 r_Reg8
Definition: gpadc/v0/gpadc.h:975
GPADC_TRIGG_SRC_SW
@ GPADC_TRIGG_SRC_SW
Conversion is triggered by a software API call.
Definition: gpadc/v0/gpadc.h:304
GPADCREG_REG14::b12_Nu
uint32_t b12_Nu
Definition: gpadc/v0/gpadc.h:882
T_GPADC_REGS::r_Reg18
GPADCREG_REG18 r_Reg18
Definition: gpadc/v0/gpadc.h:985
GPADC_TempSensMuxType::channelConfigValue
uint32_t channelConfigValue
Unique muxing config value per sensor.
Definition: gpadc/v0/gpadc.h:600
GPADCREG_REG15::b10_MinGpadc
uint32_t b10_MinGpadc
Definition: gpadc/v0/gpadc.h:891
GPADCREG_REG18::b31_Nu
uint32_t b31_Nu
Definition: gpadc/v0/gpadc.h:924
GPADCREG_REG2::b32_ConfigValueIfm
uint32_t b32_ConfigValueIfm
Definition: gpadc/v0/gpadc.h:742
GPADC_TRIG_SRC_GPIO_0
@ GPADC_TRIG_SRC_GPIO_0
0x00 - GPIO_0
Definition: gpadc/v0/gpadc.h:249
GPADC_CfgAndParamValuesType
Configuration Parameters for GPADC LUT in IFM mode 32 bits: ConfigValue 32 bits: ParamInfo.
Definition: gpadc/v0/gpadc.h:1006
GPADC_ConfigType::convMode
GPADC_ChannelConvModeType convMode
Conversion mode of the GPADC driver.
Definition: gpadc/v0/gpadc.h:465
GPADCREG_REG1::b1_GpadcFsmBypass
uint32_t b1_GpadcFsmBypass
Definition: gpadc/v0/gpadc.h:730
GPADCREG_REG11
Register11 Offset 0x02C.
Definition: gpadc/v0/gpadc.h:848
MSS_TOPRCM_ANA_REG_TW_ANA_TMUX_CTRL_LOWV_REG::b30_Reserved1
uint32_t b30_Reserved1
Definition: gpadc/v0/gpadc.h:666
GPADC_MeasExtSrcType
GPADC_MeasExtSrcType
Enumeration which describes the external sources available for GPADC conversion.
Definition: gpadc/v0/gpadc.h:313
U_MSS_TOPRCM_ANA_REG_TW_CTRL_REG_LOWV_REG::b1_AnaTmuxBufBypass
uint32_t b1_AnaTmuxBufBypass
Definition: gpadc/v0/gpadc.h:698
GPADC_CONV_ERROR
@ GPADC_CONV_ERROR
GPADC conversion error.
Definition: gpadc/v0/gpadc.h:342
U_GPADCREG_REG4::b8_PktRamBaseAddrCp1
uint32_t b8_PktRamBaseAddrCp1
Definition: gpadc/v0/gpadc.h:771
GPADC_ChannelConfigType
GPADC Config Type data structure for the mode, trigger source and channel configuration for all the a...
Definition: gpadc/v0/gpadc.h:400
GPADC_init
void GPADC_init(void)
This function initializes the GPADC module.
GPADC_TRIG_SRC_MSS_RTIB_INT1
@ GPADC_TRIG_SRC_MSS_RTIB_INT1
0x0E - MSS_RTIB_INT1
Definition: gpadc/v0/gpadc.h:277
GPADCREG_REG13
Register13 Offset 0x034.
Definition: gpadc/v0/gpadc.h:871
GPADC_ParamInfoType::b32_Val
uint32_t b32_Val
Definition: gpadc/v0/gpadc.h:491
U_GPADCREG_REG4::b8_PktRamBaseAddrCp3
uint32_t b8_PktRamBaseAddrCp3
Definition: gpadc/v0/gpadc.h:773
GPADC_ChannelConfigType::collectSamples
uint8_t collectSamples
Number of samples to be collected for conversion per each input channel.
Definition: gpadc/v0/gpadc.h:441
GPADCREG_REG1::b7_Nu1
uint32_t b7_Nu1
Definition: gpadc/v0/gpadc.h:727
U_MSS_TOPRCM_ANA_REG_TW_CTRL_REG_LOWV_REG::b1_VrefExtCtrl
uint32_t b1_VrefExtCtrl
Definition: gpadc/v0/gpadc.h:696
MSS_TOPRCM_ANA_REG_TW_ANA_TMUX_CTRL_LOWV_REG::b1_AnaTestEn
uint32_t b1_AnaTestEn
Definition: gpadc/v0/gpadc.h:668
GPADC_CfgAndParamValuesType::TotalTime
uint16_t TotalTime
Time in unit of 100ns = CollectSamples*16 + SkipSamples.
Definition: gpadc/v0/gpadc.h:1014
GPADC_TempSensMuxType::collectSamples
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
@ GPADC_TRIG_SRC_GPIO_1
0x01 - GPIO_1
Definition: gpadc/v0/gpadc.h:251
GPADC_MEAS_EXT_CH3
@ GPADC_MEAS_EXT_CH3
0x2 - Channel 3
Definition: gpadc/v0/gpadc.h:319
GPADCREG_REG1
Register1 Offset 0x004.
Definition: gpadc/v0/gpadc.h:725
GPADC_CONV_DONE
@ GPADC_CONV_DONE
GPADC conversion done.
Definition: gpadc/v0/gpadc.h:344
GPADC_TRIG_SRC_RSS_CSI2A_SOF_INT1
@ GPADC_TRIG_SRC_RSS_CSI2A_SOF_INT1
0x06 - RSS_CSI2A_SOF_INT1
Definition: gpadc/v0/gpadc.h:261
GPADCREG_REG15::b10_MaxGpadc
uint32_t b10_MaxGpadc
Definition: gpadc/v0/gpadc.h:893
U_GPADCREG_REG3::b32_Reg
uint32_t b32_Reg
bits 31: 0
Definition: gpadc/v0/gpadc.h:759
GPADC_ChannelConfigType::isConfigured
Bool isConfigured
GPADC driver considers channels configuration passed to the driver by the application only if this fl...
Definition: gpadc/v0/gpadc.h:432
T_GPADC_REGS::r_Reg10
GPADCREG_REG10 r_Reg10
Definition: gpadc/v0/gpadc.h:977
GPADC_channelsGroupSelectType::b16_Val
uint16_t b16_Val
bits 16: 0
Definition: gpadc/v0/gpadc.h:516
T_GPADC_REGS::r_Reg12
GPADCREG_REG12 r_Reg12
Definition: gpadc/v0/gpadc.h:979
U_GPADCREG_REG4::b8_PktRamBaseAddrCp0
uint32_t b8_PktRamBaseAddrCp0
Definition: gpadc/v0/gpadc.h:770
GPADC_CfgAndParamValuesType::BuffConfigValue
uint32_t BuffConfigValue
Buffer configuration value.
Definition: gpadc/v0/gpadc.h:1010
GPADC_MEAS_EXT_CH2
@ GPADC_MEAS_EXT_CH2
0x1 - Channel 2
Definition: gpadc/v0/gpadc.h:317
U_MSS_TOPRCM_ANA_REG_TW_CTRL_REG_LOWV_REG::b1_AdcReset
uint32_t b1_AdcReset
Definition: gpadc/v0/gpadc.h:689
GPADC_ParamInfoType::b8_CollectSamples
uint32_t b8_CollectSamples
Definition: gpadc/v0/gpadc.h:485
GPADC_TRIG_SRC_GPIO_2
@ GPADC_TRIG_SRC_GPIO_2
0x02 - GPIO_2
Definition: gpadc/v0/gpadc.h:253
GPADCREG_REG17
Register17 Offset 0x044.
Definition: gpadc/v0/gpadc.h:912
GPADC_TRIGG_SRC_HW
@ GPADC_TRIGG_SRC_HW
Conversion is triggered by a hardware event.
Definition: gpadc/v0/gpadc.h:306
MSS_TOPRCM_ANA_REG_REFSYS_SPARE_REG_LOWV_REG::b30_Reserved1
uint32_t b30_Reserved1
Definition: gpadc/v0/gpadc.h:677
U_MSS_TOPRCM_ANA_REG_TW_CTRL_REG_LOWV_REG::b5_RtrimTw_4_0
uint32_t b5_RtrimTw_4_0
Definition: gpadc/v0/gpadc.h:700
U_MSS_TOPRCM_ANA_REG_TW_CTRL_REG_LOWV_REG
RCM Analog register TW Control Registers.
Definition: gpadc/v0/gpadc.h:686
GPADC_ResultType::Min
uint16_t Min
Minimum of ADC samples.
Definition: gpadc/v0/gpadc.h:1025
T_GPADC_REGS::r_Reg0
GPADCREG_REG0 r_Reg0
Definition: gpadc/v0/gpadc.h:970
GPADC_MEAS_EXT_CH5
@ GPADC_MEAS_EXT_CH5
0x4 - Channel 5
Definition: gpadc/v0/gpadc.h:323
U_GPADCREG_REG3::b8_CollectSamplesIfm
uint32_t b8_CollectSamplesIfm
Definition: gpadc/v0/gpadc.h:754
GPADCREG_REG20
Register21 Offset 0x050.
Definition: gpadc/v0/gpadc.h:942
GPADC_TempSensTrimType::TrimTemp30C
uint16_t TrimTemp30C
Temperature trim value.
Definition: gpadc/v0/gpadc.h:581
GPADC_EfuseTempTrimType::FuseROMVer
uint16_t FuseROMVer
FuseROM Version.
Definition: gpadc/v0/gpadc.h:564
GPADC_ChannelConfigType::channelConfigValue
uint32_t channelConfigValue
Unique muxing config value per channel.
Definition: gpadc/v0/gpadc.h:418
GPADC_DriverObjectType::ResultBufferPtr
uint16_t * ResultBufferPtr
Pointer to store conversion results.
Definition: gpadc/v0/gpadc.h:554
GPADCREG_REG9::b32_ParamNotUsedTxEna1Off
uint32_t b32_ParamNotUsedTxEna1Off
Definition: gpadc/v0/gpadc.h:831
GPADCREG_REG5::b8_PktRamBaseAddrCp6
uint32_t b8_PktRamBaseAddrCp6
Definition: gpadc/v0/gpadc.h:786
GPADCREG_REG12
Register12 Offset 0x030.
Definition: gpadc/v0/gpadc.h:857
GPADCREG_REG7::b8_PktRamBaseAddrCp14
uint32_t b8_PktRamBaseAddrCp14
Definition: gpadc/v0/gpadc.h:810
GPADC_ResultType::Max
uint16_t Max
Maximum of ADC samples.
Definition: gpadc/v0/gpadc.h:1027
T_GPADC_REGS::r_Reg9
GPADCREG_REG9 r_Reg9
Definition: gpadc/v0/gpadc.h:976
GPADCREG_REG1::b7_Nu3
uint32_t b7_Nu3
Definition: gpadc/v0/gpadc.h:731
GPADCREG_REG14
Register14 Offset 0x038.
Definition: gpadc/v0/gpadc.h:880
GPADCREG_REG7::b8_PktRamBaseAddrCp15
uint32_t b8_PktRamBaseAddrCp15
Definition: gpadc/v0/gpadc.h:811
GPADC_EfuseTempTrimType
The Temperature sensor trim parameters structure.
Definition: gpadc/v0/gpadc.h:562
T_GPADC_REGS::r_Reg14
GPADCREG_REG14 r_Reg14
Definition: gpadc/v0/gpadc.h:981
GPADCREG_REG7::b8_PktRamBaseAddrCp12
uint32_t b8_PktRamBaseAddrCp12
Definition: gpadc/v0/gpadc.h:808
MAX_GPADC_MEAS_SOURCES
@ MAX_GPADC_MEAS_SOURCES
0x9 - MAX_CHANNELS
Definition: gpadc/v0/gpadc.h:333
GPADCREG_REG6
Register6 Offset 0x018.
Definition: gpadc/v0/gpadc.h:795
GPADC_DIG_HWA_TEMP_SENSOR
@ GPADC_DIG_HWA_TEMP_SENSOR
0x1 - DIG_HWA_TEMP_SENSOR
Definition: gpadc/v0/gpadc.h:382
T_GPADC_REGS::r_Reg22
GPADCREG_REG22 r_Reg22
Definition: gpadc/v0/gpadc.h:989
GPADCREG_REG8::b8_GpadcClkDiv
uint32_t b8_GpadcClkDiv
Definition: gpadc/v0/gpadc.h:820
GPADC_TempSensValueType::DigDspTempValue
int16_t DigDspTempValue
Digital Dsp Temperature value.
Definition: gpadc/v0/gpadc.h:622
GPADC_ResultType
GPADC returning min, avg, max and sum.
Definition: gpadc/v0/gpadc.h:1021
GPADCREG_REG0
Register Offset 0x000.
Definition: gpadc/v0/gpadc.h:710
GPADCREG_REG18::b1_GpadcIfmDoneClr
uint32_t b1_GpadcIfmDoneClr
Definition: gpadc/v0/gpadc.h:923
GPADC_EfuseTempTrimType::TrimTemp30C
uint16_t TrimTemp30C
Efuse Tim Temperature30C Value.
Definition: gpadc/v0/gpadc.h:566
GPADCREG_REG1::b1_GpadcStartBypVal
uint32_t b1_GpadcStartBypVal
Definition: gpadc/v0/gpadc.h:732
GPADC_TempSensTrimType
The Temperature sensor trim parameters structure.
Definition: gpadc/v0/gpadc.h:579
T_GPADC_REGS::r_Reg15
GPADCREG_REG15 r_Reg15
Definition: gpadc/v0/gpadc.h:982
GPADC_TRIG_SRC_HW_Sync_FE2
@ GPADC_TRIG_SRC_HW_Sync_FE2
0x0A - HW_Sync_FE2
Definition: gpadc/v0/gpadc.h:269
GPADC_getStatus
GPADC_StatusType GPADC_getStatus(void)
Gets the status of GPADC Driver HW unit.
MSS_TOPRCM_ANA_REG_REFSYS_SPARE_REG_LOWV_REG::b1_AnaogTestTmuxEsdCtrl
uint32_t b1_AnaogTestTmuxEsdCtrl
Definition: gpadc/v0/gpadc.h:678
GPADC_BUSY
@ 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
GPADCREG_REG7::b8_PktRamBaseAddrCp13
uint32_t b8_PktRamBaseAddrCp13
Definition: gpadc/v0/gpadc.h:809
GPADCREG_REG12::b7_Nu1
uint32_t b7_Nu1
Definition: gpadc/v0/gpadc.h:859
U_MSS_TOPRCM_ANA_REG_TW_CTRL_REG_LOWV_REG::b1_AdcRefBufEn
uint32_t b1_AdcRefBufEn
Definition: gpadc/v0/gpadc.h:691
GPADC_DriverChannelConfigType::isChannelConfigured
Bool isChannelConfigured
true if channel is configured
Definition: gpadc/v0/gpadc.h:534
MSS_GPADC_CLK_DIV_VAL_REG
GPADC Clock Divider Value register.
Definition: gpadc/v0/gpadc.h:644
GPADC_DriverChannelConfigType::channelParamValue
GPADC_ParamInfoType channelParamValue
Channel Param type.
Definition: gpadc/v0/gpadc.h:532
GPADCREG_REG15::b6_Nu2
uint32_t b6_Nu2
Definition: gpadc/v0/gpadc.h:894
T_GPADC_REGS::r_Reg3
U_GPADCREG_REG3 r_Reg3
Definition: gpadc/v0/gpadc.h:973
GPADC_DriverChannelConfigType
GPADC Driver Channel configuration.
Definition: gpadc/v0/gpadc.h:526
GPADCREG_REG22::b32_SpareWr1
uint32_t b32_SpareWr1
Definition: gpadc/v0/gpadc.h:961
GPADC_ChannelConfigType::skipSamples
uint32_t skipSamples
Number of samples to be skipped before collecting samples per input channel.
Definition: gpadc/v0/gpadc.h:439
GPADC_TempSensTrimType::TrimTemp125C
uint16_t TrimTemp125C
Temperature trim value.
Definition: gpadc/v0/gpadc.h:583
GPADCREG_REG9
Register9 Offset 0x024.
Definition: gpadc/v0/gpadc.h:830
GPADCREG_REG8::b1_GpadcClkEnable
uint32_t b1_GpadcClkEnable
Definition: gpadc/v0/gpadc.h:821
U_MSS_TOPRCM_ANA_REG_TW_CTRL_REG_LOWV_REG::b1_AdcInpBufEn
uint32_t b1_AdcInpBufEn
Definition: gpadc/v0/gpadc.h:690
GPADC_MEAS_EXT_CH1
@ GPADC_MEAS_EXT_CH1
0x0 - Channel 1
Definition: gpadc/v0/gpadc.h:315
GPADC_StatusType
GPADC_StatusType
Current status of the conversion of the requested GPADC HW unit.
Definition: gpadc/v0/gpadc.h:356
MSS_CTRL_MSS_GPADC_MEM_INIT_REG
GPADC Memory initialize registers.
Definition: gpadc/v0/gpadc.h:996
GPADCREG_REG18
Register19 Offset 0x048.
Definition: gpadc/v0/gpadc.h:922
GPADC_open
int32_t GPADC_open(GPADC_ConfigType *CfgPtr)
Initializes the GPADC Driver with the channels configuration.
GPADCREG_REG5::b8_PktRamBaseAddrCp7
uint32_t b8_PktRamBaseAddrCp7
Definition: gpadc/v0/gpadc.h:787
GPADC_readTemperature
int32_t GPADC_readTemperature(uint8_t numAverages, uint8_t numChannels, GPADC_TempSensValueType *tempValuesPtr)
Read the temperature sensor value.
GPADC_stopConversion
int32_t GPADC_stopConversion(void)
Stops the GPADC conversion.
GPADC_TRIG_SRC_RSS_CSI2A_SOF_INT
@ GPADC_TRIG_SRC_RSS_CSI2A_SOF_INT
0x07 - RSS_CSI2A_SOF_INT
Definition: gpadc/v0/gpadc.h:263
GPADCREG_REG13::b32_SpareWr2
uint32_t b32_SpareWr2
Definition: gpadc/v0/gpadc.h:872
HwiP.h
MSS_GPADC_RST_CTRL_REG::b3_Assert
uint32_t b3_Assert
Definition: gpadc/v0/gpadc.h:635
GPADCREG_REG1::b7_Nu4
uint32_t b7_Nu4
Definition: gpadc/v0/gpadc.h:733
MSS_TOPRCM_ANA_REG_TW_ANA_TMUX_CTRL_LOWV_REG::b1_ClkTmuxEsdCtrl
uint32_t b1_ClkTmuxEsdCtrl
Definition: gpadc/v0/gpadc.h:667
GPADC_ParamInfoType::b9_Reserved
uint32_t b9_Reserved
Definition: gpadc/v0/gpadc.h:488
GPADC_TempSensTrimType::InterceptTemp
float InterceptTemp
Intercept Temperature value.
Definition: gpadc/v0/gpadc.h:591
GPADCREG_REG5::b8_PktRamBaseAddrCp4
uint32_t b8_PktRamBaseAddrCp4
Definition: gpadc/v0/gpadc.h:784
GPADC_ConfigType::triggSrc
GPADC_TriggerSourceType triggSrc
Conversion trigger SW/HW trigger selection.
Definition: gpadc/v0/gpadc.h:467
GPADC_ChannelConfigType::channelID
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
MSS_GPADC_CLK_GATE_REG
GPADC Clock Gate register.
Definition: gpadc/v0/gpadc.h:655
GPADC_ParamInfoType::b7_SkipSamples
uint32_t b7_SkipSamples
Definition: gpadc/v0/gpadc.h:487
U_MSS_TOPRCM_ANA_REG_TW_CTRL_REG_LOWV_REG::b1_VinExtCtrl
uint32_t b1_VinExtCtrl
Definition: gpadc/v0/gpadc.h:697
GPADC_DriverObjectType::triggSrc
GPADC_TriggerSourceType triggSrc
Trigger Source Type.
Definition: gpadc/v0/gpadc.h:548
GPADC_TRIG_SRC_GPIO_3
@ GPADC_TRIG_SRC_GPIO_3
0x03 - GPIO_3
Definition: gpadc/v0/gpadc.h:255
GPADC_ConfigType
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
@ GPADC_IDLE
The conversion of the specified group has not been started. No result is available.
Definition: gpadc/v0/gpadc.h:361
U_GPADCREG_REG4::b8_PktRamBaseAddrCp2
uint32_t b8_PktRamBaseAddrCp2
Definition: gpadc/v0/gpadc.h:772
U_MSS_TOPRCM_ANA_REG_TW_CTRL_REG_LOWV_REG::b1_AdcStartConv
uint32_t b1_AdcStartConv
Definition: gpadc/v0/gpadc.h:688
GPADCREG_REG5
Register5 Offset 0x014.
Definition: gpadc/v0/gpadc.h:783
MSS_GPADC_CLK_DIV_VAL_REG::b8_Nu1
uint32_t b8_Nu1
Definition: gpadc/v0/gpadc.h:647
GPADCREG_REG19::b16_GpadcSamplesFrame
uint32_t b16_GpadcSamplesFrame
Definition: gpadc/v0/gpadc.h:933
GPADCREG_REG0::b4_Nu2
uint32_t b4_Nu2
Definition: gpadc/v0/gpadc.h:715
GPADC_ResultType::Sum
uint32_t Sum
Sum of ADC samples.
Definition: gpadc/v0/gpadc.h:1029
U_GPADCREG_REG3::b8_ParamValIfm
uint32_t b8_ParamValIfm
Definition: gpadc/v0/gpadc.h:753
T_GPADC_REGS::r_Reg17
GPADCREG_REG17 r_Reg17
Definition: gpadc/v0/gpadc.h:984
GPADCREG_REG21::b32_SpareRd2
uint32_t b32_SpareRd2
Definition: gpadc/v0/gpadc.h:952
GPADCREG_REG0::b1_GpadcDebugModeEnable
uint32_t b1_GpadcDebugModeEnable
Definition: gpadc/v0/gpadc.h:716
GPADC_TempSensMuxType::skipSamples
uint32_t skipSamples
Number of samples to be skipped before collecting samples per input channel.
Definition: gpadc/v0/gpadc.h:610
U_MSS_TOPRCM_ANA_REG_TW_CTRL_REG_LOWV_REG::b1_TsDiffInpBufEn
uint32_t b1_TsDiffInpBufEn
Definition: gpadc/v0/gpadc.h:693
GPADCREG_REG1::b1_GpadcInit
uint32_t b1_GpadcInit
Definition: gpadc/v0/gpadc.h:728
GPADCREG_REG6::b8_PktRamBaseAddrCp10
uint32_t b8_PktRamBaseAddrCp10
Definition: gpadc/v0/gpadc.h:798
GPADC_setupResultBuffer
int32_t GPADC_setupResultBuffer(uint16_t *ResBufferPtr)
Initializes GPADC driver with the group specific result buffer start address where the conversion res...
MSS_TOPRCM_ANA_REG_TW_ANA_TMUX_CTRL_LOWV_REG
Analog Mux Control Registers.
Definition: gpadc/v0/gpadc.h:665
T_GPADC_REGS
MSS_GPADC_REG_REGS.
Definition: gpadc/v0/gpadc.h:969
GPADCREG_REG0::b1_GpadcFsmClkEnable
uint32_t b1_GpadcFsmClkEnable
Definition: gpadc/v0/gpadc.h:713
GPADC_ONESHOT_CONV_MODE
@ GPADC_ONESHOT_CONV_MODE
0x00 - IFM - Inter Frame Monitoring/One Shot Conversion Mode
Definition: gpadc/v0/gpadc.h:290
GPADCREG_REG21
Register22 Offset 0x054.
Definition: gpadc/v0/gpadc.h:951
GPADC_TempSensorSrcType
GPADC_TempSensorSrcType
Enumeration which describes the temperature sensors available for GPADC measurement.
Definition: gpadc/v0/gpadc.h:378
GPADCREG_REG1::b7_Nu2
uint32_t b7_Nu2
Definition: gpadc/v0/gpadc.h:729
GPADC_deinit
void GPADC_deinit(void)
This function de-initializes the GPADC module.
GPADCREG_REG8
Register8 Offset 0x020.
Definition: gpadc/v0/gpadc.h:819
T_GPADC_REGS::r_Reg20
GPADCREG_REG20 r_Reg20
Definition: gpadc/v0/gpadc.h:987
GPADCREG_REG6::b8_PktRamBaseAddrCp9
uint32_t b8_PktRamBaseAddrCp9
Definition: gpadc/v0/gpadc.h:797
U_MSS_TOPRCM_ANA_REG_TW_CTRL_REG_LOWV_REG::b12_Reserved1
uint32_t b12_Reserved1
Definition: gpadc/v0/gpadc.h:701
GPADCREG_REG12::b8_DramRepairedBit
uint32_t b8_DramRepairedBit
Definition: gpadc/v0/gpadc.h:863
GPADC_TempSensValueType::DigHwaTempValue
int16_t DigHwaTempValue
Digital Hwa Temperature value.
Definition: gpadc/v0/gpadc.h:624
GPADCREG_REG8::b23_Nu
uint32_t b23_Nu
Definition: gpadc/v0/gpadc.h:822
GPADCREG_REG15
Register15 Offset 0x03C.
Definition: gpadc/v0/gpadc.h:890
MSS_GPADC_RST_CTRL_REG
GPADC Reset Control register.
Definition: gpadc/v0/gpadc.h:634
GPADCREG_REG16::b1_GpadcMemInitDoneStat
uint32_t b1_GpadcMemInitDoneStat
Definition: gpadc/v0/gpadc.h:903
GPADC_channelsGroupSelectType::b7_Reserved
uint16_t b7_Reserved
Reserved.
Definition: gpadc/v0/gpadc.h:513
T_GPADC_REGS::r_Reg19
GPADCREG_REG19 r_Reg19
Definition: gpadc/v0/gpadc.h:986
GPADC_TriggerSourceType
GPADC_TriggerSourceType
Enumeration which describes the trigger sources for GPADC CTM mode conversion.
Definition: gpadc/v0/gpadc.h:302
GPADC_DIG_HSM_TEMP_SENSOR
@ GPADC_DIG_HSM_TEMP_SENSOR
0x2 - DIG_HSM_TEMP_SENSOR
Definition: gpadc/v0/gpadc.h:384
GPADCREG_REG12::b1_DramEccEnable
uint32_t b1_DramEccEnable
Definition: gpadc/v0/gpadc.h:858
GPADC_DriverObjectType::driverStatus
GPADC_StatusType driverStatus
Driver Status.
Definition: gpadc/v0/gpadc.h:550
GPADC_ConvResultType
GPADC_ConvResultType
Enumeration which describes the error types of GPADC conversion.
Definition: gpadc/v0/gpadc.h:340
GPADC_close
int32_t GPADC_close(void)
This function closes the GPADC module.
GPADC_startSingleChannelConversion
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
GPADC_CtmTrigSrcType
Enumeration which describes the trigger sources for GPADC CTM mode conversion.
Definition: gpadc/v0/gpadc.h:247
MSS_GPADC_CLK_DIV_VAL_REG::b24_Clkdivr
uint32_t b24_Clkdivr
MSS_GPADC_CLK_DIV_VAL_REG bits structure.
Definition: gpadc/v0/gpadc.h:646
GPADC_channelsGroupSelectType
Available <0-8> external sources/channels could be selected by using bitmap of 9 bits in LSB....
Definition: gpadc/v0/gpadc.h:502
GPADCREG_REG10
Register10 Offset 0x028.
Definition: gpadc/v0/gpadc.h:839
T_GPADC_REGS::r_Reg21
GPADCREG_REG21 r_Reg21
Definition: gpadc/v0/gpadc.h:988
GPADC_ChannelConfigType::channelParamValue
uint8_t channelParamValue
Channel parameters including channel paramVal(subsystem-type), collect samples and skip *samples.
Definition: gpadc/v0/gpadc.h:424
GPADCREG_REG11::b32_ParamNotUsedTxEna3Off
uint32_t b32_ParamNotUsedTxEna3Off
Definition: gpadc/v0/gpadc.h:849
MSS_GPADC_RST_CTRL_REG::b29_Nu1
uint32_t b29_Nu1
Definition: gpadc/v0/gpadc.h:636
GPADCREG_REG16::b31_Nu
uint32_t b31_Nu
Definition: gpadc/v0/gpadc.h:904
GPADCREG_REG12::b8_DramEccErrAddr
uint32_t b8_DramEccErrAddr
Definition: gpadc/v0/gpadc.h:862
T_GPADC_REGS::r_Reg11
GPADCREG_REG11 r_Reg11
Definition: gpadc/v0/gpadc.h:978
MSS_CTRL_MSS_GPADC_MEM_INIT_REG::b31_Reserved
uint32_t b31_Reserved
Definition: gpadc/v0/gpadc.h:998
GPADC_DIG_DSP_TEMP_SENSOR
@ GPADC_DIG_DSP_TEMP_SENSOR
0x0 - DIG_DSP_TEMP_SENSOR
Definition: gpadc/v0/gpadc.h:380
GPADCREG_REG17::b1_GpadcIfmDoneStatus
uint32_t b1_GpadcIfmDoneStatus
Definition: gpadc/v0/gpadc.h:913
GPADCREG_REG12::b7_Nu2
uint32_t b7_Nu2
Definition: gpadc/v0/gpadc.h:861
GPADC_TempSensValueType
The Temperature sensor values structure.
Definition: gpadc/v0/gpadc.h:620
GPADCREG_REG17::b31_Nu
uint32_t b31_Nu
Definition: gpadc/v0/gpadc.h:914
GPADC_DriverObjectType::convMode
GPADC_ChannelConvModeType convMode
Operation mode of the group.
Definition: gpadc/v0/gpadc.h:546
GPADC_CONTINUOUS_CONV_MODE
@ GPADC_CONTINUOUS_CONV_MODE
0x01 - CTM - Continuous Time Monitoring/ Continuous conversion Mode
Definition: gpadc/v0/gpadc.h:293
GPADCREG_REG20::b32_SpareRd1
uint32_t b32_SpareRd1
Definition: gpadc/v0/gpadc.h:943
GPADCREG_REG14::b20_SumIfm
uint32_t b20_SumIfm
Definition: gpadc/v0/gpadc.h:881
GPADCREG_REG10::b32_ParamNotUsedTxEna2Off
uint32_t b32_ParamNotUsedTxEna2Off
Definition: gpadc/v0/gpadc.h:840
GPADC_ParamInfoType
Configuration Parameters for GPADC in IFM mode ParamValue : Value to be programmed in one hot reg Col...
Definition: gpadc/v0/gpadc.h:480
MSS_GPADC_CLK_GATE_REG::b3_Gated
uint32_t b3_Gated
Definition: gpadc/v0/gpadc.h:656
GPADCREG_REG12::b1_DramEccErrClr
uint32_t b1_DramEccErrClr
Definition: gpadc/v0/gpadc.h:860
GPADCREG_REG19
Register20 Offset 0x04C.
Definition: gpadc/v0/gpadc.h:932
MSS_TOPRCM_ANA_REG_REFSYS_SPARE_REG_LOWV_REG
Analog Refsys spare Registers.
Definition: gpadc/v0/gpadc.h:676
GPADC_CfgAndParamValuesType::ParamInfo
GPADC_ParamInfoType ParamInfo
ParamInfo.
Definition: gpadc/v0/gpadc.h:1012
GPADC_MEAS_EXT_CH9
@ GPADC_MEAS_EXT_CH9
0x8 - Channel 9
Definition: gpadc/v0/gpadc.h:331
GPADC_EfuseTempTrimType::TrimTemp125C
uint16_t TrimTemp125C
Efuse Tim Temperature125C Value.
Definition: gpadc/v0/gpadc.h:568
GPADC_MEAS_EXT_CH7
@ GPADC_MEAS_EXT_CH7
0x6 - Channel 7
Definition: gpadc/v0/gpadc.h:327
U_GPADCREG_REG3
Register3 Offset 0x00C.
Definition: gpadc/v0/gpadc.h:750
GPADCREG_REG0::b6_Nu1
uint32_t b6_Nu1
Definition: gpadc/v0/gpadc.h:712
U_MSS_TOPRCM_ANA_REG_TW_CTRL_REG_LOWV_REG::b1_IforceExtCtrl
uint32_t b1_IforceExtCtrl
Definition: gpadc/v0/gpadc.h:695
GPADC_TempSensMuxType::channelParamValue
uint8_t channelParamValue
Channel parameters including channel paramVal(subsystem-type), collect samples and skip samples.
Definition: gpadc/v0/gpadc.h:605
GPADCREG_REG6::b8_PktRamBaseAddrCp11
uint32_t b8_PktRamBaseAddrCp11
Definition: gpadc/v0/gpadc.h:799
GPADCREG_REG6::b8_PktRamBaseAddrCp8
uint32_t b8_PktRamBaseAddrCp8
Definition: gpadc/v0/gpadc.h:796
GPADC_ChannelConfigType::useLuTable
Bool useLuTable
TRUE: Use predefined lookup table to load number of skipSamples and collectSamples configuration for ...
Definition: gpadc/v0/gpadc.h:449
GPADC_TempSensValueType::DigHsmTempValue
int16_t DigHsmTempValue
Digital Hsm Temperature value.
Definition: gpadc/v0/gpadc.h:626
GPADC_TRIG_SRC_MSS_RTIA_INT1
@ GPADC_TRIG_SRC_MSS_RTIA_INT1
0x0D - MSS_RTIA_INT1
Definition: gpadc/v0/gpadc.h:275
GPADC_CfgAndParamValuesType::UnbuffConfigValue
uint32_t UnbuffConfigValue
Unbuff configuration value.
Definition: gpadc/v0/gpadc.h:1008
GPADCREG_REG22
Register22 Offset 0x058.
Definition: gpadc/v0/gpadc.h:960
GPADCREG_REG0::b2_DcbistMode
uint32_t b2_DcbistMode
Definition: gpadc/v0/gpadc.h:711
GPADC_CONV_CHANNEL_CONFIG_MISSING
@ 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
@ GPADC_TRIG_SRC_RSS_CSI2A_SOF_INT0
0x05 - RSS_CSI2A_SOF_INT0
Definition: gpadc/v0/gpadc.h:259
GPADCREG_REG7
Register7 Offset 0x01C.
Definition: gpadc/v0/gpadc.h:807
U_GPADCREG_REG3::b7_SkipSamplesIfm
uint32_t b7_SkipSamplesIfm
Definition: gpadc/v0/gpadc.h:755
GPADC_channelsGroupSelectType::b9_ChannelSelectionBitMap
uint16_t b9_ChannelSelectionBitMap
Channel selection bitmap for triggering group GPADC conversion and getting results for the specified ...
Definition: gpadc/v0/gpadc.h:511
U_GPADCREG_REG3::b9_Nu
uint32_t b9_Nu
Definition: gpadc/v0/gpadc.h:756
U_MSS_TOPRCM_ANA_REG_TW_CTRL_REG_LOWV_REG::b1_AdcEn
uint32_t b1_AdcEn
Definition: gpadc/v0/gpadc.h:687
GPADC_ResultType::Avg
uint16_t Avg
Average of ADC samples.
Definition: gpadc/v0/gpadc.h:1023
GPADCREG_REG16
Register16 Offset 0x040.
Definition: gpadc/v0/gpadc.h:902
U_GPADCREG_REG4::b32_Reg
uint32_t b32_Reg
Definition: gpadc/v0/gpadc.h:775
T_GPADC_REGS::r_Reg13
GPADCREG_REG13 r_Reg13
Definition: gpadc/v0/gpadc.h:980
GPADC_DriverChannelConfigType::isChannelBufferedMode
Bool isChannelBufferedMode
true if Channel is Buffer mode
Definition: gpadc/v0/gpadc.h:528
U_MSS_TOPRCM_ANA_REG_TW_CTRL_REG_LOWV_REG::b1_AnaTmuxBufEn
uint32_t b1_AnaTmuxBufEn
Definition: gpadc/v0/gpadc.h:699
GPADCREG_REG1::b1_GpadcTrigger
uint32_t b1_GpadcTrigger
Definition: gpadc/v0/gpadc.h:726
U_MSS_TOPRCM_ANA_REG_TW_CTRL_REG_LOWV_REG::b1_TsSeInpBufEn
uint32_t b1_TsSeInpBufEn
Definition: gpadc/v0/gpadc.h:694
GPADCREG_REG5::b8_PktRamBaseAddrCp5
uint32_t b8_PktRamBaseAddrCp5
Definition: gpadc/v0/gpadc.h:785
GPADC_MEAS_EXT_CH6
@ GPADC_MEAS_EXT_CH6
0x5 - Channel 6
Definition: gpadc/v0/gpadc.h:325
GPADC_COMPLETED
@ 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
T_GPADC_REGS::r_Reg2
GPADCREG_REG2 r_Reg2
Definition: gpadc/v0/gpadc.h:972
GPADCREG_REG0::b15_Nu3
uint32_t b15_Nu3
Definition: gpadc/v0/gpadc.h:717
GPADC_DriverObjectType
GPADC Driver Object configuration.
Definition: gpadc/v0/gpadc.h:544
GPADCREG_REG2
Register2 Offset 0x008.
Definition: gpadc/v0/gpadc.h:741
GPADCREG_REG19::b16_Nu
uint32_t b16_Nu
Definition: gpadc/v0/gpadc.h:934
GPADC_TRIG_SRC_HW_Sync_FE1
@ GPADC_TRIG_SRC_HW_Sync_FE1
0x09 - HW_Sync_FE1
Definition: gpadc/v0/gpadc.h:267