WPILibC++ 2023.4.3-108-ge5452e3
AnalogInData.h
Go to the documentation of this file.
1// Copyright (c) FIRST and other WPILib contributors.
2// Open Source Software; you can modify and/or share it under the terms of
3// the WPILib BSD license file in the root directory of this project.
4
5#pragma once
6
7#include "hal/Types.h"
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
16 HAL_NotifyCallback callback,
17 void* param,
18 HAL_Bool initialNotify);
22
24
26 HAL_NotifyCallback callback,
27 void* param,
28 HAL_Bool initialNotify);
32
34 int32_t index, HAL_NotifyCallback callback, void* param,
35 HAL_Bool initialNotify);
39
41 HAL_NotifyCallback callback,
42 void* param,
43 HAL_Bool initialNotify);
46void HALSIM_SetAnalogInVoltage(int32_t index, double voltage);
47
49 int32_t index, HAL_NotifyCallback callback, void* param,
50 HAL_Bool initialNotify);
52 int32_t uid);
55 HAL_Bool accumulatorInitialized);
56
58 int32_t index, HAL_NotifyCallback callback, void* param,
59 HAL_Bool initialNotify);
63 int64_t accumulatorValue);
64
66 int32_t index, HAL_NotifyCallback callback, void* param,
67 HAL_Bool initialNotify);
71 int64_t accumulatorCount);
72
74 int32_t index, HAL_NotifyCallback callback, void* param,
75 HAL_Bool initialNotify);
79 int32_t accumulatorCenter);
80
82 int32_t index, HAL_NotifyCallback callback, void* param,
83 HAL_Bool initialNotify);
85 int32_t uid);
88 int32_t accumulatorDeadband);
89
91 HAL_NotifyCallback callback,
92 void* param, HAL_Bool initialNotify);
93
94#ifdef __cplusplus
95} // extern "C"
96#endif
void HALSIM_CancelAnalogInAccumulatorValueCallback(int32_t index, int32_t uid)
HAL_SimDeviceHandle HALSIM_GetAnalogInSimDevice(int32_t index)
int32_t HALSIM_RegisterAnalogInAccumulatorCenterCallback(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
void HALSIM_CancelAnalogInAccumulatorCenterCallback(int32_t index, int32_t uid)
int32_t HALSIM_GetAnalogInAverageBits(int32_t index)
void HALSIM_CancelAnalogInAccumulatorDeadbandCallback(int32_t index, int32_t uid)
int32_t HALSIM_RegisterAnalogInInitializedCallback(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
void HALSIM_CancelAnalogInAverageBitsCallback(int32_t index, int32_t uid)
HAL_Bool HALSIM_GetAnalogInAccumulatorInitialized(int32_t index)
void HALSIM_RegisterAnalogInAllCallbacks(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
int32_t HALSIM_RegisterAnalogInVoltageCallback(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
HAL_Bool HALSIM_GetAnalogInInitialized(int32_t index)
void HALSIM_CancelAnalogInAccumulatorInitializedCallback(int32_t index, int32_t uid)
int32_t HALSIM_RegisterAnalogInAccumulatorCountCallback(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
void HALSIM_CancelAnalogInOversampleBitsCallback(int32_t index, int32_t uid)
void HALSIM_ResetAnalogInData(int32_t index)
void HALSIM_SetAnalogInAverageBits(int32_t index, int32_t averageBits)
int64_t HALSIM_GetAnalogInAccumulatorValue(int32_t index)
int32_t HALSIM_RegisterAnalogInAccumulatorValueCallback(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
int64_t HALSIM_GetAnalogInAccumulatorCount(int32_t index)
double HALSIM_GetAnalogInVoltage(int32_t index)
void HALSIM_SetAnalogInAccumulatorCenter(int32_t index, int32_t accumulatorCenter)
int32_t HALSIM_RegisterAnalogInOversampleBitsCallback(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
void HALSIM_CancelAnalogInVoltageCallback(int32_t index, int32_t uid)
void HALSIM_SetAnalogInAccumulatorCount(int32_t index, int64_t accumulatorCount)
int32_t HALSIM_GetAnalogInAccumulatorDeadband(int32_t index)
void HALSIM_SetAnalogInAccumulatorValue(int32_t index, int64_t accumulatorValue)
void HALSIM_CancelAnalogInAccumulatorCountCallback(int32_t index, int32_t uid)
void HALSIM_CancelAnalogInInitializedCallback(int32_t index, int32_t uid)
void HALSIM_SetAnalogInInitialized(int32_t index, HAL_Bool initialized)
void HALSIM_SetAnalogInAccumulatorDeadband(int32_t index, int32_t accumulatorDeadband)
int32_t HALSIM_GetAnalogInAccumulatorCenter(int32_t index)
void HALSIM_SetAnalogInVoltage(int32_t index, double voltage)
int32_t HALSIM_RegisterAnalogInAverageBitsCallback(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
int32_t HALSIM_RegisterAnalogInAccumulatorInitializedCallback(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
int32_t HALSIM_RegisterAnalogInAccumulatorDeadbandCallback(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
void HALSIM_SetAnalogInAccumulatorInitialized(int32_t index, HAL_Bool accumulatorInitialized)
int32_t HALSIM_GetAnalogInOversampleBits(int32_t index)
void HALSIM_SetAnalogInOversampleBits(int32_t index, int32_t oversampleBits)
void(* HAL_NotifyCallback)(const char *name, void *param, const struct HAL_Value *value)
Definition: NotifyListener.h:9
int32_t HAL_Bool
Definition: Types.h:73
HAL_Handle HAL_SimDeviceHandle
Definition: Types.h:53
::int32_t int32_t
Definition: Meta.h:57
::int64_t int64_t
Definition: Meta.h:59