7.2.11 Function acc_set_output()
Set the ACC output.
void acc_set_output( Acc * p_acc, uint32_t ul_invert, uint32_t ul_fault_enable, uint32_t ul_fault_source)
| Data direction | Parameter name | Description |
|---|---|---|
[in, out] | p_acc |
Module hardware register base address pointer |
[in] | ul_invert |
Invert comparator output |
[in] | ul_fault_enable |
Fault enable |
[in] | ul_fault_source |
Selection of fault source |
Parameter Value | Description |
|---|---|
ACC_MR_INV_DIS | Comparator output is directly processed |
ACC_MR_INV_EN | Comparator output is inverted prior to being processed |
Parameter Value | Description |
|---|---|
ACC_MR_FE_DIS | The FAULT output is tied to 0 |
ACC_MR_FE_EN | The FAULT output is driven by ul_fault_source |
Parameter Value | Description |
|---|---|
ACC_MR_SELFS_CF | The CF flag is used to drive the FAULT output |
ACC_MR_SELFS_OUTPUT | The output of the Analog Comparator flag is used to drive the FAULT output |
