|
MotorWare f2806x Driver API Documentation
|
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... | |
| struct _COMP_Obj_ |
| #define COMP1_BASE_ADDR (0x00006400) |
| #define COMP2_BASE_ADDR (0x00006420) |
| #define COMP3_BASE_ADDR (0x00006440) |
| #define COMP_COMPCTL_CMPINV_BITS (1 << 2) |
| #define COMP_COMPCTL_COMPDACE_BITS (1 << 0) |
Defines the location of the COMPDACE bits in the COMPCTL register.
Definition at line 80 of file comp.h.
Referenced by COMP_disable(), and COMP_enable().
| #define COMP_COMPCTL_COMPSOURCE_BITS (1 << 1) |
Defines the location of the COMPSOURCE bits in the COMPCTL register.
Definition at line 84 of file comp.h.
Referenced by COMP_disableDac(), and COMP_enableDac().
| #define COMP_COMPCTL_QUALSEL_BITS (31 << 3) |
| #define COMP_COMPCTL_SYNCSEL_BITS (1 << 8) |
| #define COMP_COMPSTS_COMPSTS_BITS (1 << 0) |
| #define COMP_DACCTL_DACSOURCE_BITS (1 << 0) |
| #define COMP_DACCTL_FREESOFT_BITS (3 << 14) |
| #define COMP_DACCTL_RAMPSOURCE_BITS (15 << 1) |
| typedef struct _COMP_Obj_* COMP_Handle |
| typedef struct _COMP_Obj_ COMP_Obj |
Defines the comparator (COMP) object.
| enum COMP_QualSel_e |
Enumeration to define the comparator (COMP) output qualification.
| enum COMP_RampSyncSrc_e |
| void COMP_disable | ( | COMP_Handle | compHandle | ) |
Disables the comparator (COMP)
| [in] | compHandle | The comparator (COMP) object handle |
Definition at line 60 of file comp.c.
References COMP_COMPCTL_COMPDACE_BITS, _COMP_Obj_::COMPCTL, DISABLE_PROTECTED_REGISTER_WRITE_MODE, and ENABLE_PROTECTED_REGISTER_WRITE_MODE.
| void COMP_disableDac | ( | COMP_Handle | compHandle | ) |
Disables the DAC.
| [in] | compHandle | The comparator (COMP) object handle |
Definition at line 75 of file comp.c.
References COMP_COMPCTL_COMPSOURCE_BITS, _COMP_Obj_::COMPCTL, DISABLE_PROTECTED_REGISTER_WRITE_MODE, and ENABLE_PROTECTED_REGISTER_WRITE_MODE.
| void COMP_enable | ( | COMP_Handle | compHandle | ) |
Enables the comparator (COMP)
| [in] | compHandle | The comparator (COMP) object handle |
Definition at line 90 of file comp.c.
References COMP_COMPCTL_COMPDACE_BITS, _COMP_Obj_::COMPCTL, DISABLE_PROTECTED_REGISTER_WRITE_MODE, and ENABLE_PROTECTED_REGISTER_WRITE_MODE.
| void COMP_enableDac | ( | COMP_Handle | compHandle | ) |
Enables the DAC.
| [in] | compHandle | The comparator (COMP) object handle |
Definition at line 105 of file comp.c.
References COMP_COMPCTL_COMPSOURCE_BITS, _COMP_Obj_::COMPCTL, DISABLE_PROTECTED_REGISTER_WRITE_MODE, and ENABLE_PROTECTED_REGISTER_WRITE_MODE.
| COMP_Handle COMP_init | ( | void * | pMemory, |
| const size_t | numBytes | ||
| ) |
|
inlinestatic |
Sets the DAC's value.
| [in] | compHandle | The comparator (COMP) object handle |
| [in] | dacValue | The DAC's value |
Definition at line 237 of file comp.h.
References _COMP_Obj_::DACVAL.
1.8.9.1