WPILibC++ 2027.0.0-alpha-2
Loading...
Searching...
No Matches
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);
19void HALSIM_CancelPWMInitializedCallback(int32_t index, int32_t uid);
21void HALSIM_SetPWMInitialized(int32_t index, HAL_Bool initialized);
22
24
26 HAL_NotifyCallback callback,
27 void* param,
28 HAL_Bool initialNotify);
31void HALSIM_SetPWMPulseMicrosecond(int32_t index, int32_t microsecondPulseTime);
32
34 HAL_NotifyCallback callback,
35 void* param,
36 HAL_Bool initialNotify);
39void HALSIM_SetPWMOutputPeriod(int32_t index, int32_t periodScale);
40
42 void* param, HAL_Bool initialNotify);
43
44#ifdef __cplusplus
45} // extern "C"
46#endif
void(* HAL_NotifyCallback)(const char *name, void *param, const struct HAL_Value *value)
Definition NotifyListener.h:9
void HALSIM_SetPWMInitialized(int32_t index, HAL_Bool initialized)
int32_t HALSIM_RegisterPWMInitializedCallback(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
void HALSIM_CancelPWMInitializedCallback(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)
void HALSIM_SetPWMOutputPeriod(int32_t index, int32_t periodScale)
int32_t HALSIM_GetPWMOutputPeriod(int32_t index)
int32_t HALSIM_RegisterPWMPulseMicrosecondCallback(int32_t index, HAL_NotifyCallback callback, void *param, HAL_Bool initialNotify)
HAL_Bool HALSIM_GetPWMInitialized(int32_t index)
void HALSIM_CancelPWMPulseMicrosecondCallback(int32_t index, int32_t uid)
HAL_SimDeviceHandle HALSIM_GetPWMSimDevice(int32_t index)
int32_t HALSIM_RegisterPWMOutputPeriodCallback(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)
void HALSIM_CancelPWMOutputPeriodCallback(int32_t index, int32_t uid)
int32_t HAL_Bool
Definition Types.h:73
HAL_Handle HAL_SimDeviceHandle
Definition Types.h:51