APM:Libraries
Classes | Macros
GPIO.h File Reference
#include "AP_HAL_PX4.h"
Include dependency graph for GPIO.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  PX4::PX4GPIO
 
class  PX4::PX4DigitalSource
 

Macros

#define PX4_GPIO_PIEZO_PIN   110
 
#define PX4_GPIO_EXT_FMU_RELAY1_PIN   111
 
#define PX4_GPIO_EXT_FMU_RELAY2_PIN   112
 
#define PX4_GPIO_EXT_IO_RELAY1_PIN   113
 
#define PX4_GPIO_EXT_IO_RELAY2_PIN   114
 
#define PX4_GPIO_EXT_IO_ACC1_PIN   115
 
#define PX4_GPIO_EXT_IO_ACC2_PIN   116
 
#define PX4_GPIO_FMU_SERVO_PIN(n)   (n+50)
 
#define HAL_GPIO_A_LED_PIN   27
 
#define HAL_GPIO_B_LED_PIN   26
 
#define HAL_GPIO_C_LED_PIN   25
 
#define HAL_GPIO_LED_ON   0
 
#define HAL_GPIO_LED_OFF   1
 

Macro Definition Documentation

◆ HAL_GPIO_A_LED_PIN

#define HAL_GPIO_A_LED_PIN   27

Definition at line 20 of file GPIO.h.

◆ HAL_GPIO_B_LED_PIN

#define HAL_GPIO_B_LED_PIN   26

Definition at line 23 of file GPIO.h.

◆ HAL_GPIO_C_LED_PIN

#define HAL_GPIO_C_LED_PIN   25

Definition at line 26 of file GPIO.h.

◆ HAL_GPIO_LED_OFF

#define HAL_GPIO_LED_OFF   1

Definition at line 32 of file GPIO.h.

◆ HAL_GPIO_LED_ON

#define HAL_GPIO_LED_ON   0

Definition at line 29 of file GPIO.h.

◆ PX4_GPIO_EXT_FMU_RELAY1_PIN

#define PX4_GPIO_EXT_FMU_RELAY1_PIN   111

Definition at line 6 of file GPIO.h.

Referenced by PX4::PX4GPIO::read(), and PX4::PX4GPIO::write().

◆ PX4_GPIO_EXT_FMU_RELAY2_PIN

#define PX4_GPIO_EXT_FMU_RELAY2_PIN   112

Definition at line 7 of file GPIO.h.

Referenced by PX4::PX4GPIO::read(), and PX4::PX4GPIO::write().

◆ PX4_GPIO_EXT_IO_ACC1_PIN

#define PX4_GPIO_EXT_IO_ACC1_PIN   115

Definition at line 10 of file GPIO.h.

Referenced by PX4::PX4GPIO::read(), and PX4::PX4GPIO::write().

◆ PX4_GPIO_EXT_IO_ACC2_PIN

#define PX4_GPIO_EXT_IO_ACC2_PIN   116

Definition at line 11 of file GPIO.h.

Referenced by PX4::PX4GPIO::read(), and PX4::PX4GPIO::write().

◆ PX4_GPIO_EXT_IO_RELAY1_PIN

#define PX4_GPIO_EXT_IO_RELAY1_PIN   113

Definition at line 8 of file GPIO.h.

Referenced by PX4::PX4GPIO::read(), and PX4::PX4GPIO::write().

◆ PX4_GPIO_EXT_IO_RELAY2_PIN

#define PX4_GPIO_EXT_IO_RELAY2_PIN   114

Definition at line 9 of file GPIO.h.

Referenced by PX4::PX4GPIO::read(), and PX4::PX4GPIO::write().

◆ PX4_GPIO_FMU_SERVO_PIN

#define PX4_GPIO_FMU_SERVO_PIN (   n)    (n+50)

◆ PX4_GPIO_PIEZO_PIN

#define PX4_GPIO_PIEZO_PIN   110

Definition at line 5 of file GPIO.h.

Referenced by PX4::PX4GPIO::write().