WPILibC++ 2024.3.2
AnalogTriggerData.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
15};
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
21int32_t HALSIM_FindAnalogTriggerForChannel(int32_t channel);
22
25 int32_t index, HAL_NotifyCallback callback, void* param,
26 HAL_Bool initialNotify);
27void HALSIM_CancelAnalogTriggerInitializedCallback(int32_t index, int32_t uid);
29void HALSIM_SetAnalogTriggerInitialized(int32_t index, HAL_Bool initialized);
30
32 int32_t index, HAL_NotifyCallback callback, void* param,
33 HAL_Bool initialNotify);
35 int32_t uid);
38 double triggerLowerBound);
39
41 int32_t index, HAL_NotifyCallback callback, void* param,
42 HAL_Bool initialNotify);
44 int32_t uid);
47 double triggerUpperBound);
48
50 int32_t index, HAL_NotifyCallback callback, void* param,
51 HAL_Bool initialNotify);
52void HALSIM_CancelAnalogTriggerTriggerModeCallback(int32_t index, int32_t uid);
55 HALSIM_AnalogTriggerMode triggerMode);
56
58 HAL_NotifyCallback callback,
59 void* param,
60 HAL_Bool initialNotify);
61
62#ifdef __cplusplus
63} // extern "C"
64#endif
int32_t HALSIM_RegisterAnalogTriggerTriggerUpperBoundCallback(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
void HALSIM_SetAnalogTriggerTriggerMode(int32_t index, HALSIM_AnalogTriggerMode triggerMode)
int32_t HALSIM_RegisterAnalogTriggerInitializedCallback(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
void HALSIM_SetAnalogTriggerInitialized(int32_t index, HAL_Bool initialized)
HALSIM_AnalogTriggerMode HALSIM_GetAnalogTriggerTriggerMode(int32_t index)
void HALSIM_CancelAnalogTriggerTriggerUpperBoundCallback(int32_t index, int32_t uid)
int32_t HALSIM_FindAnalogTriggerForChannel(int32_t channel)
void HALSIM_CancelAnalogTriggerInitializedCallback(int32_t index, int32_t uid)
void HALSIM_SetAnalogTriggerTriggerLowerBound(int32_t index, double triggerLowerBound)
double HALSIM_GetAnalogTriggerTriggerUpperBound(int32_t index)
int32_t HALSIM_RegisterAnalogTriggerTriggerModeCallback(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
void HALSIM_CancelAnalogTriggerTriggerModeCallback(int32_t index, int32_t uid)
double HALSIM_GetAnalogTriggerTriggerLowerBound(int32_t index)
HAL_Bool HALSIM_GetAnalogTriggerInitialized(int32_t index)
void HALSIM_ResetAnalogTriggerData(int32_t index)
void HALSIM_SetAnalogTriggerTriggerUpperBound(int32_t index, double triggerUpperBound)
int32_t HALSIM_RegisterAnalogTriggerTriggerLowerBoundCallback(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
void HALSIM_CancelAnalogTriggerTriggerLowerBoundCallback(int32_t index, int32_t uid)
void HALSIM_RegisterAnalogTriggerAllCallbacks(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
HALSIM_AnalogTriggerMode
Definition: AnalogTriggerData.h:10
@ HALSIM_AnalogTriggerAveraged
Definition: AnalogTriggerData.h:14
@ HALSIM_AnalogTriggerFiltered
Definition: AnalogTriggerData.h:12
@ HALSIM_AnalogTriggerDutyCycle
Definition: AnalogTriggerData.h:13
@ HALSIM_AnalogTriggerUnassigned
Definition: AnalogTriggerData.h:11
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