EFM32 Giant Gecko Software Documentation  efm32gg-doc-5.1.2
efm32gg_vcmp.h File Reference

Detailed Description

EFM32GG_VCMP register and bit field definitions.

Version
5.1.2

License

Copyright 2017 Silicon Laboratories, Inc. http://www.silabs.com

Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:

  1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software.
  2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
  3. This notice may not be removed or altered from any source distribution.

DISCLAIMER OF WARRANTY/LIMITATION OF REMEDIES: Silicon Laboratories, Inc. has no obligation to support this Software. Silicon Laboratories, Inc. is providing the Software "AS IS", with no express or implied warranties of any kind, including, but not limited to, any implied warranties of merchantability or fitness for any particular purpose or warranties against infringement of any proprietary rights of a third party.

Silicon Laboratories, Inc. will not be liable for any consequential, incidental, or special damages, or any other relief, or for any claim by any third party, arising from your use of this Software.

Definition in file efm32gg_vcmp.h.

Go to the source code of this file.

Data Structures

struct  VCMP_TypeDef
 

Macros

#define _VCMP_CTRL_BIASPROG_DEFAULT   0x00000007UL
 
#define _VCMP_CTRL_BIASPROG_MASK   0xF000000UL
 
#define _VCMP_CTRL_BIASPROG_SHIFT   24
 
#define _VCMP_CTRL_EN_DEFAULT   0x00000000UL
 
#define _VCMP_CTRL_EN_MASK   0x1UL
 
#define _VCMP_CTRL_EN_SHIFT   0
 
#define _VCMP_CTRL_HALFBIAS_DEFAULT   0x00000001UL
 
#define _VCMP_CTRL_HALFBIAS_MASK   0x40000000UL
 
#define _VCMP_CTRL_HALFBIAS_SHIFT   30
 
#define _VCMP_CTRL_HYSTEN_DEFAULT   0x00000000UL
 
#define _VCMP_CTRL_HYSTEN_MASK   0x10UL
 
#define _VCMP_CTRL_HYSTEN_SHIFT   4
 
#define _VCMP_CTRL_IFALL_DEFAULT   0x00000000UL
 
#define _VCMP_CTRL_IFALL_MASK   0x20000UL
 
#define _VCMP_CTRL_IFALL_SHIFT   17
 
#define _VCMP_CTRL_INACTVAL_DEFAULT   0x00000000UL
 
#define _VCMP_CTRL_INACTVAL_MASK   0x4UL
 
#define _VCMP_CTRL_INACTVAL_SHIFT   2
 
#define _VCMP_CTRL_IRISE_DEFAULT   0x00000000UL
 
#define _VCMP_CTRL_IRISE_MASK   0x10000UL
 
#define _VCMP_CTRL_IRISE_SHIFT   16
 
#define _VCMP_CTRL_MASK   0x4F030715UL
 
#define _VCMP_CTRL_RESETVALUE   0x47000000UL
 
#define _VCMP_CTRL_WARMTIME_128CYCLES   0x00000005UL
 
#define _VCMP_CTRL_WARMTIME_16CYCLES   0x00000002UL
 
#define _VCMP_CTRL_WARMTIME_256CYCLES   0x00000006UL
 
#define _VCMP_CTRL_WARMTIME_32CYCLES   0x00000003UL
 
#define _VCMP_CTRL_WARMTIME_4CYCLES   0x00000000UL
 
#define _VCMP_CTRL_WARMTIME_512CYCLES   0x00000007UL
 
#define _VCMP_CTRL_WARMTIME_64CYCLES   0x00000004UL
 
#define _VCMP_CTRL_WARMTIME_8CYCLES   0x00000001UL
 
#define _VCMP_CTRL_WARMTIME_DEFAULT   0x00000000UL
 
#define _VCMP_CTRL_WARMTIME_MASK   0x700UL
 
#define _VCMP_CTRL_WARMTIME_SHIFT   8
 
#define _VCMP_IEN_EDGE_DEFAULT   0x00000000UL
 
#define _VCMP_IEN_EDGE_MASK   0x1UL
 
#define _VCMP_IEN_EDGE_SHIFT   0
 
#define _VCMP_IEN_MASK   0x00000003UL
 
#define _VCMP_IEN_RESETVALUE   0x00000000UL
 
#define _VCMP_IEN_WARMUP_DEFAULT   0x00000000UL
 
#define _VCMP_IEN_WARMUP_MASK   0x2UL
 
#define _VCMP_IEN_WARMUP_SHIFT   1
 
#define _VCMP_IF_EDGE_DEFAULT   0x00000000UL
 
#define _VCMP_IF_EDGE_MASK   0x1UL
 
#define _VCMP_IF_EDGE_SHIFT   0
 
#define _VCMP_IF_MASK   0x00000003UL
 
#define _VCMP_IF_RESETVALUE   0x00000000UL
 
#define _VCMP_IF_WARMUP_DEFAULT   0x00000000UL
 
#define _VCMP_IF_WARMUP_MASK   0x2UL
 
#define _VCMP_IF_WARMUP_SHIFT   1
 
#define _VCMP_IFC_EDGE_DEFAULT   0x00000000UL
 
#define _VCMP_IFC_EDGE_MASK   0x1UL
 
#define _VCMP_IFC_EDGE_SHIFT   0
 
#define _VCMP_IFC_MASK   0x00000003UL
 
#define _VCMP_IFC_RESETVALUE   0x00000000UL
 
#define _VCMP_IFC_WARMUP_DEFAULT   0x00000000UL
 
#define _VCMP_IFC_WARMUP_MASK   0x2UL
 
#define _VCMP_IFC_WARMUP_SHIFT   1
 
#define _VCMP_IFS_EDGE_DEFAULT   0x00000000UL
 
#define _VCMP_IFS_EDGE_MASK   0x1UL
 
#define _VCMP_IFS_EDGE_SHIFT   0
 
#define _VCMP_IFS_MASK   0x00000003UL
 
#define _VCMP_IFS_RESETVALUE   0x00000000UL
 
#define _VCMP_IFS_WARMUP_DEFAULT   0x00000000UL
 
#define _VCMP_IFS_WARMUP_MASK   0x2UL
 
#define _VCMP_IFS_WARMUP_SHIFT   1
 
#define _VCMP_INPUTSEL_LPREF_DEFAULT   0x00000000UL
 
#define _VCMP_INPUTSEL_LPREF_MASK   0x100UL
 
#define _VCMP_INPUTSEL_LPREF_SHIFT   8
 
#define _VCMP_INPUTSEL_MASK   0x0000013FUL
 
#define _VCMP_INPUTSEL_RESETVALUE   0x00000000UL
 
#define _VCMP_INPUTSEL_TRIGLEVEL_DEFAULT   0x00000000UL
 
#define _VCMP_INPUTSEL_TRIGLEVEL_MASK   0x3FUL
 
#define _VCMP_INPUTSEL_TRIGLEVEL_SHIFT   0
 
#define _VCMP_STATUS_MASK   0x00000003UL
 
#define _VCMP_STATUS_RESETVALUE   0x00000000UL
 
#define _VCMP_STATUS_VCMPACT_DEFAULT   0x00000000UL
 
#define _VCMP_STATUS_VCMPACT_MASK   0x1UL
 
#define _VCMP_STATUS_VCMPACT_SHIFT   0
 
#define _VCMP_STATUS_VCMPOUT_DEFAULT   0x00000000UL
 
#define _VCMP_STATUS_VCMPOUT_MASK   0x2UL
 
#define _VCMP_STATUS_VCMPOUT_SHIFT   1
 
#define VCMP_CTRL_BIASPROG_DEFAULT   (_VCMP_CTRL_BIASPROG_DEFAULT << 24)
 
#define VCMP_CTRL_EN   (0x1UL << 0)
 
#define VCMP_CTRL_EN_DEFAULT   (_VCMP_CTRL_EN_DEFAULT << 0)
 
#define VCMP_CTRL_HALFBIAS   (0x1UL << 30)
 
#define VCMP_CTRL_HALFBIAS_DEFAULT   (_VCMP_CTRL_HALFBIAS_DEFAULT << 30)
 
#define VCMP_CTRL_HYSTEN   (0x1UL << 4)
 
#define VCMP_CTRL_HYSTEN_DEFAULT   (_VCMP_CTRL_HYSTEN_DEFAULT << 4)
 
#define VCMP_CTRL_IFALL   (0x1UL << 17)
 
#define VCMP_CTRL_IFALL_DEFAULT   (_VCMP_CTRL_IFALL_DEFAULT << 17)
 
#define VCMP_CTRL_INACTVAL   (0x1UL << 2)
 
#define VCMP_CTRL_INACTVAL_DEFAULT   (_VCMP_CTRL_INACTVAL_DEFAULT << 2)
 
#define VCMP_CTRL_IRISE   (0x1UL << 16)
 
#define VCMP_CTRL_IRISE_DEFAULT   (_VCMP_CTRL_IRISE_DEFAULT << 16)
 
#define VCMP_CTRL_WARMTIME_128CYCLES   (_VCMP_CTRL_WARMTIME_128CYCLES << 8)
 
#define VCMP_CTRL_WARMTIME_16CYCLES   (_VCMP_CTRL_WARMTIME_16CYCLES << 8)
 
#define VCMP_CTRL_WARMTIME_256CYCLES   (_VCMP_CTRL_WARMTIME_256CYCLES << 8)
 
#define VCMP_CTRL_WARMTIME_32CYCLES   (_VCMP_CTRL_WARMTIME_32CYCLES << 8)
 
#define VCMP_CTRL_WARMTIME_4CYCLES   (_VCMP_CTRL_WARMTIME_4CYCLES << 8)
 
#define VCMP_CTRL_WARMTIME_512CYCLES   (_VCMP_CTRL_WARMTIME_512CYCLES << 8)
 
#define VCMP_CTRL_WARMTIME_64CYCLES   (_VCMP_CTRL_WARMTIME_64CYCLES << 8)
 
#define VCMP_CTRL_WARMTIME_8CYCLES   (_VCMP_CTRL_WARMTIME_8CYCLES << 8)
 
#define VCMP_CTRL_WARMTIME_DEFAULT   (_VCMP_CTRL_WARMTIME_DEFAULT << 8)
 
#define VCMP_IEN_EDGE   (0x1UL << 0)
 
#define VCMP_IEN_EDGE_DEFAULT   (_VCMP_IEN_EDGE_DEFAULT << 0)
 
#define VCMP_IEN_WARMUP   (0x1UL << 1)
 
#define VCMP_IEN_WARMUP_DEFAULT   (_VCMP_IEN_WARMUP_DEFAULT << 1)
 
#define VCMP_IF_EDGE   (0x1UL << 0)
 
#define VCMP_IF_EDGE_DEFAULT   (_VCMP_IF_EDGE_DEFAULT << 0)
 
#define VCMP_IF_WARMUP   (0x1UL << 1)
 
#define VCMP_IF_WARMUP_DEFAULT   (_VCMP_IF_WARMUP_DEFAULT << 1)
 
#define VCMP_IFC_EDGE   (0x1UL << 0)
 
#define VCMP_IFC_EDGE_DEFAULT   (_VCMP_IFC_EDGE_DEFAULT << 0)
 
#define VCMP_IFC_WARMUP   (0x1UL << 1)
 
#define VCMP_IFC_WARMUP_DEFAULT   (_VCMP_IFC_WARMUP_DEFAULT << 1)
 
#define VCMP_IFS_EDGE   (0x1UL << 0)
 
#define VCMP_IFS_EDGE_DEFAULT   (_VCMP_IFS_EDGE_DEFAULT << 0)
 
#define VCMP_IFS_WARMUP   (0x1UL << 1)
 
#define VCMP_IFS_WARMUP_DEFAULT   (_VCMP_IFS_WARMUP_DEFAULT << 1)
 
#define VCMP_INPUTSEL_LPREF   (0x1UL << 8)
 
#define VCMP_INPUTSEL_LPREF_DEFAULT   (_VCMP_INPUTSEL_LPREF_DEFAULT << 8)
 
#define VCMP_INPUTSEL_TRIGLEVEL_DEFAULT   (_VCMP_INPUTSEL_TRIGLEVEL_DEFAULT << 0)
 
#define VCMP_STATUS_VCMPACT   (0x1UL << 0)
 
#define VCMP_STATUS_VCMPACT_DEFAULT   (_VCMP_STATUS_VCMPACT_DEFAULT << 0)
 
#define VCMP_STATUS_VCMPOUT   (0x1UL << 1)
 
#define VCMP_STATUS_VCMPOUT_DEFAULT   (_VCMP_STATUS_VCMPOUT_DEFAULT << 1)