mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
37 lines
1.6 KiB
C
37 lines
1.6 KiB
C
/*----------------------------------------------------------------------------*/
|
|
/* Copyright (c) FIRST 2016. All Rights Reserved. */
|
|
/* Open Source Software - may be modified and shared by FRC teams. The code */
|
|
/* must be accompanied by the FIRST BSD license file in the root directory of */
|
|
/* the project. */
|
|
/*----------------------------------------------------------------------------*/
|
|
|
|
#pragma once
|
|
|
|
#include <stdint.h>
|
|
|
|
#include "HAL/Types.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
HAL_Bool HAL_IsAccumulatorChannel(HAL_AnalogInputHandle analogPortHandle,
|
|
int32_t* status);
|
|
void HAL_InitAccumulator(HAL_AnalogInputHandle analogPortHandle,
|
|
int32_t* status);
|
|
void HAL_ResetAccumulator(HAL_AnalogInputHandle analogPortHandle,
|
|
int32_t* status);
|
|
void HAL_SetAccumulatorCenter(HAL_AnalogInputHandle analogPortHandle,
|
|
int32_t center, int32_t* status);
|
|
void HAL_SetAccumulatorDeadband(HAL_AnalogInputHandle analogPortHandle,
|
|
int32_t deadband, int32_t* status);
|
|
int64_t HAL_GetAccumulatorValue(HAL_AnalogInputHandle analogPortHandle,
|
|
int32_t* status);
|
|
int64_t HAL_GetAccumulatorCount(HAL_AnalogInputHandle analogPortHandle,
|
|
int32_t* status);
|
|
void HAL_GetAccumulatorOutput(HAL_AnalogInputHandle analogPortHandle,
|
|
int64_t* value, int64_t* count, int32_t* status);
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|