20#define ADC_ID_INIT 0x00u
21#define ADC_RESULT_BUFFER 0x0Cu
22#define ADC_ID_DE_INIT 0x01u
23#define ADC_START_GROUP_CONVERSION 0x02u
24#define ADC_STOP_GROUP_CONVERSION 0x03u
25#define ADC_READ_GROUP 0x04u
26#define ADC_ENABLE_HARDWARE_TRIGGER 0x05u
27#define ADC_DISABLE_HARDWARE_TRIGGER 0x06u
28#define ADC_ENABLE_GROUP_NOTIFICATION 0x07u
29#define ADC_DISABLE_GROUP_NOTIFICATION 0x08u
30#define ADC_GET_GROUP_STATUS 0x09u
31#define ADC_GET_STREAM_LAST_POINTER 0x0Bu
32#define ADC_GET_VERSION_INFO 0x0Au
33#define ADC_SET_POWER_STATE 0x10u
34#define ADC_GET_CURRENT_POWER_STATE 0x11u
35#define ADC_GET_TARGET_POWER_STATE 0x12u
36#define ADC_PREPARE_POWER_STATE 0x13u
37#define ADC_MAIN_POWER_TRANSITION_MANAGER 0x14u
45#define ADC_E_UNINIT 0x0Au
46#define ADC_E_ALREADY_INITIALIZED 0x0Du
47#define ADC_E_PARAM_POINTER 0x14u
48#define ADC_E_PARAM_GROUP 0x15u
49#define ADC_E_WRONG_CONV_MODE 0x16u
51#define ADC_E_WRONG_TRIGG_SRC 0x17u
53#define ADC_E_NOTIF_CAPABILITY 0x18u
55#define ADC_E_BUFFER_UNINIT 0x19u
57#define ADC_E_POWER_STATE_NOT_SUPPORTED 0x1Bu
58#define ADC_E_PERIPHERAL_NOT_PREPARED 0x1Du
60#define ADC_E_BUSY 0x0Bu
63#define ADC_E_IDLE 0x0Cu
65#define ADC_E_NOT_DISENGAGED 0x1Au
67#define ADC_E_TRANSITION_NOT_POSSIBLE 0x1Cu
uint8 Adc_GroupType
Numeric ID of an ADC channel group. (Size tbd)
Definition Adc_Types.h:83
uint8 Adc_PrescaleType
Type of clock prescaler factor. (Size tbd)
Definition Adc_Types.h:98
Adc_ChannelRangeSelectType
In case of active limit checking: defines which conversion values are taken into account related to t...
Definition Adc_Types.h:294
@ ADC_RANGE_NOT_UNDER_LOW
Definition Adc_Types.h:300
@ ADC_RANGE_UNDER_LOW
Definition Adc_Types.h:295
@ ADC_RANGE_ALWAYS
Definition Adc_Types.h:299
@ ADC_RANGE_BETWEEN
Definition Adc_Types.h:296
@ ADC_RANGE_NOT_OVER_HIGH
Definition Adc_Types.h:303
@ ADC_RANGE_NOT_BETWEEN
Definition Adc_Types.h:301
@ ADC_RANGE_OVER_HIGH
Definition Adc_Types.h:298
uint8 Adc_StreamNumSampleType
Type for configuring the number of group conversions in streaming access mode (in single access mode,...
Definition Adc_Types.h:193
PowerStateType
For ennumarate the states of power for the ADC HW unit.
Definition Adc_Types.h:402
@ PWR_STATE_1
Definition Adc_Types.h:404
@ PWR_STATE_3
Definition Adc_Types.h:406
@ PWR_STATE_4
Definition Adc_Types.h:407
@ PWR_STATE_5
Definition Adc_Types.h:408
@ PWR_STATE_7
Definition Adc_Types.h:410
@ PWR_STATE_10
Definition Adc_Types.h:413
@ PWR_STATE_0
Definition Adc_Types.h:403
@ PWR_STATE_8
Definition Adc_Types.h:411
@ PWR_STATE_2
Definition Adc_Types.h:405
@ PWR_STATE_6
Definition Adc_Types.h:409
@ PWR_STATE_9
Definition Adc_Types.h:412
Adc_StreamBufferModeType
Type for configuring the streaming access mode buffer type.
Definition Adc_Types.h:202
@ ADC_STREAM_BUFFER_LINEAR
Definition Adc_Types.h:203
@ ADC_STREAM_BUFFER_CIRCULAR
Definition Adc_Types.h:205
uint8 Adc_HwTriggerTimerType
Type for the reload value of the ADC module embedded timer (only if supported by the ADC hardware)....
Definition Adc_Types.h:245
uint8 Adc_ConversionTimeType
Type of conversion time, i.e. the time during which the sampled analogue value is converted into digi...
Definition Adc_Types.h:106
Adc_ResultAlignmentType
Type for alignment of ADC raw results in ADC result buffer (left/right alignment).
Definition Adc_Types.h:313
@ ADC_ALIGN_RIGHT
Definition Adc_Types.h:315
@ ADC_ALIGN_LEFT
Definition Adc_Types.h:314
Adc_HwTriggerSignalType
Type for configuring on which edge of the hardware trigger signal the driver should react,...
Definition Adc_Types.h:230
@ ADC_HW_TRIG_RISING_EDGE
Definition Adc_Types.h:231
@ ADC_HW_TRIG_FALLING_EDGE
Definition Adc_Types.h:233
@ ADC_HW_TRIG_BOTH_EDGES
Definition Adc_Types.h:235
uint8 Adc_GroupDefType
Type for assignment of channels to a channel group. (size tbd)
Definition Adc_Types.h:185
Adc_PowerStateRequestResultType
Result of the requests related to power state transitions.
Definition Adc_Types.h:335
@ ADC_POWER_STATE_NOT_SUPP
Definition Adc_Types.h:341
@ ADC_TRANS_NOT_POSSIBLE
Definition Adc_Types.h:342
@ ADC_SEQUENCE_ERROR
Definition Adc_Types.h:338
@ ADC_HW_FAILURE
Definition Adc_Types.h:339
@ ADC_SERVICE_ACCEPTED
Definition Adc_Types.h:336
@ ADC_NOT_INIT
Definition Adc_Types.h:337
Adc_GroupReplacementType
Replacement mechanism, which is used on ADC group level, if a group conversion is interrupted by a gr...
Definition Adc_Types.h:268
@ ADC_GROUP_REPL_SUSPEND_RESUME
Definition Adc_Types.h:278
@ ADC_GROUP_REPL_ABORT_RESTART
Definition Adc_Types.h:269
Adc_GroupAccessModeType
Type for configuring the access mode to group conversion results.
Definition Adc_Types.h:217
@ ADC_ACCESS_MODE_SINGLE
Definition Adc_Types.h:218
@ ADC_ACCESS_MODE_STREAMING
Definition Adc_Types.h:219
uint8 Adc_GroupPriorityType
Priority level of the channel. Lowest priority is 0.
Definition Adc_Types.h:178
uint8 Adc_ResolutionType
Type of channel resolution in number of bits.
Definition Adc_Types.h:121
Adc_StatusType
Current status of the conversion of the requested ADC Channel group.
Definition Adc_Types.h:129
@ ADC_BUSY
Definition Adc_Types.h:132
@ ADC_STREAM_COMPLETED
Definition Adc_Types.h:136
@ ADC_COMPLETED
Definition Adc_Types.h:134
@ ADC_IDLE
Definition Adc_Types.h:130
Adc_TriggerSourceType
Type for configuring the trigger source for an ADC Channel group.
Definition Adc_Types.h:147
@ ADC_TRIGG_SRC_SW
Definition Adc_Types.h:148
@ ADC_TRIGG_SRC_HW
Definition Adc_Types.h:149
Group_IDType
For ennumarate the Ids of the different groups.
Definition Adc_Types.h:384
@ GROUP_8
Definition Adc_Types.h:393
@ GROUP_10
Definition Adc_Types.h:395
@ GROUP_5
Definition Adc_Types.h:390
@ GROUP_1
Definition Adc_Types.h:386
@ GROUP_7
Definition Adc_Types.h:392
@ GROUP_2
Definition Adc_Types.h:387
@ GROUP_3
Definition Adc_Types.h:388
@ GROUP_9
Definition Adc_Types.h:394
@ GROUP_4
Definition Adc_Types.h:389
@ GROUP_6
Definition Adc_Types.h:391
@ GROUP_0
Definition Adc_Types.h:385
Adc_PriorityImplementationType
Type for configuring the prioritization mechanism.
Definition Adc_Types.h:254
@ ADC_PRIORITY_HW_SW
Definition Adc_Types.h:257
@ ADC_PRIORITY_NONE
Definition Adc_Types.h:255
@ ADC_PRIORITY_HW
Definition Adc_Types.h:256
uint8 Adc_ChannelType
Numeric ID of an ADC channel. (Size tbd)
Definition Adc_Types.h:76
uint8 Adc_SamplingTimeType
Type of sampling time, i.e. the time during which the value is sampled, (in clock-cycles)....
Definition Adc_Types.h:114
Adc_PowerStateType
Power state currently active or set as target power state.
Definition Adc_Types.h:324
@ DECREASING_POWER
Definition Adc_Types.h:326
@ ADC_FULL_POWER
Definition Adc_Types.h:325
struct _Adc_HwUnit Adc_HwUnit
Hardware control unit structure
Adc_GroupConvModeType
Type for configuring the conversion mode of an ADC Channel group.
Definition Adc_Types.h:159
@ ADC_CONV_MODE_ONESHOT
Definition Adc_Types.h:160
@ ADC_CONV_MODE_CONTINUOUS
Definition Adc_Types.h:167
uint8 Adc_ValueGroupType
Type for reading the converted values of a channel group (raw, without further scaling,...
Definition Adc_Types.h:91
This file contains definitions and configurations for the NVIC.
Specification of Standard Types
Adc configuration structure
Definition Adc_Types.h:356
Adc_GroupConvModeType Adc_GroupConvMode
Definition Adc_Types.h:359
Adc_TriggerSourceType Adc_TriggerSource
Definition Adc_Types.h:357
Hardware control unit structure
Definition Adc_Types.h:370
uint8 PwrState
Definition Adc_Types.h:376
boolean InitState
Definition Adc_Types.h:372
uint8 ModuleID
Definition Adc_Types.h:373
boolean PreparePwrStateFlag
Definition Adc_Types.h:377
uint8 * GroupNotifFunctionPtr
Definition Adc_Types.h:375
const Adc_ConfigType * Config
Definition Adc_Types.h:371
boolean SetupResltBuffer
Definition Adc_Types.h:374