STM32G0 MCAL 0.0.1
Tiny MCAL for educational purpose.
Loading...
Searching...
No Matches
Adc Development and Runtime Error Types

Macros

#define ADC_E_UNINIT   0x0Au
 
#define ADC_E_ALREADY_INITIALIZED   0x0Du
 
#define ADC_E_PARAM_POINTER   0x14u
 
#define ADC_E_PARAM_GROUP   0x15u
 
#define ADC_E_WRONG_CONV_MODE   0x16u
 
#define ADC_E_WRONG_TRIGG_SRC   0x17u
 
#define ADC_E_NOTIF_CAPABILITY   0x18u
 
#define ADC_E_BUFFER_UNINIT   0x19u
 
#define ADC_E_POWER_STATE_NOT_SUPPORTED   0x1Bu
 
#define ADC_E_PERIPHERAL_NOT_PREPARED   0x1Du
 
#define ADC_E_BUSY   0x0Bu
 
#define ADC_E_IDLE   0x0Cu
 
#define ADC_E_NOT_DISENGAGED   0x1Au
 
#define ADC_E_TRANSITION_NOT_POSSIBLE   0x1Cu
 

Detailed Description

Macro Definition Documentation

◆ ADC_E_ALREADY_INITIALIZED

#define ADC_E_ALREADY_INITIALIZED   0x0Du

API called while ADC is already initialized.

◆ ADC_E_BUFFER_UNINIT

#define ADC_E_BUFFER_UNINIT   0x19u

API called while result buffer pointer is not \ initialized.

◆ ADC_E_BUSY

#define ADC_E_BUSY   0x0Bu

API is called while another conversion is \ already running, a HW trigger is already enabled, a \ request is already stored in the queue.

◆ ADC_E_IDLE

#define ADC_E_IDLE   0x0Cu

API is called while group is in state ADC_IDLE \ or non enabled group.

◆ ADC_E_NOT_DISENGAGED

#define ADC_E_NOT_DISENGAGED   0x1Au

API called while one or more ADC groups are \ not in IDLE state.

◆ ADC_E_NOTIF_CAPABILITY

#define ADC_E_NOTIF_CAPABILITY   0x18u

API called and notification function pointer \ is NULL.

◆ ADC_E_PARAM_GROUP

#define ADC_E_PARAM_GROUP   0x15u

API called with non existing group.

◆ ADC_E_PARAM_POINTER

#define ADC_E_PARAM_POINTER   0x14u

API called with incorrect buffer pointer.

◆ ADC_E_PERIPHERAL_NOT_PREPARED

#define ADC_E_PERIPHERAL_NOT_PREPARED   0x1Du

ADC not prepared for requested target power \ state.

◆ ADC_E_POWER_STATE_NOT_SUPPORTED

#define ADC_E_POWER_STATE_NOT_SUPPORTED   0x1Bu

API call with unsupported power state request.

◆ ADC_E_TRANSITION_NOT_POSSIBLE

#define ADC_E_TRANSITION_NOT_POSSIBLE   0x1Cu

Requested power state can not be reached.

◆ ADC_E_UNINIT

#define ADC_E_UNINIT   0x0Au

API is called prior to initialization.

◆ ADC_E_WRONG_CONV_MODE

#define ADC_E_WRONG_CONV_MODE   0x16u

API called for a group configured for \ continuous conversion mode.

◆ ADC_E_WRONG_TRIGG_SRC

#define ADC_E_WRONG_TRIGG_SRC   0x17u

API call not allowed according group \ configuration.