33 const char* allocationLocation,
53 HAL_Bool risingEdge, int32_t* status);
void HAL_SetCounterEdgeConfiguration(HAL_CounterHandle counterHandle, HAL_Bool risingEdge, int32_t *status)
Sets the up source to either detect rising edges or falling edges.
void HAL_FreeCounter(HAL_CounterHandle counterHandle)
Frees a counter.
HAL_Bool HAL_GetCounterStopped(HAL_CounterHandle counterHandle, int32_t *status)
Determines if the clock is stopped.
void HAL_ResetCounter(HAL_CounterHandle counterHandle, int32_t *status)
Resets the Counter to zero.
void HAL_SetCounterMaxPeriod(HAL_CounterHandle counterHandle, double maxPeriod, int32_t *status)
Sets the maximum period where the device is still considered "moving".
HAL_CounterHandle HAL_InitializeCounter(int channel, HAL_Bool risingEdge, const char *allocationLocation, int32_t *status)
Initializes a counter.
double HAL_GetCounterPeriod(HAL_CounterHandle counterHandle, int32_t *status)
Gets the Period of the most recent count.
int32_t HAL_GetCounter(HAL_CounterHandle counterHandle, int32_t *status)
Reads the current counter value.
int32_t HAL_Bool
Definition Types.h:73
HAL_Handle HAL_CounterHandle
Definition Types.h:27