![]() |
![]() |
|
CC23x0R5DriverLibrary
|
#include <stdbool.h>#include <stdint.h>#include "../inc/hw_types.h"#include "../inc/hw_memmap.h"#include "../inc/hw_sys0.h"

Go to the source code of this file.
Macros | |
| #define | LPCMP_DIVISION_PATH_N SYS0_LPCMPCFG_DIVPATH_NSIDE |
| Apply voltage divider to the negative input. More... | |
| #define | LPCMP_DIVISION_PATH_P SYS0_LPCMPCFG_DIVPATH_PSIDE |
| Apply voltage divider to the positive input. More... | |
| #define | LPCMP_DIVISION_FACTOR_1_1 SYS0_LPCMPCFG_DIV_VAL0 |
| Apply a 1/1 voltage division ratio. More... | |
| #define | LPCMP_DIVISION_FACTOR_3_4 SYS0_LPCMPCFG_DIV_VAL1 |
| Apply a 3/4 voltage division ratio. More... | |
| #define | LPCMP_DIVISION_FACTOR_1_2 SYS0_LPCMPCFG_DIV_VAL2 |
| Apply a 1/2 voltage division ratio. More... | |
| #define | LPCMP_DIVISION_FACTOR_1_3 SYS0_LPCMPCFG_DIV_VAL3 |
| Apply a 1/3 voltage division ratio. More... | |
| #define | LPCMP_DIVISION_FACTOR_1_4 SYS0_LPCMPCFG_DIV_VAL4 |
| Apply a 1/4 voltage division ratio. More... | |
| #define | LPCMP_POLARITY_FALL SYS0_LPCMPCFG_EDGCFG_FALL |
| Select falling edge for event generation. More... | |
| #define | LPCMP_POLARITY_RISE SYS0_LPCMPCFG_EDGCFG_RISE |
| Select rising edge for event generation. More... | |
| #define | LPCMP_NEG_INPUT_VDDD SYS0_LPCMPCFG_NSEL_VDDD |
| Select VDDD as negative input. More... | |
| #define | LPCMP_NEG_INPUT_VDDS SYS0_LPCMPCFG_NSEL_VDDA |
| Select VDDS(VDDA) as negative input. More... | |
| #define | LPCMP_NEG_INPUT_A2 SYS0_LPCMPCFG_NSEL_VA_PAD_A2 |
| Select PAD_A2 as negative input. More... | |
| #define | LPCMP_NEG_INPUT_A3 SYS0_LPCMPCFG_NSEL_VA_PAD_A3 |
| Select PAD_A3 as negative input. More... | |
| #define | LPCMP_NEG_INPUT_OPEN SYS0_LPCMPCFG_NSEL_OPEN |
| Leave negative input floating. More... | |
| #define | LPCMP_POS_INPUT_A1 SYS0_LPCMPCFG_PSEL_VA_PAD_A1 |
| Select PAD_A1 as positive input. More... | |
| #define | LPCMP_POS_INPUT_A2 SYS0_LPCMPCFG_PSEL_VA_PAD_A2 |
| Select PAD_A2 as positive input. More... | |
| #define | LPCMP_POS_INPUT_A3 SYS0_LPCMPCFG_PSEL_VA_PAD_A3 |
| Select PAD_A3 as positive input. More... | |
| #define | LPCMP_POS_INPUT_VDDS SYS0_LPCMPCFG_PSEL_VDDA |
| Selects VDDS(VDDA) as positive input. More... | |
| #define | LPCMP_POS_INPUT_OPEN SYS0_LPCMPCFG_PSEL_OPEN |
| Leave negative positive floating. More... | |
Functions | |
| __STATIC_INLINE void | LPCMPEnable (void) |
| Enables LPCMP. More... | |
| __STATIC_INLINE void | LPCMPDisable (void) |
| Disables LPCMP. More... | |
| __STATIC_INLINE void | LPCMPEnableEvent (void) |
| Enables LPCMP event generation. More... | |
| __STATIC_INLINE void | LPCMPDisableEvent (void) |
| Disables LPCMP event generation. More... | |
| __STATIC_INLINE void | LPCMPClearEvent (void) |
| Clear LPCMP event flag. More... | |
| __STATIC_INLINE void | LPCMPEnableWakeup (void) |
| Enables LPCMP as wakeup source from standby. More... | |
| __STATIC_INLINE void | LPCMPDisableWakeup (void) |
| Disables LPCMP as wakeup source from standby. More... | |
| __STATIC_INLINE void | LPCMPSelectNegativeInput (uint32_t input) |
| Selects the negative input of LPCMP. More... | |
| __STATIC_INLINE bool | LPCMPIsOutputHigh (void) |
| Verifies if the raw output of LPCMP is high. More... | |
| __STATIC_INLINE void | LPCMPSelectPositiveInput (uint32_t input) |
| Selects the positive input of LPCMP. More... | |
| __STATIC_INLINE void | LPCMPSetPolarity (uint32_t polarity) |
| Selects the edge polarity of LPCMP output on which an event is triggered. More... | |
| __STATIC_INLINE void | LPCMPSetDividerRatio (uint32_t divider) |
| Selects the ratio used by LPCMP voltage divider. More... | |
| __STATIC_INLINE void | LPCMPSetDividerPath (uint32_t path) |
| Selects the input path on which the LPCMP voltage divider is applied. More... | |