![]() |
WPILibC++ 2027.0.0-alpha-2
|
Go to the source code of this file.
Functions | |
HAL_CounterHandle | HAL_InitializeCounter (int channel, HAL_Bool risingEdge, const char *allocationLocation, int32_t *status) |
Initializes a counter. | |
void | HAL_FreeCounter (HAL_CounterHandle counterHandle) |
Frees a counter. | |
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_ResetCounter (HAL_CounterHandle counterHandle, int32_t *status) |
Resets the Counter to zero. | |
int32_t | HAL_GetCounter (HAL_CounterHandle counterHandle, int32_t *status) |
Reads the current counter value. | |
double | HAL_GetCounterPeriod (HAL_CounterHandle counterHandle, int32_t *status) |
Gets the Period of the most recent count. | |
void | HAL_SetCounterMaxPeriod (HAL_CounterHandle counterHandle, double maxPeriod, int32_t *status) |
Sets the maximum period where the device is still considered "moving". | |
HAL_Bool | HAL_GetCounterStopped (HAL_CounterHandle counterHandle, int32_t *status) |
Determines if the clock is stopped. | |