WPILibC++ 2024.3.2
AnalogAccumulator.h File Reference
#include <stdint.h>
#include "hal/Types.h"

Go to the source code of this file.

Functions

HAL_Bool HAL_IsAccumulatorChannel (HAL_AnalogInputHandle analogPortHandle, int32_t *status)
 Is the channel attached to an accumulator. More...
 
void HAL_InitAccumulator (HAL_AnalogInputHandle analogPortHandle, int32_t *status)
 Initialize the accumulator. More...
 
void HAL_ResetAccumulator (HAL_AnalogInputHandle analogPortHandle, int32_t *status)
 Resets the accumulator to the initial value. More...
 
void HAL_SetAccumulatorCenter (HAL_AnalogInputHandle analogPortHandle, int32_t center, int32_t *status)
 Set the center value of the accumulator. More...
 
void HAL_SetAccumulatorDeadband (HAL_AnalogInputHandle analogPortHandle, int32_t deadband, int32_t *status)
 Set the accumulator's deadband. More...
 
int64_t HAL_GetAccumulatorValue (HAL_AnalogInputHandle analogPortHandle, int32_t *status)
 Read the accumulated value. More...
 
int64_t HAL_GetAccumulatorCount (HAL_AnalogInputHandle analogPortHandle, int32_t *status)
 Read the number of accumulated values. More...
 
void HAL_GetAccumulatorOutput (HAL_AnalogInputHandle analogPortHandle, int64_t *value, int64_t *count, int32_t *status)
 Read the accumulated value and the number of accumulated values atomically. More...