PX4 Firmware
PX4 Autopilot Software http://px4.io
linux_gpio.cpp File Reference
#include "linux_gpio.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>
#include <string.h>
#include <stdlib.h>
#include <px4_platform_common/posix.h>
Include dependency graph for linux_gpio.cpp:

Go to the source code of this file.

Macros

#define PIN_INDEX_BUFFER_MAX   (16)
 
#define PIN_DIRECTION_BUFFER_MAX   (30 + PIN_INDEX_BUFFER_MAX)
 
#define PIN_VALUE_BUFFER_MAX   (26 + PIN_INDEX_BUFFER_MAX)
 

Macro Definition Documentation

◆ PIN_DIRECTION_BUFFER_MAX

#define PIN_DIRECTION_BUFFER_MAX   (30 + PIN_INDEX_BUFFER_MAX)

Definition at line 46 of file linux_gpio.cpp.

Referenced by LinuxGPIO::setDirection().

◆ PIN_INDEX_BUFFER_MAX

#define PIN_INDEX_BUFFER_MAX   (16)

Definition at line 45 of file linux_gpio.cpp.

Referenced by LinuxGPIO::exportPin(), and LinuxGPIO::unexportPin().

◆ PIN_VALUE_BUFFER_MAX

#define PIN_VALUE_BUFFER_MAX   (26 + PIN_INDEX_BUFFER_MAX)

Definition at line 47 of file linux_gpio.cpp.

Referenced by LinuxGPIO::exportPin().