MCUSW
Adc.h
Go to the documentation of this file.
1 /*
2 *
3 * Copyright (c) 2024 Texas Instruments Incorporated
4 *
5 * All rights reserved not granted herein.
6 *
7 * Limited License.
8 *
9 * Texas Instruments Incorporated grants a world-wide, royalty-free, non-exclusive
10 * license under copyrights and patents it now or hereafter owns or controls to make,
11 * have made, use, import, offer to sell and sell ("Utilize") this software subject to the
12 * terms herein. With respect to the foregoing patent license, such license is granted
13 * solely to the extent that any such patent is necessary to Utilize the software alone.
14 * The patent license shall not apply to any combinations which include this software,
15 * other than combinations with devices manufactured by or for TI ("TI Devices").
16 * No hardware patent is licensed hereunder.
17 *
18 * Redistributions must preserve existing copyright notices and reproduce this license
19 * (including the above copyright notice and the disclaimer and (if applicable) source
20 * code license limitations below) in the documentation and/or other materials provided
21 * with the distribution
22 *
23 * Redistribution and use in binary form, without modification, are permitted provided
24 * that the following conditions are met:
25 *
26 * * No reverse engineering, decompilation, or disassembly of this software is
27 * permitted with respect to any software provided in binary form.
28 *
29 * * any redistribution and use are licensed by TI for use only with TI Devices.
30 *
31 * * Nothing shall obligate TI to provide you with source code for the software
32 * licensed and provided to you in object code.
33 *
34 * If software source code is provided to you, modification and redistribution of the
35 * source code are permitted provided that the following conditions are met:
36 *
37 * * any redistribution and use of the source code, including any resulting derivative
38 * works, are licensed by TI for use only with TI Devices.
39 *
40 * * any redistribution and use of any object code compiled from the source code
41 * and any resulting derivative works, are licensed by TI for use only with TI Devices.
42 *
43 * Neither the name of Texas Instruments Incorporated nor the names of its suppliers
44 *
45 * may be used to endorse or promote products derived from this software without
46 * specific prior written permission.
47 *
48 * DISCLAIMER.
49 *
50 * THIS SOFTWARE IS PROVIDED BY TI AND TI'S LICENSORS "AS IS" AND ANY EXPRESS
51 * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
52 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
53 * IN NO EVENT SHALL TI AND TI'S LICENSORS BE LIABLE FOR ANY DIRECT, INDIRECT,
54 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
55 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
56 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
57 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
58 * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
59 * OF THE POSSIBILITY OF SUCH DAMAGE.
60 *
61 */
62 
94 /*
95  * Below are the global design requirements which are met by this ADC
96  * driver which can't be mapped to a particular source ID
97  */
98 /*
99  * Design: MCAL-5723,MCAL-5861
100  */
101 
102 /*
103  * Below are the ADC's module environment design requirements which can't
104  * be mapped to this driver
105  */
106 /*
107  * Design: MCAL-5805,MCAL-5708,MCAL-5739,MCAL-5748
108  */
109 
110  /*
111  * Note: MCAL-5700,MCAL-5834 are prerequisites which are done by SBL/GEL files.
112  */
113 
114 
115 #ifndef ADC_H_
116 #define ADC_H_
117 
118 /* ========================================================================== */
119 /* Include Files */
120 /* ========================================================================== */
121 #include "Std_Types.h"
122 #include "Adc_Cfg.h"
123 
124 #ifdef __cplusplus
125 extern "C"
126 {
127 #endif
128 
129 /* ========================================================================== */
130 /* Macros & Typedefs */
131 /* ========================================================================== */
132 
140 #define ADC_SW_MAJOR_VERSION (9U)
141 
142 #define ADC_SW_MINOR_VERSION (2U)
143 
144 #define ADC_SW_PATCH_VERSION (2U)
145 
146 /* @} */
147 
155 #define ADC_AR_RELEASE_MAJOR_VERSION (4U)
156 
157 #define ADC_AR_RELEASE_MINOR_VERSION (3U)
158 
159 #define ADC_AR_RELEASE_REVISION_VERSION (1U)
160 /* @} */
161 
167 #define ADC_VENDOR_ID ((uint16) 44U)
168 
169 #define ADC_MODULE_ID ((uint16) 123U)
170 
171 #define ADC_INSTANCE_ID ((uint8) 0U)
172 /* @} */
177 #define ADC_DEF_CHANNEL_RESOLUTION ((Adc_ResolutionType) 12U)
178 
189 #define ADC_NUM_CHANNEL (10U)
190 
191 #define ADC_MIN_CHANNEL_ID (0U)
192 
193 #define ADC_MAX_CHANNEL_ID (ADC_NUM_CHANNEL - 1U)
194 
200 #define ADC_NUM_HW_CHANNEL (10U)
201 
202 #define ADC_MIN_HW_CHANNEL_ID (0U)
203 
204 #define ADC_MAX_HW_CHANNEL_ID (ADC_NUM_HW_CHANNEL - 1U)
205 /* \brief Adc Internal Callibration ON/OFF*/
206 #define ADC_INTERNAL_CALIBRATION (0U)
207 
209 #define ADC_MIN_OPEN_DELAY (0x00U)
210 
211 #define ADC_MAX_OPEN_DELAY (0x3FFFFU)
212 
213 #define ADC_MIN_SAMPLE_DELAY (0x00U)
214 
215 #define ADC_MAX_SAMPLE_DELAY (0xFFU)
216 
217 #define ADC_MIN_RANGE (0x00U)
218 
219 #define ADC_MAX_RANGE (0xFFFU)
220 
221 /*
222  *Design: MCAL-5687
223  */
230 #ifndef ADC_E_UNINIT
231 
232 #define ADC_E_UNINIT ((uint8) 0x0AU)
233 #endif
234 #ifndef ADC_E_BUSY
235 
236 #define ADC_E_BUSY ((uint8) 0x0BU)
237 #endif
238 #ifndef ADC_E_IDLE
239 
240 #define ADC_E_IDLE ((uint8) 0x0CU)
241 #endif
242 #ifndef ADC_E_ALREADY_INITIALIZED
243 
247 #define ADC_E_ALREADY_INITIALIZED ((uint8) 0x0DU)
248 #endif
249 #ifndef ADC_E_PARAM_CONFIG
250 
251 #define ADC_E_PARAM_CONFIG ((uint8) 0x0EU)
252 #endif
253 #ifndef ADC_E_PARAM_POINTER
254 
255 #define ADC_E_PARAM_POINTER ((uint8) 0x14U)
256 #endif
257 #ifndef ADC_E_PARAM_GROUP
258 
259 #define ADC_E_PARAM_GROUP ((uint8) 0x15U)
260 #endif
261 #ifndef ADC_E_WRONG_CONV_MODE
262 
266 #define ADC_E_WRONG_CONV_MODE ((uint8) 0x16U)
267 #endif
268 #ifndef ADC_E_WRONG_TRIGG_SRC
269 
270 #define ADC_E_WRONG_TRIGG_SRC ((uint8) 0x17U)
271 #endif
272 #ifndef ADC_E_NOTIF_CAPABILITY
273 
277 #define ADC_E_NOTIF_CAPABILITY ((uint8) 0x18U)
278 #endif
279 #ifndef ADC_E_BUFFER_UNINIT
280 
281 #define ADC_E_BUFFER_UNINIT ((uint8) 0x19U)
282 #endif
283 #ifndef ADC_E_NOT_DISENGAGED
284 
285 #define ADC_E_NOT_DISENGAGED ((uint8) 0x1AU)
286 #endif
287 #ifndef ADC_E_POWER_STATE_NOT_SUPPORTED
288 
289 #define ADC_E_POWER_STATE_NOT_SUPPORTED ((uint8) 0x1BU)
290 #endif
291 #ifndef ADC_E_TRANSITION_NOT_POSSIBLE
292 
293 #define ADC_E_TRANSITION_NOT_POSSIBLE ((uint8) 0x1CU)
294 #endif
295 #ifndef ADC_E_PERIPHERAL_NOT_PREPARED
296 
297 #define ADC_E_PERIPHERAL_NOT_PREPARED ((uint8) 0x1DU)
298 #endif
299 /* @} */
300 
302 /*
303  *Design: MCAL-5852
304  */
305 typedef uint8 Adc_ChannelType;
306 
308 /*
309  * Design: MCAL-5702
310  */
311 typedef uint8 Adc_GroupType;
312 
320 /*
321  * Design: MCAL-5881,MCAL-5856
322  */
323 typedef uint32 Adc_ValueGroupType;
324 
326 /*
327  * Design: MCAL-5709
328  */
329 typedef uint32 Adc_PrescaleType;
330 
335 /*
336  * Design: MCAL-5822
337  */
338 typedef uint16 Adc_ConversionTimeType;
339 
344 /*
345  * Design: MCAL-5855
346  */
347 typedef uint16 Adc_SamplingTimeType;
348 
350 /*
351  * Design: MCAL-5800
352  */
353 typedef uint8 Adc_ResolutionType;
354 
356 /*
357  * Design: MCAL-5712
358  */
359 typedef uint8 Adc_GroupPriorityType;
360 
362 /*
363  * Design: MCAL-5817
364  */
365 typedef uint32 Adc_GroupDefType;
366 
371 /*
372  * Design: MCAL-5826
373  */
374 typedef uint16 Adc_StreamNumSampleType;
375 
377 /*
378  * Design: MCAL-5858
379  */
381 
386 typedef uint8 Adc_HWUnitType;
387 
388 #if (STD_ON == ADC_INTERNAL_DIAGNOSTIC_DEBUG_MODE_API)
389 
393 typedef uint8 Adc_RefSelType;
394 #endif
395 
404 #define ADC_SID_INIT ((uint8) 0x00U)
405 
406 #define ADC_SID_DEINIT ((uint8) 0x01U)
407 
408 #define ADC_SID_START_GROUP_CONVERSION ((uint8) 0x02U)
409 
410 #define ADC_SID_STOP_GROUP_CONVERSION ((uint8) 0x03U)
411 
412 #define ADC_SID_READ_GROUP ((uint8) 0x04U)
413 
414 #define ADC_SID_ENABLE_HARDWARE_TRIGGER ((uint8) 0x05U)
415 
416 #define ADC_SID_DISABLE_HARDWARE_TRIGGER ((uint8) 0x06U)
417 
418 #define ADC_SID_ENABLE_GROUP_NOTIFICATION ((uint8) 0x07U)
419 
420 #define ADC_SID_DISABLE_GROUP_NOTIFICATION ((uint8) 0x08U)
421 
422 #define ADC_SID_GET_GROUP_STATUS ((uint8) 0x09U)
423 
424 #define ADC_SID_GET_VERSION_INFO ((uint8) 0x0AU)
425 
426 #define ADC_SID_GET_STREAM_LAST_POINTER ((uint8) 0x0BU)
427 
428 #define ADC_SID_SETUP_RESULT_BUFFER ((uint8) 0x0CU)
429 
430 #define ADC_SID_SET_POWER_STATE ((uint8) 0x10U)
431 
432 #define ADC_SID_GET_CURRENT_POWER_STATE ((uint8) 0x11U)
433 
434 #define ADC_SID_GET_TARGET_POWER_STATE ((uint8) 0x12U)
435 
436 #define ADC_SID_PREPARE_POWER_STATE ((uint8) 0x13U)
437 
438 #define ADC_SID_MAIN_POWER_TRANSITION_MANAGER ((uint8) 0x14U)
439 
440 #define ADC_SID_IOHWAB_NOTIFICATION ((uint8) 0x20U)
441 
442 #define ADC_SID_IOHWAB_NOTIFY_READY_FOR_POWER_STATE ((uint8) 0x70U)
443 /* @} */
444 
445 /* ========================================================================== */
446 /* Structures and Enums */
447 /* ========================================================================== */
448 
455 typedef P2FUNC(void, ADC_APPL_CODE, Adc_GroupEndNotifyType)(void);
456 
460 /*
461  * Design: MCAL-5811
462  */
463 typedef enum
464 {
479 
483 /*
484  * Design: MCAL-5836
485  */
486 typedef enum
487 {
494 
498 /*
499  * Design: MCAL-5735
500  */
501 typedef enum
502 {
510 
514 /*
515  * Design: MCAL-5742
516  */
517 typedef enum
518 {
527 
531 /*
532  * Design: MCAL-5769
533  */
534 typedef enum
535 {
541 
548 /*
549  * Design: MCAL-5871
550  */
551 typedef enum
552 {
560 
564 /*
565  * Design: MCAL-5807
566  */
567 typedef enum
568 {
576 
581 /*
582  * Design: MCAL-5732
583  */
584 typedef enum
585 {
596 
604 /*
605  * Design: MCAL-5703
606  */
607 typedef enum
608 {
624 
629 /*
630  * Design: MCAL-5843
631  */
632 typedef enum
633 {
640 
644 /*
645  * Design: MCAL-5829
646  */
647 typedef enum
648 {
654 
658 /*
659  * Design: MCAL-5705
660  */
661 typedef enum
662 {
678 
683 typedef enum
684 {
696 
703 typedef struct
704 {
705  uint32 hwChannelId;
719  uint32 openDelay;
723  uint32 sampleDelay;
738 
742 /*
743  *Design: MCAL-5865,MCAL-5764,MCAL-5756,MCAL-5889,MCAL-5801,MCAL-5883,MCAL-5845,MCAL-5814,MCAL-5757,MCAL-5768
744  */
745 typedef struct
746 {
783  uint32 highRange;
793  uint32 lowRange;
804  uint32 numChannels;
810 
814 typedef struct
815 {
818  uint32 baseAddr;
820 
824 /*
825  * Design: MCAL-5716,MCAL-5760,MCAL-5690
826  */
827 typedef struct Adc_ConfigType_s
828 {
829  uint8 maxGroup;
832  uint8 maxHwUnit;
840 
841 #if (STD_ON == ADC_REGISTER_READBACK_API)
842 
846 typedef struct
847 {
848  /*
849  * ADC related registers
850  */
851  uint32 adcRev;
853  uint32 adcCtrl;
855  uint32 adcMisc;
859 #endif /* #if (STD_ON == ADC_REGISTER_READBACK_API) */
860 
861 /* @} */
862 
863 /* ========================================================================== */
864 /* Function Declarations */
865 /* ========================================================================== */
866 
885 FUNC(void, ADC_CODE) Adc_Init(
886  P2CONST(Adc_ConfigType, AUTOMATIC, ADC_PBCFG) CfgPtr);
887 
888 #if (STD_ON == ADC_DEINIT_API)
889 
908 FUNC(void, ADC_CODE) Adc_DeInit(void);
909 #endif /* #if (STD_ON == ADC_DEINIT_API) */
910 
941 FUNC(Std_ReturnType, ADC_CODE) Adc_SetupResultBuffer(
942  Adc_GroupType Group,
943  const Adc_ValueGroupType *DataBufferPtr);
944 
964 FUNC(Adc_StatusType, ADC_CODE) Adc_GetGroupStatus(Adc_GroupType Group);
965 
996  Adc_GroupType Group,
997  Adc_ValueGroupType **PtrToSamplePtr);
998 
999 #if (STD_ON == ADC_ENABLE_START_STOP_GROUP_API)
1000 
1019 FUNC(void, ADC_CODE) Adc_StartGroupConversion(Adc_GroupType Group);
1020 
1039 FUNC(void, ADC_CODE) Adc_StopGroupConversion(Adc_GroupType Group);
1040 #endif /* #if (STD_ON == ADC_ENABLE_START_STOP_GROUP_API) */
1041 
1042 #if (STD_ON == ADC_READ_GROUP_API)
1043 
1075 FUNC(Std_ReturnType, ADC_CODE) Adc_ReadGroup(
1076  Adc_GroupType Group,
1077  Adc_ValueGroupType *DataBufferPtr);
1078 #endif /* #if (STD_ON == ADC_READ_GROUP_API) */
1079 
1080 #if (STD_ON == ADC_GRP_NOTIF_CAPABILITY_API)
1081 
1100 FUNC(void, ADC_CODE) Adc_EnableGroupNotification(Adc_GroupType Group);
1101 
1121 FUNC(void, ADC_CODE) Adc_DisableGroupNotification(Adc_GroupType Group);
1122 #endif /* #if (STD_ON == ADC_GRP_NOTIF_CAPABILITY_API) */
1123 
1124 #if (STD_ON == ADC_VERSION_INFO_API)
1125 
1143 FUNC(void, ADC_CODE) Adc_GetVersionInfo(
1144  P2VAR(Std_VersionInfoType, AUTOMATIC, ADC_APPL_DATA) versioninfo);
1145 #endif /* #if (STD_ON == ADC_VERSION_INFO_API) */
1146 
1147 #if (STD_ON == ADC_REGISTER_READBACK_API)
1148 
1177 FUNC(Std_ReturnType, ADC_CODE) Adc_RegisterReadback(
1178  Adc_HWUnitType HWUnit,
1179  P2VAR(Adc_RegisterReadbackType, AUTOMATIC, ADC_APPL_DATA) RegRbPtr);
1180 #endif /* #if (STD_ON == ADC_REGISTER_READBACK_API) */
1181 
1182 #if (STD_ON == ADC_INTERNAL_DIAGNOSTIC_DEBUG_MODE_API)
1183 
1206 FUNC(Std_ReturnType, ADC_CODE) Adc_EnableInternalDiagnostic(
1207  Adc_GroupType Group, Adc_RefSelType RefSelect);
1208 
1227 FUNC(Std_ReturnType, ADC_CODE) Adc_DisableInternalDiagnostic(
1228  Adc_GroupType Group);
1229 #endif /* #if (STD_ON == ADC_INTERNAL_DIAGNOSTIC_DEBUG_MODE_API) */
1230 
1231 #ifdef __cplusplus
1232 }
1233 #endif
1234 
1235 #endif /* #ifndef ADC_H_ */
1236 
1237 /* @} */
Definition: Adc.h:665
Definition: Adc.h:613
void Adc_StartGroupConversion(Adc_GroupType Group)
Starts the conversion of all channels of the requested ADC Channel group.
Definition: Adc.h:465
#define ADC_NUM_CHANNEL
Number of MCAL channels - in terms of ADC HW, this represents the number of hardware steps....
Definition: Adc.h:189
Adc_StreamBufferModeType
Type for configuring the streaming access mode buffer type.
Definition: Adc.h:517
Definition: Adc.h:651
#define ADC_MAX_GROUP
Maximum group across all hwunit.
Definition: Adc_Cfg.h:184
Adc_HWUnitType hwUnitId
Definition: Adc.h:816
uint32 adcCtrl
Definition: Adc.h:853
Std_ReturnType Adc_EnableInternalDiagnostic(Adc_GroupType Group, Adc_RefSelType RefSelect)
This function enables the Functional Internal Diagnostic Debug mode and selects a known voltage sourc...
Definition: Adc.h:571
Structure containing parameters for ADC MCAL channel configuration. In term of ADC hardware,...
Definition: Adc.h:703
Definition: Adc.h:519
Definition: Adc.h:557
ADC config structure.
Definition: Adc.h:827
void Adc_Init(const Adc_ConfigType *CfgPtr)
Service for ADC initialization.
Adc_AveragingMode
Enum to number of samplings to average. ADC allows user to program the number of samplings to average...
Definition: Adc.h:683
Adc_StreamBufferModeType streamBufMode
Definition: Adc.h:770
uint32 highRange
Definition: Adc.h:783
uint32 baseAddr
Definition: Adc.h:818
Adc_GroupReplacementType
Replacement mechanism, which is used on ADC group level, if a group conversion is interrupted by a gr...
Definition: Adc.h:584
This file contains generated pre compile configuration file for ADC MCAL driver.
uint8 Adc_ChannelType
Numeric ID of an ADC channel.
Definition: Adc.h:305
ADC Hardware unit configuration structure.
Definition: Adc.h:814
Adc_ResolutionType resolution
Definition: Adc.h:759
Std_ReturnType Adc_ReadGroup(Adc_GroupType Group, Adc_ValueGroupType *DataBufferPtr)
Reads the group conversion result of the last completed conversion round of the requested group and s...
Adc_StatusType
Current status of the conversion of the requested ADC Channel group.
Definition: Adc.h:463
Adc_GroupAccessModeType
Type for configuring the access mode to group conversion results.
Definition: Adc.h:534
Adc_GroupEndNotifyType Adc_GroupEndNotification
Definition: Adc.h:754
Definition: Adc.h:689
Definition: Adc.h:611
Adc_AveragingMode averagingMode
Definition: Adc.h:734
Adc_StatusType Adc_GetGroupStatus(Adc_GroupType Group)
Returns the conversion status of the requested ADC Channel group.
Definition: Adc.h:503
Definition: Adc.h:621
Adc_PowerStateType
Power state currently active or set as target power state.
Definition: Adc.h:647
#define ADC_MAX_HW_UNIT
Maximum HW unit - This should match the sum for the below units ISR which are ON.
Definition: Adc_Cfg.h:191
Definition: Adc.h:615
Adc_GroupPriorityType groupPriority
Definition: Adc.h:750
Adc_HwTriggerTimerType hwTrigTimer
Definition: Adc.h:775
Adc_GroupReplacementType groupReplacement
Definition: Adc.h:779
uint32 hwChannelId
Definition: Adc.h:705
void Adc_StopGroupConversion(Adc_GroupType Group)
Stops the conversion of the requested ADC Channel group.
Definition: Adc.h:586
void Adc_DisableGroupNotification(Adc_GroupType Group)
Disables the notification mechanism for the requested ADC Channel group.
uint32 adcMisc
Definition: Adc.h:855
Definition: Adc.h:619
uint32 rangeCheckEnable
Definition: Adc.h:727
ADC Group configuration structure.
Definition: Adc.h:745
Definition: Adc.h:468
uint32 openDelay
Definition: Adc.h:719
uint32 adcRev
Definition: Adc.h:851
Definition: Adc.h:553
Definition: Adc.h:555
uint8 Adc_HWUnitType
Specifies the identification (ID) for a ADC Hardware microcontroller peripheral (unit)
Definition: Adc.h:386
void(* Adc_GroupEndNotifyType)(void)
Typedef for group end notification function pointer.
Definition: Adc.h:455
Definition: Adc.h:536
void Adc_DeInit(void)
This service sets all ADC HW Units to a state comparable to their power on reset state.
Adc_HwTriggerSignalType hwTrigSignal
Definition: Adc.h:772
Definition: Adc.h:475
uint32 sampleDelay
Definition: Adc.h:723
Adc_ChannelRangeSelectType
In case of active limit checking: defines which conversion values are taken into account related to t...
Definition: Adc.h:607
Std_ReturnType Adc_DisableInternalDiagnostic(Adc_GroupType Group)
This function disables the Functional Internal Diagnostic Debug mode.
ADC register readback structure.
Definition: Adc.h:846
Definition: Adc.h:538
uint8 maxGroup
Definition: Adc.h:829
Adc_StreamNumSampleType streamNumSamples
Definition: Adc.h:757
Definition: Adc.h:609
Definition: Adc.h:691
Definition: Adc.h:589
Definition: Adc.h:669
Adc_StreamNumSampleType Adc_GetStreamLastPointer(Adc_GroupType Group, Adc_ValueGroupType **PtrToSamplePtr)
Returns the number of valid samples per channel, stored in the result buffer.
uint16 Adc_SamplingTimeType
Type of sampling time, i.e. the time during which the value is sampled (in clockcycles).
Definition: Adc.h:347
Definition: Adc.h:685
Adc_ResultAlignmentType
Type for alignment of ADC raw results in ADC result buffer (left/right alignment).
Definition: Adc.h:632
uint8 maxHwUnit
Definition: Adc.h:832
uint32 Adc_ValueGroupType
Type for reading the converted values of a channel group (raw, without further scaling,...
Definition: Adc.h:323
Adc_PowerStateRequestResultType
Result of the requests related to power state transitions.
Definition: Adc.h:661
void Adc_GetVersionInfo(Std_VersionInfoType *versioninfo)
This service returns the version information of this module.
Definition: Adc.h:663
Adc_TriggerSourceType
Type for configuring the trigger source for an ADC Channel group.
Definition: Adc.h:486
uint8 Adc_GroupType
Numeric ID of an ADC channel group.
Definition: Adc.h:311
Adc_GroupType groupId
Definition: Adc.h:747
uint8 Adc_RefSelType
Specifies the Reference select for functional internal diagnostic debug mode.
Definition: Adc.h:393
Adc_GroupAccessModeType accessMode
Definition: Adc.h:768
Definition: Adc.h:667
Adc_TriggerSourceType triggSrc
Definition: Adc.h:765
Adc_GroupConvModeType convMode
Definition: Adc.h:763
Definition: Adc.h:637
uint8 Adc_ResolutionType
Type of channel resolution in number of bits.
Definition: Adc.h:353
Definition: Adc.h:687
Definition: Adc.h:522
Adc_GroupConvModeType
Type for configuring the conversion mode of an ADC Channel group.
Definition: Adc.h:501
Std_ReturnType Adc_SetupResultBuffer(Adc_GroupType Group, const Adc_ValueGroupType *DataBufferPtr)
This service initializes ADC driver with the group specific result buffer start address where the con...
Definition: Adc.h:490
Definition: Adc.h:649
Definition: Adc.h:569
uint32 lowRange
Definition: Adc.h:793
uint8 Adc_HwTriggerTimerType
Type for the value of the ADC module embedded timer.
Definition: Adc.h:380
uint32 numChannels
Definition: Adc.h:804
Adc_PriorityImplementationType
Type for configuring the prioritization mechanism.
Definition: Adc.h:567
uint32 Adc_PrescaleType
Type of clock prescaler factor.
Definition: Adc.h:329
Definition: Adc.h:674
uint32 Adc_GroupDefType
Type of assignment of channels to a channel group.
Definition: Adc.h:365
void Adc_EnableGroupNotification(Adc_GroupType Group)
Enables the notification mechanism for the requested ADC Channel group.
Adc_HWUnitType hwUnitId
Definition: Adc.h:752
uint8 Adc_GroupPriorityType
Priority level of the channel. Lowest priority is 0.
Definition: Adc.h:359
Definition: Adc.h:488
Definition: Adc.h:693
Definition: Adc.h:471
Definition: Adc.h:672
Definition: Adc.h:506
uint16 Adc_StreamNumSampleType
Type for configuring the number of group conversions in streaming access mode (in single access mode,...
Definition: Adc.h:374
Definition: Adc.h:617
uint16 Adc_ConversionTimeType
Type of conversion time, i.e. the time during which the sampled analogue value is converted into digi...
Definition: Adc.h:338
Adc_HwTriggerSignalType
Type for configuring on which edge of the hardware trigger signal the driver should react,...
Definition: Adc.h:551
Definition: Adc.h:634
Std_ReturnType Adc_RegisterReadback(Adc_HWUnitType HWUnit, Adc_RegisterReadbackType *RegRbPtr)
This function reads the important registers of the hardware unit and returns the value in the structu...
Definition: Adc.h:573