#include "chip.h"#include "acc.h"Go to the source code of this file.
Functions | |
| void | ACC_Configure (Acc *pAcc, uint8_t idAcc, uint8_t ucSelplus, uint8_t ucSelminus, uint16_t wAc_en, uint16_t wEdge, uint16_t wInvert) |
| Initialize the ACC controller. | |
| void | ACC_SetComparisonPair (Acc *pAcc, uint8_t ucSelplus, uint8_t ucSelminus) |
| uint32_t | ACC_GetComparisonResult (Acc *pAcc, uint32_t dwStatus) |
Implementation of Analog Comparator Controller (ACC).
Definition in file acc.c.
| void ACC_Configure | ( | Acc * | pAcc, | |
| uint8_t | idAcc, | |||
| uint8_t | ucSelplus, | |||
| uint8_t | ucSelminus, | |||
| uint16_t | wAc_en, | |||
| uint16_t | wEdge, | |||
| uint16_t | wInvert | |||
| ) |
Initialize the ACC controller.
| pAcc | Pointer to an Acc instance. | |
| idAcc | ACC identifier | |
| ucSelplus | input connected to inp, 0~7 | |
| ucSelminus | input connected to inm,0~7 | |
| wAc_en | Analog comparator enabled/disabled | |
| wEdge | CF flag triggering mode | |
| wInvert | INVert comparator output,use pattern defined in the device header file |
| uint32_t ACC_GetComparisonResult | ( | Acc * | pAcc, | |
| uint32_t | dwStatus | |||
| ) |
1.7.1