|
MotorWare f2806x Driver API Documentation
|
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... | |
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... | |
Contains public interface to various functions related to the comparator (COMP) object.
(C) Copyright 2015, Texas Instruments, Inc.
Definition in file comp.h.
1.8.9.1