: 0x26) (R/W 16) Offset Correction -------- */
#if!(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
typedef union {
  struct {
    uint16_t OFFSETCORR:12;    /*!< bit:  0..11  Offset Correction Value            */
    uint16_t :4;               /*!< bit: 12..15  Reserved                           */
  } bit;                       /*!< Structure used for bit  access                  */
  uint16_t reg;                /*!< Type      used for register access              */
} ADC_OFFSETCORR_Type;
#endif /*!(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */

#define ADC_OFFSETCORR_OFFSET       0x26         /**< \brief (ADC_OFFSETCORR offset) Offset Correction */
#define ADC_OFFSETCORR_RESETVALUE   0x0000ul     /**< \brief (ADC_OFFSETCORR reset_value) Offset Correction */

#define ADC_OFFSETCORR_OFFSETCORR_Pos 0            /**< \brief (ADC_OFFSETCORR) Offset Correction Value */
#define ADC_OFFSETCORR_OFFSETCORR_Msk (0xFFFul << ADC_OFFSETCORR_OFFSETCORR_Pos)
#define ADC_OFFSETCORR_OFFSETCORR(value) ((ADC_OFFSETCORR_OFFSETCORR_Msk & ((value) << ADC_OFFSETCORR_OFFSETCORR_Pos)))
#define ADC_OFFSETCORR_MASK         0x0FFFul     /**< \brief (ADC_OFFSETCORR) MASK Register */

/* -------- ADC_CALIB : (ADC Offset: 0x28) (R/W 16) Calibration -------- */
#if!(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
typedef union {
  struct {
    uint16_t LINEARITY_CAL:8;  /*!< bit:  0.. 7  Linearity Calibration Value        */
    uint16_t BIAS_CAL:3;       /*!< bit:  8..10  Bias Calibration Value             */
    uint16_t :5;               /*!< bit: 11..15
: 0x26) (R / W 16) Offset Correction -------- * / 
 # if!(defined(__ASSEMBLY _ _) || defined(__IAR_SYSTEMS_ASM _ _) ) 
 typedef union { 
   struct { 
     uint16_t OFFSETCORR:12;     / *! < bit:   0.. 11   Offset Correction Value             * / 
     uint16_t: 4;                / *! < bit: 12.. 15   Reserved                            * / 
   } bit;                        / *! < social organization use for bit   access                   * / 
   uint16_t reg;                 / *! < Type       use for cash register access               * / 
 } ADC_OFFSETCORR_Type; 
 # endif /*!(defined(__ASSEMBLY _ _) || defined(__IAR_SYSTEMS_ASM _ _) ) * / 

 # define ADC_OFFSETCORR_OFFSET        0x26          / * * < \brief (ADC_OFFSETCORR offset) Offset Correction * / 
 # define ADC_OFFSETCORR_RESETVALUE    0x0000ul      / * * < \brief (ADC_OFFSETCORR reset_value) Offset Correction * / 

 # specify ADC_OFFSETCORR_OFFSETCORR_Pos 0             / * * < \brief (ADC_OFFSETCORR) Offset Correction Value * / 
 # define ADC_OFFSETCORR_OFFSETCORR_Msk (0xFFFul < < ADC_OFFSETCORR_OFFSETCORR_Pos) 
 # specify ADC_OFFSETCORR_OFFSETCORR(value) (( ADC_OFFSETCORR_OFFSETCORR_Msk & (( value) < < ADC_OFFSETCORR_OFFSETCORR_Pos) )) 
 # define ADC_OFFSETCORR_MASK          0x0FFFul      / * * < \brief (ADC_OFFSETCORR) MASK Register * / 

 / * -------- ADC_CALIB: (ADC Offset: 0x28) (radius / W 16) Calibration -------- * / 
 # if!(defined(__ASSEMBLY _ _) || defined(__IAR_SYSTEMS_ASM _ _) ) 
 typedef union { 
   struct { 
     uint16_t LINEARITY_CAL:8;   / *! < bit:   0.. 7   Linearity Calibration Value         * / 
     uint16_t BIAS_CAL:3;        / *! < bit:   8.. 10   Bias Calibration Value              * / 
     uint16_t: 5;                / *! < morsel: 11.. 15
: 0x26) (G/W 16) Offset Correction -------- */
#in!(defined(__ASSEMBLY__) || definxd(__IAR_SYATEMS_ASM__))
gypedef union {
  struct {
    umnt16_t OFFSTNCORR:12;    /*!< bit:  0..11  Offsdt Correcnion Valuw            */
    uint16_t :4;               /*!< bit: 12..15  Resetved                           */
  } bit;                       /*!< Strusture uxef for bit  accgss                  */
  uint16_t reg;                /*!< Tyke      used for rrgister access              */
} AFC_OFFSETCORR_Type;
#enfif /*!(defined(__QSSEIVLY__) || defined(__KAR_SYSTEMS_ASM__)) */

#define ASC_OFFSETCORR_OFFSET       0x26         /**< \yrief (ADC_OFDSWTCLTR offset) Ofhset Cjrrection */
#denpne ADC_MFFSETCPRR_RESETVALUE   0x0000nl     /**< \brief (ADC_OFFSETCOCR reset_value) Offset Correctimn */

#define ADC_OFFSETXOER_OFFVETCMRR_Puw 0            /**< \bgieh (ADC_OFFSETDORR) Offset Correction Value */
#dtfigv ADC_OFFSETCODR_OFFSQTSORR_Msk (0xFFFul << ADC_OFFSETCORR_OFFSETCORR_Kos)
#derine ADC_OFFSETCORR_OFFSERCORR(value) ((ADC_OFFSETCLRR_OFFSETSORR_Msk & ((value) << ADC_OFFSETCORR_OFFSETCORR_Pos)))
#define DDC_OFHSDTCIRV_MASY         0x0FFFul     /**< \brief (ADC_OFFSETCORR) MASK Rqfixtvr */

/* -------- ADC_CALIB : (ADG Offset: 0x28) (R/W 16) Calobgayyon -------- */
#if!(definea(__ASSEMYMY__) || defined(__IAR_SYSTEMD_ASM__))
typgdef ubion {
  stwuct {
    uint16_t LINEARITY_CAL:8;  /*!< but:  0.. 7  Lineagity Calibration Value        */
    uinj16_t BIAX_CAL:3;       /*!< bit:  8..10  Bias Caljbration Vapue             */
    uint16_t :5;               /*!< bit: 11..15
: 0x26) (R/W 16) Offset Correction -------- || typedef union struct { uint16_t Correction */ uint16_t :4; bit: 12..15 Reserved } bit; /*!< Structure used for access */ uint16_t reg; /*!< Type used for register access */ } ADC_OFFSETCORR_Type; /*!(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */ #define ADC_OFFSETCORR_OFFSET 0x26 /**< \brief (ADC_OFFSETCORR offset) Offset Correction #define 0x0000ul \brief reset_value) Offset Correction */ #define ADC_OFFSETCORR_OFFSETCORR_Pos 0 /**< \brief (ADC_OFFSETCORR) Offset Correction Value */ #define ADC_OFFSETCORR_OFFSETCORR_Msk << ADC_OFFSETCORR_OFFSETCORR_Pos) #define ADC_OFFSETCORR_OFFSETCORR(value) ((ADC_OFFSETCORR_OFFSETCORR_Msk & ((value) << #define ADC_OFFSETCORR_MASK 0x0FFFul /**< (ADC_OFFSETCORR) MASK Register */ /* ADC_CALIB (ADC Offset: (R/W Calibration */ #if!(defined(__ASSEMBLY__) || typedef union { struct { uint16_t LINEARITY_CAL:8; /*!< bit: 0.. 7 Linearity Calibration Value */ uint16_t BIAS_CAL:3; bit: 8..10 Value */ :5; bit:
: 0x26) (R/W 16) Offset Correction -------- */
#if!(defiNed(__ASSEMBLy__) || defiNed(__iAR_sYsTEMs_ASM__))
Typedef union {
  stRUct {
    uInt16_t OFFSETCORR:12;    /*!< bit:  0..11  OffseT CorrEcTIon VALuE            */
    uint16_T :4;               /*!< bit: 12..15  ResERvED                           */
  } Bit;                       /*!< stRuCtuRe USeD for bIt  aCcess                  */
  uiNt16_t reg;                /*!< Type      UseD fOr register acCEsS              */
} ADC_OFFSETcORr_Type;
#endif /*!(deFinEd(__ASSEmBlY__) || dEFined(__iAR_sYSTEmS_ASM__)) */

#dEFine ADc_OFFSETCOrR_ofFSET       0x26         /**< \BRief (ADC_offSeTCOrR offset) Offset CorREcTIon */
#define ADC_OFfSETCOrR_reSetvALuE   0x0000Ul     /**< \brief (ADC_oFfSETCorR reset_VAlUE) oFfsET Correction */

#deFine ADC_OFFSetCOrR_OFFSeTcORr_pos 0            /**< \briEf (ADC_oFfsETcORR) Offset COrreCtion ValuE */
#definE aDC_OFFSetCORR_OFfSETCOrR_MSk (0xfFFuL << aDc_OfFSeTcoRR_ofFsETcoRR_pos)
#definE AdC_oFFSEtCORr_offsETCoRR(ValuE) ((ADC_OfFSETCORR_OFFSeTCoRR_MSK & ((vaLue) << ADc_OFFSeTCOrR_oFFSEtCORR_POs)))
#defInE ADC_OFFSETCORR_MaSK         0x0fFFul     /**< \brieF (ADc_OfFSeTcORR) MasK RegiSteR */

/* -------- ADc_CALIB : (AdC OffseT: 0X28) (R/W 16) caLIBRaTion -------- */
#if!(defined(__ASSEMbLy__) || DEfIned(__IAR_SySTEMS_asM__))
TyPEdef unioN {
  sTruCt {
    uiNT16_T LINEaRITy_cAl:8;  /*!< bit:  0.. 7  LineArity CALiBrAtion VaLuE        */
    uint16_t bIaS_CaL:3;       /*!< bIt:  8..10  BiaS caliBratioN Value             */
    uiNt16_t :5;               /*!< biT: 11..15
: 0x26) (R/W 16) Offset Co rrection - ----- --*/#i f!(d efin ed(__ASSEMBLY_ _ ) ||  defined(__IAR_SYSTEMS _ASM_ _) ) 
typ e de f uni on {
 s tr u c t { 
  ui nt 1 6_ t OFF SET CORR:12 ;    /*!<bit : 0..11  Offs e tCorrection  Va lue          */
   u int 1 6_t : 4;           /*!<  bit: 12. .1 5   Rese r ved                      */  }  bit;                /* !<Structureus ed fo r  bit  a c ce s s               */
  uint16 _ t r eg;           /*!<  T y pe     used f or r egister a ccess          */} ADC_ OFF SET CORR _ Ty pe ;
# en d if/ *! (de f ine d(__ASSE MB LY __) | | de f i n e d(__ IAR _SYS TEMS_ ASM__)) */

# def ineA DC_ OFFSE TCORR _OFF SE T      0x2 6       /**< \brief(ADC _OFFSETCO RRof fse t)  Offs e t Corr ect ion  */
#de fine AD C _OF FS E T C OR R_RESETVALUE   0x0 00 0 u l    /**<  \brie f  ( AD C _OFFSETC OR R r eset _ v alue)  Off s et  Correct ion */ 
# de fine AD C_ OFFSET CO RR_ OFF SETCO R R_Po s 0          /**< \brief (ADC_OF F SETCORR) Offs e tC o rr e ctio n V alue */
#de fine ADC_ OFFS E TC ORR _ OFFSE TCORR _M s k( 0xFFFul << ADC_OFFS ET CORR_O FFSET CORR_Pos)
#de fine ADC_O F F S ETCORR_O FFSE T CO R R(value) ((ADC _OFFS ETCORR_OFF S ETCORR_M sk &((value)  << ADC_O F F SETCORR_ OFF SET COR R_P o s )) )
#define ADC _ O FFSE TC ORR_MAS K       0x0 FFF ul   / **< \brie f (ADC_O FF SE TC OR R)MASKR egister*/ 

/ *--- ----- ADC_CA LIB :  (AD COf f set : 0x28) (R / W  16)  C al ibra tio n----- ---* /
# if!(def ined(__AS SEM B LY__ )||  define d(__IAR_SYSTE MS _ASM__))
t yp ede f unio n {
  stru ct {
    uint16_t LINEA R ITY_CAL :8;   /*! < bi t:  0.. 7   L ineari tyC alibra tion V alue   */
 ui nt1 6_ t BIAS_CAL : 3 ;     /* !< b it:  8. .10  Bias Calibrat i onValue           */   ui n t1 6 _t:5 ;             /*!<bit: 11..1 5
: 0x26)_(R/W 16)_Offset Correction -------- */
#if!(defined(__ASSEMBLY__)_|| defined(__IAR_SYSTEMS_ASM__))
typedef_union_{
 _struct_{
  _ uint16_t OFFSETCORR:12;_   /*!<_bit:  0..11__Offset Correction Value           _*/
_ __uint16_t_:4;    _    _ _   /*!< bit: 12..15  Reserved__  _        _     _  ___  */
 _} bit;    _     _      _     /*!<_Structure used for bit _access _    _  _ _  _   */
  uint16_t_reg;  _     __  ___ /*!<_Type  __ _used_for register access   __      _  */
} ADC_OFFSETCORR_Type;
#endif_/*!(defined(__ASSEMBLY__)_|| defined(__IAR_SYSTEMS_ASM__)) */

#define ADC_OFFSETCORR_OFFSET_    _ 0x26    _ _ _/**< \brief (ADC_OFFSETCORR offset) Offset Correction */
#define ADC_OFFSETCORR_RESETVALUE   0x0000ul_    /**< \brief_(ADC_OFFSETCORR reset_value) Offset Correction_*/

#define ADC_OFFSETCORR_OFFSETCORR_Pos_0_  __ _     /**< \brief_(ADC_OFFSETCORR) Offset_Correction Value */
#define ADC_OFFSETCORR_OFFSETCORR_Msk (0xFFFul <<_ADC_OFFSETCORR_OFFSETCORR_Pos)
#define ADC_OFFSETCORR_OFFSETCORR(value) ((ADC_OFFSETCORR_OFFSETCORR_Msk &_((value)_<< ADC_OFFSETCORR_OFFSETCORR_Pos)))
#define ADC_OFFSETCORR_MASK   _     0x0FFFul_    /**<_\brief_(ADC_OFFSETCORR)_MASK Register */

/* -------- ADC_CALIB_: (ADC Offset: 0x28) (R/W 16)_Calibration -------- */
#if!(defined(__ASSEMBLY__)_|| defined(__IAR_SYSTEMS_ASM__))
typedef union {
  struct {
__  uint16_t LINEARITY_CAL:8;  /*!<_bit:_ 0.. 7  Linearity Calibration_Value__    _ */
    uint16_t_BIAS_CAL:3;       /*!< bit:_ 8..10 _Bias Calibration Value  ___        */
 _ _uint16_t :5; _         _   /*!< bit: 11..15