171 HAL_Bool highSemiPeriod, int32_t* status);
185 double threshold, int32_t* status);
209 int32_t samplesToAverage, int32_t* status);
324 HAL_Bool reverseDirection, int32_t* status);
@ HAL_ENUM
Definition: Value.h:14
HAL_AnalogTriggerType
The type of analog trigger to trigger on.
Definition: AnalogTrigger.h:20
void HAL_SetCounterUpDownMode(HAL_CounterHandle counterHandle, int32_t *status)
Sets standard up / down counting mode on this counter.
void HAL_SetCounterAverageSize(HAL_CounterHandle counterHandle, int32_t size, int32_t *status)
Sets the average sample size of a counter.
HAL_Counter_Mode
The counter mode.
Definition: Counter.h:21
void HAL_SetCounterUpSourceEdge(HAL_CounterHandle counterHandle, HAL_Bool risingEdge, HAL_Bool fallingEdge, int32_t *status)
Sets the up source to either detect rising edges or falling edges.
void HAL_SetCounterReverseDirection(HAL_CounterHandle counterHandle, HAL_Bool reverseDirection, int32_t *status)
Sets the Counter to return reversed sensing on the direction.
void HAL_SetCounterExternalDirectionMode(HAL_CounterHandle counterHandle, int32_t *status)
Sets directional counting mode on this counter.
void HAL_ClearCounterUpSource(HAL_CounterHandle counterHandle, int32_t *status)
Disables the up counting source to the counter.
void HAL_SetCounterSemiPeriodMode(HAL_CounterHandle counterHandle, HAL_Bool highSemiPeriod, int32_t *status)
Sets Semi-period mode on this counter.
HAL_CounterHandle HAL_InitializeCounter(HAL_Counter_Mode mode, int32_t *index, int32_t *status)
Initializes a counter.
HAL_Bool HAL_GetCounterStopped(HAL_CounterHandle counterHandle, int32_t *status)
Determines if the clock is stopped.
void HAL_SetCounterUpdateWhenEmpty(HAL_CounterHandle counterHandle, HAL_Bool enabled, int32_t *status)
Selects whether you want to continue updating the event timer output when there are no samples captur...
void HAL_FreeCounter(HAL_CounterHandle counterHandle, int32_t *status)
Frees a counter.
void HAL_ResetCounter(HAL_CounterHandle counterHandle, int32_t *status)
Resets the Counter to zero.
int32_t HAL_GetCounterSamplesToAverage(HAL_CounterHandle counterHandle, int32_t *status)
Gets the Samples to Average which specifies the number of samples of the timer to average when calcul...
void HAL_SetCounterDownSourceEdge(HAL_CounterHandle counterHandle, HAL_Bool risingEdge, HAL_Bool fallingEdge, int32_t *status)
Sets the down source to either detect rising edges or falling edges.
void HAL_SetCounterDownSource(HAL_CounterHandle counterHandle, HAL_Handle digitalSourceHandle, HAL_AnalogTriggerType analogTriggerType, int32_t *status)
Sets the source object that causes the counter to count down.
void HAL_SetCounterMaxPeriod(HAL_CounterHandle counterHandle, double maxPeriod, int32_t *status)
Sets the maximum period where the device is still considered "moving".
void HAL_SetCounterPulseLengthMode(HAL_CounterHandle counterHandle, double threshold, int32_t *status)
Configures the counter to count in up or down based on the length of the input pulse.
void HAL_SetCounterUpSource(HAL_CounterHandle counterHandle, HAL_Handle digitalSourceHandle, HAL_AnalogTriggerType analogTriggerType, int32_t *status)
Sets the source object that causes the counter to count up.
double HAL_GetCounterPeriod(HAL_CounterHandle counterHandle, int32_t *status)
Gets the Period of the most recent count.
void HAL_SetCounterSamplesToAverage(HAL_CounterHandle counterHandle, int32_t samplesToAverage, int32_t *status)
Sets the Samples to Average which specifies the number of samples of the timer to average when calcul...
int32_t HAL_GetCounter(HAL_CounterHandle counterHandle, int32_t *status)
Reads the current counter value.
void HAL_ClearCounterDownSource(HAL_CounterHandle counterHandle, int32_t *status)
Disables the down counting source to the counter.
HAL_Bool HAL_GetCounterDirection(HAL_CounterHandle counterHandle, int32_t *status)
Gets the last direction the counter value changed.
@ HAL_Counter_kExternalDirection
Definition: Counter.h:25
@ HAL_Counter_kTwoPulse
Definition: Counter.h:22
@ HAL_Counter_kSemiperiod
Definition: Counter.h:23
@ HAL_Counter_kPulseLength
Definition: Counter.h:24
int32_t HAL_Bool
Definition: Types.h:73
int32_t HAL_Handle
Definition: Types.h:17
HAL_Handle HAL_CounterHandle
Definition: Types.h:29