WPILibC++ 2024.3.2
CTREPCMData.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
14void HALSIM_ResetCTREPCMData(int32_t index);
16 HAL_NotifyCallback callback,
17 void* param,
18 HAL_Bool initialNotify);
19void HALSIM_CancelCTREPCMInitializedCallback(int32_t index, int32_t uid);
21void HALSIM_SetCTREPCMInitialized(int32_t index, HAL_Bool solenoidInitialized);
22
24 int32_t index, int32_t channel, HAL_NotifyCallback callback, void* param,
25 HAL_Bool initialNotify);
26void HALSIM_CancelCTREPCMSolenoidOutputCallback(int32_t index, int32_t channel,
27 int32_t uid);
28HAL_Bool HALSIM_GetCTREPCMSolenoidOutput(int32_t index, int32_t channel);
29void HALSIM_SetCTREPCMSolenoidOutput(int32_t index, int32_t channel,
30 HAL_Bool solenoidOutput);
31
33 HAL_NotifyCallback callback,
34 void* param,
35 HAL_Bool initialNotify);
36void HALSIM_CancelCTREPCMCompressorOnCallback(int32_t index, int32_t uid);
38void HALSIM_SetCTREPCMCompressorOn(int32_t index, HAL_Bool compressorOn);
39
41 int32_t index, HAL_NotifyCallback callback, void* param,
42 HAL_Bool initialNotify);
43void HALSIM_CancelCTREPCMClosedLoopEnabledCallback(int32_t index, int32_t uid);
46 HAL_Bool closedLoopEnabled);
47
49 int32_t index, HAL_NotifyCallback callback, void* param,
50 HAL_Bool initialNotify);
51void HALSIM_CancelCTREPCMPressureSwitchCallback(int32_t index, int32_t uid);
53void HALSIM_SetCTREPCMPressureSwitch(int32_t index, HAL_Bool pressureSwitch);
54
56 int32_t index, HAL_NotifyCallback callback, void* param,
57 HAL_Bool initialNotify);
58void HALSIM_CancelCTREPCMCompressorCurrentCallback(int32_t index, int32_t uid);
61 double compressorCurrent);
62
63void HALSIM_GetCTREPCMAllSolenoids(int32_t index, uint8_t* values);
64void HALSIM_SetCTREPCMAllSolenoids(int32_t index, uint8_t values);
65
67 HAL_NotifyCallback callback,
68 void* param,
69 HAL_Bool initialNotify);
70
71void HALSIM_RegisterCTREPCMAllSolenoidCallbacks(int32_t index, int32_t channel,
72 HAL_NotifyCallback callback,
73 void* param,
74 HAL_Bool initialNotify);
75
76#ifdef __cplusplus
77} // extern "C"
78#endif
void HALSIM_RegisterCTREPCMAllNonSolenoidCallbacks(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
void HALSIM_SetCTREPCMCompressorOn(int32_t index, HAL_Bool compressorOn)
void HALSIM_CancelCTREPCMCompressorOnCallback(int32_t index, int32_t uid)
int32_t HALSIM_RegisterCTREPCMInitializedCallback(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
void HALSIM_SetCTREPCMCompressorCurrent(int32_t index, double compressorCurrent)
void HALSIM_SetCTREPCMSolenoidOutput(int32_t index, int32_t channel, HAL_Bool solenoidOutput)
void HALSIM_CancelCTREPCMCompressorCurrentCallback(int32_t index, int32_t uid)
void HALSIM_SetCTREPCMInitialized(int32_t index, HAL_Bool solenoidInitialized)
void HALSIM_ResetCTREPCMData(int32_t index)
int32_t HALSIM_RegisterCTREPCMCompressorCurrentCallback(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
HAL_Bool HALSIM_GetCTREPCMSolenoidOutput(int32_t index, int32_t channel)
void HALSIM_CancelCTREPCMInitializedCallback(int32_t index, int32_t uid)
void HALSIM_SetCTREPCMPressureSwitch(int32_t index, HAL_Bool pressureSwitch)
int32_t HALSIM_RegisterCTREPCMClosedLoopEnabledCallback(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
double HALSIM_GetCTREPCMCompressorCurrent(int32_t index)
int32_t HALSIM_RegisterCTREPCMCompressorOnCallback(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
HAL_Bool HALSIM_GetCTREPCMInitialized(int32_t index)
HAL_Bool HALSIM_GetCTREPCMClosedLoopEnabled(int32_t index)
HAL_Bool HALSIM_GetCTREPCMPressureSwitch(int32_t index)
void HALSIM_CancelCTREPCMPressureSwitchCallback(int32_t index, int32_t uid)
void HALSIM_SetCTREPCMClosedLoopEnabled(int32_t index, HAL_Bool closedLoopEnabled)
void HALSIM_CancelCTREPCMClosedLoopEnabledCallback(int32_t index, int32_t uid)
int32_t HALSIM_RegisterCTREPCMPressureSwitchCallback(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
HAL_Bool HALSIM_GetCTREPCMCompressorOn(int32_t index)
void HALSIM_CancelCTREPCMSolenoidOutputCallback(int32_t index, int32_t channel, int32_t uid)
void HALSIM_RegisterCTREPCMAllSolenoidCallbacks(int32_t index, int32_t channel, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
void HALSIM_GetCTREPCMAllSolenoids(int32_t index, uint8_t *values)
int32_t HALSIM_RegisterCTREPCMSolenoidOutputCallback(int32_t index, int32_t channel, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
void HALSIM_SetCTREPCMAllSolenoids(int32_t index, uint8_t values)
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