WPILibC++ 2024.3.2
DutyCycleData.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
14int32_t HALSIM_FindDutyCycleForChannel(int32_t channel);
15
16void HALSIM_ResetDutyCycleData(int32_t index);
17int32_t HALSIM_GetDutyCycleDigitalChannel(int32_t index);
18
20 HAL_NotifyCallback callback,
21 void* param,
22 HAL_Bool initialNotify);
23void HALSIM_CancelDutyCycleInitializedCallback(int32_t index, int32_t uid);
25void HALSIM_SetDutyCycleInitialized(int32_t index, HAL_Bool initialized);
26
28
30 HAL_NotifyCallback callback,
31 void* param,
32 HAL_Bool initialNotify);
33void HALSIM_CancelDutyCycleOutputCallback(int32_t index, int32_t uid);
34double HALSIM_GetDutyCycleOutput(int32_t index);
35void HALSIM_SetDutyCycleOutput(int32_t index, double output);
36
38 HAL_NotifyCallback callback,
39 void* param,
40 HAL_Bool initialNotify);
41void HALSIM_CancelDutyCycleFrequencyCallback(int32_t index, int32_t uid);
42int32_t HALSIM_GetDutyCycleFrequency(int32_t index);
43void HALSIM_SetDutyCycleFrequency(int32_t index, int32_t frequency);
44
46 HAL_NotifyCallback callback,
47 void* param, HAL_Bool initialNotify);
48
49#ifdef __cplusplus
50} // extern "C"
51#endif
void HALSIM_RegisterDutyCycleAllCallbacks(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
void HALSIM_SetDutyCycleOutput(int32_t index, double output)
void HALSIM_SetDutyCycleFrequency(int32_t index, int32_t frequency)
HAL_SimDeviceHandle HALSIM_GetDutyCycleSimDevice(int32_t index)
int32_t HALSIM_RegisterDutyCycleFrequencyCallback(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
void HALSIM_CancelDutyCycleInitializedCallback(int32_t index, int32_t uid)
int32_t HALSIM_GetDutyCycleFrequency(int32_t index)
void HALSIM_ResetDutyCycleData(int32_t index)
int32_t HALSIM_FindDutyCycleForChannel(int32_t channel)
double HALSIM_GetDutyCycleOutput(int32_t index)
int32_t HALSIM_RegisterDutyCycleOutputCallback(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
void HALSIM_CancelDutyCycleOutputCallback(int32_t index, int32_t uid)
int32_t HALSIM_GetDutyCycleDigitalChannel(int32_t index)
void HALSIM_CancelDutyCycleFrequencyCallback(int32_t index, int32_t uid)
void HALSIM_SetDutyCycleInitialized(int32_t index, HAL_Bool initialized)
HAL_Bool HALSIM_GetDutyCycleInitialized(int32_t index)
int32_t HALSIM_RegisterDutyCycleInitializedCallback(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
int32_t HAL_Bool
Definition: Types.h:73
HAL_Handle HAL_SimDeviceHandle
Definition: Types.h:53