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)

Table 1. Parameters
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

Where the input parameter ul_invert is one of the following:

Parameter Value

Description

ACC_MR_INV_DIS

Comparator output is directly processed

ACC_MR_INV_EN

Comparator output is inverted prior to being processed

Where the input parameter ul_fault_enable is one of the following:

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

Where the input parameter ul_fault_source is one of the following:

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