WPILibC++ 2027.0.0-alpha-2
Loading...
Searching...
No Matches
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);
21void HALSIM_SetAnalogInInitialized(int32_t index, HAL_Bool initialized);
22
24
26 HAL_NotifyCallback callback,
27 void* param,
28 HAL_Bool initialNotify);
31void HALSIM_SetAnalogInAverageBits(int32_t index, int32_t averageBits);
32
34 int32_t index, HAL_NotifyCallback callback, void* param,
35 HAL_Bool initialNotify);
38void HALSIM_SetAnalogInOversampleBits(int32_t index, int32_t oversampleBits);
39
41 HAL_NotifyCallback callback,
42 void* param,
43 HAL_Bool initialNotify);
46void HALSIM_SetAnalogInVoltage(int32_t index, double voltage);
47
49 HAL_NotifyCallback callback,
50 void* param, HAL_Bool initialNotify);
51
52#ifdef __cplusplus
53} // extern "C"
54#endif
HAL_SimDeviceHandle HALSIM_GetAnalogInSimDevice(int32_t index)
int32_t HALSIM_GetAnalogInAverageBits(int32_t index)
int32_t HALSIM_RegisterAnalogInInitializedCallback(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
void HALSIM_CancelAnalogInAverageBitsCallback(int32_t index, int32_t uid)
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_CancelAnalogInOversampleBitsCallback(int32_t index, int32_t uid)
void HALSIM_ResetAnalogInData(int32_t index)
void HALSIM_SetAnalogInAverageBits(int32_t index, int32_t averageBits)
double HALSIM_GetAnalogInVoltage(int32_t index)
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_CancelAnalogInInitializedCallback(int32_t index, int32_t uid)
void HALSIM_SetAnalogInInitialized(int32_t index, HAL_Bool initialized)
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_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:51