WPILibC++ 2027.0.0-alpha-2
Loading...
Searching...
No Matches
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
15
17 HAL_NotifyCallback callback,
18 void* param,
19 HAL_Bool initialNotify);
23
25
27 HAL_NotifyCallback callback,
28 void* param,
29 HAL_Bool initialNotify);
32void HALSIM_SetDutyCycleOutput(int32_t index, double output);
33
35 HAL_NotifyCallback callback,
36 void* param,
37 HAL_Bool initialNotify);
40void HALSIM_SetDutyCycleFrequency(int32_t index, double frequency);
41
43 HAL_NotifyCallback callback,
44 void* param, HAL_Bool initialNotify);
45
46#ifdef __cplusplus
47} // extern "C"
48#endif
void HALSIM_RegisterDutyCycleAllCallbacks(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
void HALSIM_SetDutyCycleOutput(int32_t index, double output)
double HALSIM_GetDutyCycleFrequency(int32_t index)
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)
void HALSIM_ResetDutyCycleData(int32_t index)
void HALSIM_SetDutyCycleFrequency(int32_t index, double frequency)
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)
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:51