RTEMS 6.1-rc6
Loading...
Searching...
No Matches
Data Structures | Macros | Typedefs | Enumerations | Functions
stm32h7xx_hal_opamp.h File Reference

Header file of OPAMP HAL module. More...

#include "stm32h7xx_hal_def.h"
#include "stm32h7xx_hal_opamp_ex.h"

Go to the source code of this file.

Data Structures

struct  OPAMP_InitTypeDef
 OPAMP Init structure definition
More...
 
struct  OPAMP_HandleTypeDef
 OPAMP Handle Structure definition. More...
 

Macros

#define OPAMP_STANDALONE_MODE   0x00000000U
 
#define OPAMP_PGA_MODE   OPAMP_CSR_VMSEL_1
 
#define OPAMP_FOLLOWER_MODE   (OPAMP_CSR_VMSEL_1 | OPAMP_CSR_VMSEL_0)
 
#define OPAMP_NONINVERTINGINPUT_IO0   0x00000000U
 
#define OPAMP_NONINVERTINGINPUT_DAC_CH   OPAMP_CSR_VPSEL_0
 
#define OPAMP_INVERTINGINPUT_IO0   0x00000000U
 
#define OPAMP_INVERTINGINPUT_IO1   OPAMP_CSR_VMSEL_0
 
#define OPAMP_PGA_CONNECT_INVERTINGINPUT_NO   0x00000000U
 
#define OPAMP_PGA_CONNECT_INVERTINGINPUT_IO0   OPAMP_CSR_PGGAIN_2
 
#define OPAMP_PGA_CONNECT_INVERTINGINPUT_IO0_BIAS   OPAMP_CSR_PGGAIN_3
 
#define OPAMP_PGA_CONNECT_INVERTINGINPUT_IO0_IO1_BIAS   (OPAMP_CSR_PGGAIN_2 | OPAMP_CSR_PGGAIN_3)
 
#define OPAMP_PGA_GAIN_2_OR_MINUS_1   0x00000000U
 
#define OPAMP_PGA_GAIN_4_OR_MINUS_3   OPAMP_CSR_PGGAIN_0
 
#define OPAMP_PGA_GAIN_8_OR_MINUS_7   OPAMP_CSR_PGGAIN_1
 
#define OPAMP_PGA_GAIN_16_OR_MINUS_15   (OPAMP_CSR_PGGAIN_0 | OPAMP_CSR_PGGAIN_1)
 
#define OPAMP_POWERMODE_NORMAL   0x00000000U
 
#define OPAMP_POWERMODE_HIGHSPEED   OPAMP_CSR_OPAHSM
 
#define OPAMP_VREF_3VDDA   0x00000000U
 
#define OPAMP_VREF_10VDDA   OPAMP_CSR_CALSEL_0
 
#define OPAMP_VREF_50VDDA   OPAMP_CSR_CALSEL_1
 
#define OPAMP_VREF_90VDDA   OPAMP_CSR_CALSEL
 
#define OPAMP_TRIMMING_FACTORY   0x00000000U
 
#define OPAMP_TRIMMING_USER   OPAMP_CSR_USERTRIM
 
#define OPAMP_FACTORYTRIMMING_DUMMY   0xFFFFFFFFU
 
#define OPAMP_FACTORYTRIMMING_N   0x00000000U
 
#define OPAMP_FACTORYTRIMMING_P   0x00000001U
 
#define OPAMP_INPUT_NONINVERTING   (8U)
 
#define OPAMP_TRIMMING_DELAY   (2U)
 
#define __HAL_OPAMP_RESET_HANDLE_STATE(__HANDLE__)   ((__HANDLE__)->State = HAL_OPAMP_STATE_RESET)
 Reset OPAMP handle state.
 
#define IS_OPAMP_FUNCTIONAL_NORMALMODE(INPUT)
 
#define IS_OPAMP_INVERTING_INPUT_STANDALONE(INPUT)
 
#define IS_OPAMP_NONINVERTING_INPUT(INPUT)
 
#define IS_OPAMP_PGACONNECT(CONNECT)
 
#define IS_OPAMP_PGA_GAIN(GAIN)
 
#define IS_OPAMP_VREF(VREF)
 
#define IS_OPAMP_POWERMODE(TRIMMING)
 
#define IS_OPAMP_TRIMMING(TRIMMING)
 
#define IS_OPAMP_TRIMMINGVALUE(TRIMMINGVALUE)   ((TRIMMINGVALUE) <= 0x1FU)
 
#define IS_OPAMP_FACTORYTRIMMING(TRIMMING)
 

Typedefs

typedef uint32_t HAL_OPAMP_TrimmingValueTypeDef
 HAl_OPAMP_TrimmingValueTypeDef definition.
 

Enumerations

enum  HAL_OPAMP_StateTypeDef {
  HAL_OPAMP_STATE_RESET = 0x00000000U , HAL_OPAMP_STATE_READY = 0x00000001U , HAL_OPAMP_STATE_CALIBBUSY = 0x00000002U , HAL_OPAMP_STATE_BUSY = 0x00000004U ,
  HAL_OPAMP_STATE_BUSYLOCKED = 0x00000005U
}
 HAL State structures definition
More...
 

Functions

HAL_StatusTypeDef HAL_OPAMP_Init (OPAMP_HandleTypeDef *hopamp)
 
HAL_StatusTypeDef HAL_OPAMP_DeInit (OPAMP_HandleTypeDef *hopamp)
 
void HAL_OPAMP_MspInit (OPAMP_HandleTypeDef *hopamp)
 
void HAL_OPAMP_MspDeInit (OPAMP_HandleTypeDef *hopamp)
 
HAL_StatusTypeDef HAL_OPAMP_Start (OPAMP_HandleTypeDef *hopamp)
 
HAL_StatusTypeDef HAL_OPAMP_Stop (OPAMP_HandleTypeDef *hopamp)
 
HAL_StatusTypeDef HAL_OPAMP_SelfCalibrate (OPAMP_HandleTypeDef *hopamp)
 
HAL_StatusTypeDef HAL_OPAMP_Lock (OPAMP_HandleTypeDef *hopamp)
 
HAL_OPAMP_TrimmingValueTypeDef HAL_OPAMP_GetTrimOffset (OPAMP_HandleTypeDef *hopamp, uint32_t trimmingoffset)
 
HAL_OPAMP_StateTypeDef HAL_OPAMP_GetState (OPAMP_HandleTypeDef *hopamp)
 

Detailed Description

Header file of OPAMP HAL module.

Author
MCD Application Team
Attention

Copyright (c) 2017 STMicroelectronics. All rights reserved.

This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.