4#if !defined(__linux__) || !defined(__arm__)
28void gpioWrite(
unsigned pin,
unsigned level);
39int gpioSetAlertFuncEx(
unsigned pin,
void (*func)(
int,
int,
unsigned,
void *),
void *user);
42int gpioSetISRFuncEx(
unsigned pin,
int edge,
int timeout,
void (*func)(
int,
int,
unsigned,
void *),
void *user);
46void gpioSetPullUpDown(
unsigned pin,
unsigned pud);
void gpioTerminate()
Terminate the GPIO simulation.
Definition pigpio_stub.cpp:53
int gpioRead(unsigned pin)
Read the level of a GPIO pin.
Definition pigpio_stub.cpp:98
int gpioSetAlertFuncEx(unsigned pin, void(*func)(int, int, unsigned, void *), void *user)
Set a callback function for GPIO pin alert events.
Definition pigpio_stub.cpp:150
const int PI_OUTPUT
Output mode for GPIO pin.
Definition pigpio_stub.cpp:19
int gpioInitialise()
Initialize the GPIO simulation.
Definition pigpio_stub.cpp:40
void gpioDelay(unsigned micros)
Simulate a delay in microseconds.
Definition pigpio_stub.cpp:121
const int PI_INPUT
Input mode for GPIO pin.
Definition pigpio_stub.cpp:20
const int PI_LOW
Low level for GPIO pin state.
Definition pigpio_stub.cpp:22
void gpioSetMode(unsigned pin, unsigned mode)
Set the mode of a GPIO pin.
Definition pigpio_stub.cpp:67
void simulateCallback(unsigned pin, int level, unsigned tick)
Simulate a callback function call for a specific GPIO pin.
Definition pigpio_stub.cpp:172
unsigned gpioTick()
Get the current value of the simulated tick counter.
Definition pigpio_stub.cpp:134
const int PI_HIGH
High level for GPIO pin state.
Definition pigpio_stub.cpp:21
void gpioWrite(unsigned pin, unsigned level)
Write a level to a GPIO pin.
Definition pigpio_stub.cpp:82