WPILibC++ 2023.4.3-108-ge5452e3
REVPHData.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/REVPH.h"
8#include "hal/Types.h"
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
17 HAL_NotifyCallback callback,
18 void* param,
19 HAL_Bool initialNotify);
22void HALSIM_SetREVPHInitialized(int32_t index, HAL_Bool solenoidInitialized);
23
25 int32_t channel,
26 HAL_NotifyCallback callback,
27 void* param,
28 HAL_Bool initialNotify);
30 int32_t uid);
33 HAL_Bool solenoidOutput);
34
36 HAL_NotifyCallback callback,
37 void* param,
38 HAL_Bool initialNotify);
42
44 int32_t index, HAL_NotifyCallback callback, void* param,
45 HAL_Bool initialNotify);
48 int32_t index);
50 int32_t index, HAL_REVPHCompressorConfigType configType);
51
53 HAL_NotifyCallback callback,
54 void* param,
55 HAL_Bool initialNotify);
59
61 int32_t index, HAL_NotifyCallback callback, void* param,
62 HAL_Bool initialNotify);
65void HALSIM_SetREVPHCompressorCurrent(int32_t index, double compressorCurrent);
66
69
71 HAL_NotifyCallback callback,
72 void* param,
73 HAL_Bool initialNotify);
74
76 HAL_NotifyCallback callback,
77 void* param,
78 HAL_Bool initialNotify);
79
80#ifdef __cplusplus
81} // extern "C"
82#endif
void(* HAL_NotifyCallback)(const char *name, void *param, const struct HAL_Value *value)
Definition: NotifyListener.h:9
double HALSIM_GetREVPHCompressorCurrent(int32_t index)
HAL_Bool HALSIM_GetREVPHPressureSwitch(int32_t index)
void HALSIM_SetREVPHInitialized(int32_t index, HAL_Bool solenoidInitialized)
void HALSIM_RegisterREVPHAllSolenoidCallbacks(int32_t index, int32_t channel, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
int32_t HALSIM_RegisterREVPHPressureSwitchCallback(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
void HALSIM_CancelREVPHInitializedCallback(int32_t index, int32_t uid)
void HALSIM_RegisterREVPHAllNonSolenoidCallbacks(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
void HALSIM_SetREVPHCompressorCurrent(int32_t index, double compressorCurrent)
int32_t HALSIM_RegisterREVPHSolenoidOutputCallback(int32_t index, int32_t channel, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
void HALSIM_SetREVPHAllSolenoids(int32_t index, uint8_t values)
HAL_Bool HALSIM_GetREVPHSolenoidOutput(int32_t index, int32_t channel)
void HALSIM_CancelREVPHCompressorCurrentCallback(int32_t index, int32_t uid)
void HALSIM_SetREVPHSolenoidOutput(int32_t index, int32_t channel, HAL_Bool solenoidOutput)
void HALSIM_GetREVPHAllSolenoids(int32_t index, uint8_t *values)
int32_t HALSIM_RegisterREVPHInitializedCallback(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
int32_t HALSIM_RegisterREVPHCompressorOnCallback(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
void HALSIM_SetREVPHPressureSwitch(int32_t index, HAL_Bool pressureSwitch)
int32_t HALSIM_RegisterREVPHCompressorCurrentCallback(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
void HALSIM_SetREVPHCompressorConfigType(int32_t index, HAL_REVPHCompressorConfigType configType)
HAL_REVPHCompressorConfigType HALSIM_GetREVPHCompressorConfigType(int32_t index)
HAL_Bool HALSIM_GetREVPHCompressorOn(int32_t index)
void HALSIM_CancelREVPHCompressorOnCallback(int32_t index, int32_t uid)
void HALSIM_CancelREVPHCompressorConfigTypeCallback(int32_t index, int32_t uid)
int32_t HALSIM_RegisterREVPHCompressorConfigTypeCallback(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
void HALSIM_CancelREVPHPressureSwitchCallback(int32_t index, int32_t uid)
HAL_Bool HALSIM_GetREVPHInitialized(int32_t index)
void HALSIM_SetREVPHCompressorOn(int32_t index, HAL_Bool compressorOn)
void HALSIM_CancelREVPHSolenoidOutputCallback(int32_t index, int32_t channel, int32_t uid)
void HALSIM_ResetREVPHData(int32_t index)
HAL_REVPHCompressorConfigType
The compressor configuration type.
Definition: REVPH.h:20
int32_t HAL_Bool
Definition: Types.h:73
::int32_t int32_t
Definition: Meta.h:57
::uint8_t uint8_t
Definition: Meta.h:52