Macros
event codes that can be passed into the event

Macros

#define Comparator_EVENT_RESERVED   (32)
 
#define Comparator_EVENT_OUTPUT_TRIGGERED   (1)
 The comparator output triggered in the positive direction. More...
 
#define Comparator_EVENT_OUTPUT_INVERTED_TRIGGERED   (2)
 The comparator output triggered in the inverted direction. More...
 
#define Comparator_EVENT_ERROR   (-1)
 An error occurred with the underlying comparator driver. More...
 

Detailed Description

parameter of the driver callback.

Macro Definition Documentation

§ Comparator_EVENT_RESERVED

#define Comparator_EVENT_RESERVED   (32)

Common Comparator event code reservation offset. Comparator driver implementations should offset event codes with Comparator_EVENT_RESERVED growing positively.

Example implementation specific event codes:

#define ComparatorXYZ_EVENT_EVENT0 Comparator_EVENT_RESERVED + 0
#define ComparatorXYZ_EVENT_EVENT1 Comparator_EVENT_RESERVED + 1

§ Comparator_EVENT_OUTPUT_TRIGGERED

#define Comparator_EVENT_OUTPUT_TRIGGERED   (1)

The comparator output triggered in the positive direction.

Callback function called with Comparator_EVENT_OUTPUT_TRIGGERED if the comparator triggered in the positive direction.

§ Comparator_EVENT_OUTPUT_INVERTED_TRIGGERED

#define Comparator_EVENT_OUTPUT_INVERTED_TRIGGERED   (2)

The comparator output triggered in the inverted direction.

Callback function called with Comparator_EVENT_OUTPUT_INVERTED_TRIGGERED if the comparator triggered in the negative direction.

§ Comparator_EVENT_ERROR

#define Comparator_EVENT_ERROR   (-1)

An error occurred with the underlying comparator driver.

Callback function called with Comparator_EVENT_ERROR if an error happened in the operation of the driver.

© Copyright 1995-2019, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale