This section describes functions and macros of the driver's API.
#define CMP_Enable |
( |
|
module | ) |
|
This macro enables specified comparator module.
- Parameters
-
- Note
- Implemented as an inline macro.
#define CMP_Disable |
( |
|
module | ) |
|
This macro disables specified comparator module.
- Parameters
-
- Note
- Implemented as an inline macro.
#define CMP_MuxCtrl |
( |
|
module, |
|
|
|
psel, |
|
|
|
msel |
|
) |
| |
This macro controls plus and minus multiplexer inputs. It determines which analogue signals are interconnected to the plus and minus inputs of the specified comparator module.
- Parameters
-
- Note
- Implemented as an inline macro.
#define CMP_GetOutput |
( |
|
module | ) |
|
This macro returns the current value of the analog comparator output.
- Parameters
-
- Returns
- true (non-zero) comparator output asserted (logic 1),
-
false comparator output de-asserted (logic 0).
- Note
- Implemented as an inline macro.
#define CMP_InstallCallback |
( |
|
ip, |
|
|
|
callback |
|
) |
| |
This function installs callback function for CMP0 and CMP1 interrupt vector 30.
- Parameters
-
- Note
- Implemented as a function call.
- Warning
- CMP0 and CMP1 interrupt sources are OR'ed into single interrupt vector.
- See also
- CMP_Init
#define CMP_Init |
( |
|
module, |
|
|
|
cfg, |
|
|
|
psel, |
|
|
|
msel |
|
) |
| |
This function initializes selected comparator module
- Parameters
-
- Note
- Implemented as a function call.
- See also
- CMP_InstallCallback