WPILibC++ 2023.4.3-108-ge5452e3
DIOData.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_SetDIOInitialized(int32_t index, HAL_Bool initialized);
22
24
26 HAL_NotifyCallback callback,
27 void* param, HAL_Bool initialNotify);
31
33 HAL_NotifyCallback callback,
34 void* param,
35 HAL_Bool initialNotify);
38void HALSIM_SetDIOPulseLength(int32_t index, double pulseLength);
39
41 HAL_NotifyCallback callback,
42 void* param, HAL_Bool initialNotify);
46
48 HAL_NotifyCallback callback,
49 void* param,
50 HAL_Bool initialNotify);
53void HALSIM_SetDIOFilterIndex(int32_t index, int32_t filterIndex);
54
56 void* param, HAL_Bool initialNotify);
57
58#ifdef __cplusplus
59} // extern "C"
60#endif
void HALSIM_CancelDIOPulseLengthCallback(int32_t index, int32_t uid)
void HALSIM_SetDIOValue(int32_t index, HAL_Bool value)
int32_t HALSIM_RegisterDIOIsInputCallback(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
HAL_Bool HALSIM_GetDIOValue(int32_t index)
void HALSIM_ResetDIOData(int32_t index)
void HALSIM_SetDIOInitialized(int32_t index, HAL_Bool initialized)
int32_t HALSIM_GetDIOFilterIndex(int32_t index)
void HALSIM_SetDIOIsInput(int32_t index, HAL_Bool isInput)
void HALSIM_SetDIOPulseLength(int32_t index, double pulseLength)
void HALSIM_CancelDIOIsInputCallback(int32_t index, int32_t uid)
void HALSIM_CancelDIOInitializedCallback(int32_t index, int32_t uid)
HAL_Bool HALSIM_GetDIOIsInput(int32_t index)
int32_t HALSIM_RegisterDIOPulseLengthCallback(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
void HALSIM_SetDIOFilterIndex(int32_t index, int32_t filterIndex)
void HALSIM_RegisterDIOAllCallbacks(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
double HALSIM_GetDIOPulseLength(int32_t index)
int32_t HALSIM_RegisterDIOFilterIndexCallback(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
int32_t HALSIM_RegisterDIOValueCallback(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
HAL_Bool HALSIM_GetDIOInitialized(int32_t index)
void HALSIM_CancelDIOFilterIndexCallback(int32_t index, int32_t uid)
void HALSIM_CancelDIOValueCallback(int32_t index, int32_t uid)
HAL_SimDeviceHandle HALSIM_GetDIOSimDevice(int32_t index)
int32_t HALSIM_RegisterDIOInitializedCallback(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
void(* HAL_NotifyCallback)(const char *name, void *param, const struct HAL_Value *value)
Definition: NotifyListener.h:9
Definition: core.h:1240
int32_t HAL_Bool
Definition: Types.h:73
HAL_Handle HAL_SimDeviceHandle
Definition: Types.h:53
::int32_t int32_t
Definition: Meta.h:57