The Signal polarity component represents the active level of a respective Signal. There are two possible states: positive (rising edge) and negative (falling edge); enum counter_signal_polarity represents these states. A convenience macro COUNTER_COMP_POLARITY() is provided for driver authors to declare a Signal polarity component.
Showing the changes to include/uapi (1 of 5 files). Show all
Unified · Split
| @@ -153,4 +153,10 @@ enum counter_synapse_action { · 152 unmodified lines | |||
| 153 | COUNTER_SYNAPSE_ACTION_BOTH_EDGES, | 153 | COUNTER_SYNAPSE_ACTION_BOTH_EDGES, |
| 154 | }; | 154 | }; |
| 155 | 155 | ||
| 156 | /* Signal polarity values */ | ||
| 157 | enum counter_signal_polarity { | ||
| 158 | COUNTER_SIGNAL_POLARITY_POSITIVE, | ||
| 159 | COUNTER_SIGNAL_POLARITY_NEGATIVE, | ||
| 160 | }; | ||
| 161 | |||
| 156 | #endif /* _UAPI_COUNTER_H_ */ | 162 | #endif /* _UAPI_COUNTER_H_ */ |