WPILibC++ 2025.0.0-alpha-1-14-g3b6f38d
DigitalPWMData.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_FindDigitalPWMForChannel(int32_t channel);
15
16void HALSIM_ResetDigitalPWMData(int32_t index);
18 int32_t index, HAL_NotifyCallback callback, void* param,
19 HAL_Bool initialNotify);
20void HALSIM_CancelDigitalPWMInitializedCallback(int32_t index, int32_t uid);
22void HALSIM_SetDigitalPWMInitialized(int32_t index, HAL_Bool initialized);
23
25 HAL_NotifyCallback callback,
26 void* param,
27 HAL_Bool initialNotify);
28void HALSIM_CancelDigitalPWMDutyCycleCallback(int32_t index, int32_t uid);
29double HALSIM_GetDigitalPWMDutyCycle(int32_t index);
30void HALSIM_SetDigitalPWMDutyCycle(int32_t index, double dutyCycle);
31
33 HAL_NotifyCallback callback,
34 void* param,
35 HAL_Bool initialNotify);
36void HALSIM_CancelDigitalPWMPinCallback(int32_t index, int32_t uid);
37int32_t HALSIM_GetDigitalPWMPin(int32_t index);
38void HALSIM_SetDigitalPWMPin(int32_t index, int32_t pin);
39
41 HAL_NotifyCallback callback,
42 void* param, HAL_Bool initialNotify);
43
44#ifdef __cplusplus
45} // extern "C"
46#endif
void HALSIM_ResetDigitalPWMData(int32_t index)
void HALSIM_SetDigitalPWMInitialized(int32_t index, HAL_Bool initialized)
int32_t HALSIM_RegisterDigitalPWMInitializedCallback(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
void HALSIM_CancelDigitalPWMDutyCycleCallback(int32_t index, int32_t uid)
int32_t HALSIM_FindDigitalPWMForChannel(int32_t channel)
int32_t HALSIM_GetDigitalPWMPin(int32_t index)
void HALSIM_SetDigitalPWMDutyCycle(int32_t index, double dutyCycle)
HAL_Bool HALSIM_GetDigitalPWMInitialized(int32_t index)
void HALSIM_SetDigitalPWMPin(int32_t index, int32_t pin)
void HALSIM_CancelDigitalPWMInitializedCallback(int32_t index, int32_t uid)
double HALSIM_GetDigitalPWMDutyCycle(int32_t index)
void HALSIM_CancelDigitalPWMPinCallback(int32_t index, int32_t uid)
void HALSIM_RegisterDigitalPWMAllCallbacks(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
int32_t HALSIM_RegisterDigitalPWMDutyCycleCallback(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
int32_t HALSIM_RegisterDigitalPWMPinCallback(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