WPILibC++ 2023.4.3-108-ge5452e3
PWMData.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
16 HAL_NotifyCallback callback,
17 void* param,
18 HAL_Bool initialNotify);
21void HALSIM_SetPWMInitialized(int32_t index, HAL_Bool initialized);
22
24 HAL_NotifyCallback callback,
25 void* param,
26 HAL_Bool initialNotify);
29void HALSIM_SetPWMPulseMicrosecond(int32_t index, int32_t microsecondPulseTime);
30
32 HAL_NotifyCallback callback,
33 void* param, HAL_Bool initialNotify);
36void HALSIM_SetPWMSpeed(int32_t index, double speed);
37
39 HAL_NotifyCallback callback,
40 void* param, HAL_Bool initialNotify);
43void HALSIM_SetPWMPosition(int32_t index, double position);
44
46 HAL_NotifyCallback callback,
47 void* param,
48 HAL_Bool initialNotify);
51void HALSIM_SetPWMPeriodScale(int32_t index, int32_t periodScale);
52
54 HAL_NotifyCallback callback,
55 void* param,
56 HAL_Bool initialNotify);
60
62 void* param, HAL_Bool initialNotify);
63
64#ifdef __cplusplus
65} // extern "C"
66#endif
void(* HAL_NotifyCallback)(const char *name, void *param, const struct HAL_Value *value)
Definition: NotifyListener.h:9
void HALSIM_SetPWMPosition(int32_t index, double position)
void HALSIM_SetPWMInitialized(int32_t index, HAL_Bool initialized)
int32_t HALSIM_GetPWMPeriodScale(int32_t index)
int32_t HALSIM_RegisterPWMInitializedCallback(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
void HALSIM_CancelPWMZeroLatchCallback(int32_t index, int32_t uid)
double HALSIM_GetPWMSpeed(int32_t index)
int32_t HALSIM_RegisterPWMSpeedCallback(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
void HALSIM_CancelPWMInitializedCallback(int32_t index, int32_t uid)
double HALSIM_GetPWMPosition(int32_t index)
void HALSIM_CancelPWMSpeedCallback(int32_t index, int32_t uid)
void HALSIM_ResetPWMData(int32_t index)
void HALSIM_SetPWMPulseMicrosecond(int32_t index, int32_t microsecondPulseTime)
int32_t HALSIM_GetPWMPulseMicrosecond(int32_t index)
HAL_Bool HALSIM_GetPWMZeroLatch(int32_t index)
void HALSIM_SetPWMZeroLatch(int32_t index, HAL_Bool zeroLatch)
int32_t HALSIM_RegisterPWMPeriodScaleCallback(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
void HALSIM_SetPWMPeriodScale(int32_t index, int32_t periodScale)
int32_t HALSIM_RegisterPWMPulseMicrosecondCallback(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
void HALSIM_CancelPWMPeriodScaleCallback(int32_t index, int32_t uid)
void HALSIM_CancelPWMPositionCallback(int32_t index, int32_t uid)
void HALSIM_SetPWMSpeed(int32_t index, double speed)
HAL_Bool HALSIM_GetPWMInitialized(int32_t index)
void HALSIM_CancelPWMPulseMicrosecondCallback(int32_t index, int32_t uid)
int32_t HALSIM_RegisterPWMPositionCallback(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
int32_t HALSIM_RegisterPWMZeroLatchCallback(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
void HALSIM_RegisterPWMAllCallbacks(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
int32_t HAL_Bool
Definition: Types.h:73
::int32_t int32_t
Definition: Meta.h:57