MotorWare f2806x Driver API Documentation

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

Data Structures | Macros | Typedefs | Enumerations | Functions
comp.h File Reference

Contains public interface to various functions related to the comparator (COMP) object. More...

`#include "sw/drivers/cpu/src/32b/f28x/f2806x/cpu.h"`

Go to the source code of this file.

## Data Structures
struct | _COMP_Obj_
| Defines the comparator (COMP) object. More...

## Macros
#define | COMP1_BASE_ADDR (0x00006400)
| Defines the base address of the comparator (COMP) registers. More...
#define | COMP2_BASE_ADDR (0x00006420)
| Defines the base address of the comparator (COMP) registers. More...
#define | COMP3_BASE_ADDR (0x00006440)
| Defines the base address of the comparator (COMP) registers. More...
#define | COMP_COMPCTL_COMPDACE_BITS (1 << 0)
| Defines the location of the COMPDACE bits in the COMPCTL register. More...
#define | COMP_COMPCTL_COMPSOURCE_BITS (1 << 1)
| Defines the location of the COMPSOURCE bits in the COMPCTL register. More...
#define | COMP_COMPCTL_CMPINV_BITS (1 << 2)
| Defines the location of the CMPINV bits in the COMPCTL register. More...
#define | COMP_COMPCTL_QUALSEL_BITS (31 << 3)
| Defines the location of the QUALSEL bits in the COMPCTL register. More...
#define | COMP_COMPCTL_SYNCSEL_BITS (1 << 8)
| Defines the location of the SYNCSEL bits in the COMPCTL register. More...
#define | COMP_COMPSTS_COMPSTS_BITS (1 << 0)
| Defines the location of the COMPSTS bits in the COMPSTS register. More...
#define | COMP_DACCTL_DACSOURCE_BITS (1 << 0)
| Defines the location of the DACSOURCE bits in the DACCTL register. More...
#define | COMP_DACCTL_RAMPSOURCE_BITS (15 << 1)
| Defines the location of the RAMPSOURCE bits in the DACCTL register. More...
#define | COMP_DACCTL_FREESOFT_BITS (3 << 14)
| Defines the location of the FREE:SOFT bits in the DACCTL register. More...

## Typedefs
typedef struct _COMP_Obj_ | COMP_Obj
| Defines the comparator (COMP) object. More...
typedef struct _COMP_Obj_ * | COMP_Handle
| Defines the comparator (COMP) handle. More...

## Enumerations
enum | COMP_QualSel_e { COMP_QualSel_Sync = (0 << 3), COMP_QualSel_Qual_2 = (1 << 3), COMP_QualSel_Qual_3 = (2 << 3), COMP_QualSel_Qual_4 = (3 << 3), COMP_QualSel_Qual_5 = (3 << 3), COMP_QualSel_Qual_6 = (4 << 3), COMP_QualSel_Qual_7 = (5 << 3), COMP_QualSel_Qual_8 = (6 << 3), COMP_QualSel_Qual_9 = (7 << 3), COMP_QualSel_Qual_10 = (8 << 3), COMP_QualSel_Qual_11 = (9 << 3), COMP_QualSel_Qual_12 = (10 << 3), COMP_QualSel_Qual_13 = (11 << 3), COMP_QualSel_Qual_14 = (12 << 3), COMP_QualSel_Qual_15 = (13 << 3), COMP_QualSel_Qual_16 = (14 << 3), COMP_QualSel_Qual_17 = (15 << 3), COMP_QualSel_Qual_18 = (16 << 3), COMP_QualSel_Qual_19 = (17 << 3), COMP_QualSel_Qual_20 = (18 << 3), COMP_QualSel_Qual_21 = (19 << 3), COMP_QualSel_Qual_22 = (20 << 3), COMP_QualSel_Qual_23 = (21 << 3), COMP_QualSel_Qual_24 = (22 << 3), COMP_QualSel_Qual_25 = (23 << 3), COMP_QualSel_Qual_26 = (24 << 3), COMP_QualSel_Qual_27 = (25 << 3), COMP_QualSel_Qual_28 = (26 << 3), COMP_QualSel_Qual_29 = (27 << 3), COMP_QualSel_Qual_30 = (28 << 3), COMP_QualSel_Qual_31 = (29 << 3), COMP_QualSel_Qual_32 = (30 << 3), COMP_QualSel_Qual_33 = (31 << 3) }
| Enumeration to define the comparator (COMP) output qualification. More...
enum | COMP_RampSyncSrc_e { COMP_RampSyncSrc_PWMSYNC1 = (0 << 1), COMP_RampSyncSrc_PWMSYNC2 = (1 << 1), COMP_RampSyncSrc_PWMSYNC3 = (2 << 1), COMP_RampSyncSrc_PWMSYNC4 = (3 << 1) }
| Enumeration to define the comparator (COMP) ramp generator sync source. More...

## Functions
void | COMP_disable (COMP_Handle compHandle)
| Disables the comparator (COMP) More...
void | COMP_disableDac (COMP_Handle compHandle)
| Disables the DAC. More...
void | COMP_enable (COMP_Handle compHandle)
| Enables the comparator (COMP) More...
void | COMP_enableDac (COMP_Handle compHandle)
| Enables the DAC. More...
COMP_Handle | COMP_init (void *pMemory, const size_t numBytes)
| Initializes the comparator (COMP) object handle. More...
static void | COMP_setDacValue (COMP_Handle compHandle, uint16_t dacValue)
| Sets the DAC's value. More...

## Detailed Description

Contains public interface to various functions related to the comparator (COMP) object.

(C) Copyright 2015, Texas Instruments, Inc.

Definition in file comp.h.