RTEMS
5.1
|
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. More... | |
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).
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 | ||
) |
Return Comparison Result
pAcc | Pointer to an Acc instance. |
dwStatus | value of ACC_ISR |