Files
allwpilib/hal/include/HAL/PWM.h
Thad House 6d9b3b0aaa Splits HAL Digital and Analog Headers into multiple headers (#52)
The Digital and Analog headers (and the implementations, but that will
be moved over later) are just too big and congested. This splits those
headers, and then changes the few things that needed to be changed in
WPILib to get the code working again. No function changes were made in
this commit.
2016-05-24 00:58:10 -07:00

16 lines
603 B
C

#pragma once
#include <stdint.h>
extern "C" {
bool checkPWMChannel(void* digital_port_pointer);
void setPWM(void* digital_port_pointer, unsigned short value, int32_t* status);
bool allocatePWMChannel(void* digital_port_pointer, int32_t* status);
void freePWMChannel(void* digital_port_pointer, int32_t* status);
unsigned short getPWM(void* digital_port_pointer, int32_t* status);
void latchPWMZero(void* digital_port_pointer, int32_t* status);
void setPWMPeriodScale(void* digital_port_pointer, uint32_t squelchMask,
int32_t* status);
uint16_t getLoopTiming(int32_t* status);
}