|
APM:Libraries
|
#include "GPIO_Sysfs.h"#include <AP_HAL/AP_HAL.h>#include <fcntl.h>#include <stdio.h>#include <sys/stat.h>#include <unistd.h>#include "Util.h"Go to the source code of this file.
Classes | |
| union | gpio_params |
Macros | |
| #define | LOW 0 |
| #define | HIGH 1 |
| #define | assert_vpin(v_, max_, ...) |
| #define | UINT32_MAX_STR "4294967295" |
| #define | GPIO_BASE_PATH "/sys/class/gpio/" |
| #define | GPIO_PATH_MAX (sizeof(GPIO_BASE_PATH) + sizeof(gpio_params) - 1) |
Variables | |
| static const AP_HAL::HAL & | hal = AP_HAL::get_HAL() |
| #define assert_vpin | ( | v_, | |
| max_, | |||
| ... | |||
| ) |
Definition at line 14 of file GPIO_Sysfs.cpp.
Referenced by Linux::GPIO_Sysfs::_export_pin(), Linux::GPIO_Sysfs::channel(), Linux::GPIO_Sysfs::pinMode(), Linux::GPIO_Sysfs::read(), and Linux::GPIO_Sysfs::write().
| #define GPIO_BASE_PATH "/sys/class/gpio/" |
Definition at line 35 of file GPIO_Sysfs.cpp.
Referenced by Linux::GPIO_Sysfs::_export_pin(), Linux::GPIO_Sysfs::_open_pin_value(), and Linux::GPIO_Sysfs::_pinMode().
| #define GPIO_PATH_MAX (sizeof(GPIO_BASE_PATH) + sizeof(gpio_params) - 1) |
Definition at line 36 of file GPIO_Sysfs.cpp.
Referenced by Linux::GPIO_Sysfs::_export_pin(), Linux::GPIO_Sysfs::_open_pin_value(), and Linux::GPIO_Sysfs::_pinMode().
| #define HIGH 1 |
Definition at line 13 of file GPIO_Sysfs.cpp.
Referenced by Linux::DigitalSource_Sysfs::write(), and Linux::GPIO_Sysfs::write().
| #define LOW 0 |
Definition at line 12 of file GPIO_Sysfs.cpp.
Referenced by Linux::DigitalSource_Sysfs::read(), and Linux::GPIO_Sysfs::read().
| #define UINT32_MAX_STR "4294967295" |
Definition at line 26 of file GPIO_Sysfs.cpp.
|
static |
Definition at line 24 of file GPIO_Sysfs.cpp.
1.8.13