STM32G0 MCAL 0.0.1
Tiny MCAL for educational purpose.
Loading...
Searching...
No Matches
Adc.h
Go to the documentation of this file.
1
10#ifndef ADC_H__
11#define ADC_H__
12
13#include "Adc_Cfg.h"
14#include "Adc_Types.h"
15
16void Adc_Init( const Adc_ConfigType *ConfigPtr );
18#if ADC_DEINIT_API == STD_ON /* cppcheck-suppress misra-c2012-20.9 ; it is defined on the Adc_Cfg.h file */
19void Adc_DeInit( void );
20#endif
21#if ADC_ENABLE_START_STOP_GROUP_API == STD_ON /* cppcheck-suppress misra-c2012-20.9 ; it is defined on the Adc_Cfg.h file */
23#endif
24#if ADC_ENABLE_START_STOP_GROUP_API == STD_ON /* cppcheck-suppress misra-c2012-20.9 ; it is defined on the Adc_Cfg.h file */
26#endif
27#if ADC_READ_GROUP_API == STD_ON /* cppcheck-suppress misra-c2012-20.9 ; it is defined on the Adc_Cfg.h file */
29#endif
30#if ADC_HW_TRIGGER_API == STD_ON /* cppcheck-suppress misra-c2012-20.9 ; it is defined on the Adc_Cfg.h file */
32#endif
33#if ADC_HW_TRIGGER_API == STD_ON /* cppcheck-suppress misra-c2012-20.9 ; it is defined on the Adc_Cfg.h file */
35#endif
36#if ADC_GRP_NOTIF_CAPABILITY == STD_ON /* cppcheck-suppress misra-c2012-20.9 ; it is defined on the Adc_Cfg.h file */
38#endif
39#if ADC_GRP_NOTIF_CAPABILITY == STD_ON /* cppcheck-suppress misra-c2012-20.9 ; it is defined on the Adc_Cfg.h file */
41#endif
44#if ADC_VERSION_INFO_API == STD_ON /* cppcheck-suppress misra-c2012-20.9 ; it is defined on the Adc_Cfg.h file */
45void Adc_GetVersionInfo( Std_VersionInfoType *versioninfo );
46#endif
51
52#endif /* ADC_H__ */
void Adc_EnableHardwareTrigger(Adc_GroupType Group)
ADC Enable Hardware Trigger
Definition Adc.c:276
Std_ReturnType Adc_SetPowerState(Adc_PowerStateRequestResultType *Result)
ADC Set Power State
Definition Adc.c:572
Std_ReturnType Adc_SetupResultBuffer(Adc_GroupType Group, Adc_ValueGroupType *DataBufferPtr)
ADC Result Buffer
Definition Adc.c:86
Adc_StreamNumSampleType Adc_GetStreamLastPointer(Adc_GroupType Group, Adc_ValueGroupType **PtrToSamplePtr)
ADC Get Stream Last Pointer
Definition Adc.c:500
Std_ReturnType Adc_GetCurrentPowerState(Adc_PowerStateType *CurrentPowerState, Adc_PowerStateRequestResultType *Result)
ADC Get Current Power State
Definition Adc.c:618
void Adc_DeInit(void)
ADC Deinitialization
Definition Adc.c:124
Std_ReturnType Adc_PreparePowerState(Adc_PowerStateType PowerState, Adc_PowerStateRequestResultType *Result)
ADC Prepare Power State
Definition Adc.c:686
void Adc_StartGroupConversion(Adc_GroupType Group)
ADC Start Group Conversion
Definition Adc.c:150
void Adc_Init(const Adc_ConfigType *ConfigPtr)
ADC Initialization
Definition Adc.c:53
void Adc_EnableGroupNotification(Adc_GroupType Group)
ADC Enable Group Notification
Definition Adc.c:391
void Adc_StopGroupConversion(Adc_GroupType Group)
ADC Stop Group Conversion
Definition Adc.c:195
Std_ReturnType Adc_GetTargetPowerState(Adc_PowerStateType *TargetPowerState, Adc_PowerStateRequestResultType *Result)
ADC Get Target Power State
Definition Adc.c:650
void Adc_GetVersionInfo(Std_VersionInfoType *versioninfo)
ADC Get Version Info
Definition Adc.c:537
void Adc_DisableHardwareTrigger(Adc_GroupType Group)
ADC Disable Hardware Trigger
Definition Adc.c:337
Adc_StatusType Adc_GetGroupStatus(Adc_GroupType Group)
ADC Get Group Status
Definition Adc.c:467
void Adc_DisableGroupNotification(Adc_GroupType Group)
ADC Disable Group Notification
Definition Adc.c:428
Std_ReturnType Adc_ReadGroup(Adc_GroupType Group, Adc_ValueGroupType *DataBufferPtr)
ADC Read Group
Definition Adc.c:241
Adc Driver
uint8 Adc_GroupType
Numeric ID of an ADC channel group. (Size tbd)
Definition Adc_Types.h:83
uint8 Adc_StreamNumSampleType
Type for configuring the number of group conversions in streaming access mode (in single access mode,...
Definition Adc_Types.h:193
Adc_PowerStateRequestResultType
Result of the requests related to power state transitions.
Definition Adc_Types.h:335
Adc_StatusType
Current status of the conversion of the requested ADC Channel group.
Definition Adc_Types.h:129
Adc_PowerStateType
Power state currently active or set as target power state.
Definition Adc_Types.h:324
uint8 Adc_ValueGroupType
Type for reading the converted values of a channel group (raw, without further scaling,...
Definition Adc_Types.h:91
struct Std_VersionInfoType_Tag Std_VersionInfoType
This structure is used to request the version of a BSW module using the [Module name]_GetVersionInfo(...
uint8 Std_ReturnType
This type can be used as standard API return type which is shared between the RTE and the BSW modules...
Definition Std_Types.h:22
Adc configuration structure
Definition Adc_Types.h:356