WPILibC++ 2027.0.0-alpha-4
Loading...
Searching...
No Matches
PWM.h File Reference
#include <stdint.h>
#include "wpi/hal/Types.h"

Go to the source code of this file.

Functions

HAL_DigitalHandle HAL_InitializePWMPort (int32_t channel, const char *allocationLocation, int32_t *status)
 Initializes a PWM port.
void HAL_FreePWMPort (HAL_DigitalHandle pwmPortHandle)
 Frees a PWM port.
HAL_Bool HAL_CheckPWMChannel (int32_t channel)
 Checks if a pwm channel is valid.
void HAL_SetPWMSimDevice (HAL_DigitalHandle handle, HAL_SimDeviceHandle device)
 Indicates the pwm is used by a simulated device.
void HAL_SetPWMPulseTimeMicroseconds (HAL_DigitalHandle pwmPortHandle, int32_t microsecondPulseTime, int32_t *status)
 Sets a PWM channel to the desired pulse width in microseconds.
int32_t HAL_GetPWMPulseTimeMicroseconds (HAL_DigitalHandle pwmPortHandle, int32_t *status)
 Gets the current microsecond pulse time from a PWM channel.
void HAL_SetPWMOutputPeriod (HAL_DigitalHandle pwmPortHandle, int32_t period, int32_t *status)
 Sets the PWM output period.