34 #include <wiringPi/version.h>
42 # define FALSE (!TRUE)
56 #define SOFT_PWM_OUTPUT 4
58 #define SOFT_TONE_OUTPUT 5
60 #define PWM_TONE_OUTPUT 6
83 #define PWM_MODE_BAL 1
91 #define INT_EDGE_SETUP 0
93 #define INT_EDGE_FALLING 1
95 #define INT_EDGE_RISING 2
97 #define INT_EDGE_BOTH 3
153 int wiringPiISR (
int pin,
int edgeType,
void (*
function)(
void));
161 void pinMode (
int pin,
int mode);
240 unsigned int millis (
void);
249 unsigned int micros (
void);
256 void delay (
unsigned int howLong);
void pullUpDnControl(int pin, int pud)
Control the internal pull-up/down resistors on a GPIO pin.
Definition: wiringPi.cpp:71
void wiringPiVersion(int *major, int *minor)
Get the current major and minor version number.
Definition: wiringPi.cpp:156
int wiringPiISR(int pin, int edgeType, void(*function)(void))
Register a Interrupt Service Routine (ISR) - Pi Specific.
Definition: wiringPi.cpp:61
void delay(unsigned int howLong)
Wait for an amount of milliseconds.
Definition: wiringPi.cpp:143
int wiringPiSetup(void)
Must be called once at the start of your program execution.
Definition: wiringPi.cpp:37
int wiringPiSetupSys(void)
Must be called once at the start of your program execution.
Definition: wiringPi.cpp:56
void pwmWrite(int pin, int value)
Set an output PWM value.
Definition: wiringPi.cpp:79
unsigned int micros(void)
Get time in microseconds.
Definition: wiringPi.cpp:132
int analogRead(int pin)
Read the analogue value of a given Pin.
Definition: wiringPi.cpp:88
int waitForInterrupt(int pin, int timeOut, int mode)
When called, it will wait for an interrupt event to happen on that pin and your program will be stall...
Definition: wiringPi.cpp:97
void analogWrite(int pin, int value)
Write the analog value to the given Pin.
Definition: wiringPi.cpp:93
unsigned int millis(void)
Get time in milliseconds.
Definition: wiringPi.cpp:120
int wiringPiSetupPhys(void)
Must be called once at the start of your program execution.
Definition: wiringPi.cpp:51
void pinMode(int pin, int mode)
Sets the mode of a pin to be input, output or PWM output.
Definition: wiringPi.cpp:67
int wiringPiSetupGpio(void)
Must be called once at the start of your program execution.
Definition: wiringPi.cpp:46
void delayMicroseconds(unsigned int howLong)
Wait for an amount of microseconds.
Definition: wiringPi.cpp:149
int digitalRead(int pin)
Read the value of a given Pin.
Definition: wiringPi.cpp:83
void digitalWrite(int pin, int value)
Set an output bit.
Definition: wiringPi.cpp:75