APM:Libraries
Public Member Functions | List of all members
AP_HAL::GPIO Class Referenceabstract

#include <GPIO.h>

Inheritance diagram for AP_HAL::GPIO:
[legend]

Public Member Functions

 GPIO ()
 
virtual void init ()=0
 
virtual void pinMode (uint8_t pin, uint8_t output)=0
 
virtual void pinMode (uint8_t pin, uint8_t output, uint8_t alt)
 
virtual uint8_t read (uint8_t pin)=0
 
virtual void write (uint8_t pin, uint8_t value)=0
 
virtual void toggle (uint8_t pin)=0
 
virtual int8_t analogPinToDigitalPin (uint8_t pin)=0
 
virtual AP_HAL::DigitalSourcechannel (uint16_t n)=0
 
virtual bool attach_interrupt (uint8_t interrupt_num, AP_HAL::Proc p, uint8_t mode)=0
 
virtual bool usb_connected (void)=0
 

Detailed Description

Definition at line 24 of file GPIO.h.

Constructor & Destructor Documentation

◆ GPIO()

AP_HAL::GPIO::GPIO ( )
inline

Definition at line 26 of file GPIO.h.

Here is the call graph for this function:

Member Function Documentation

◆ analogPinToDigitalPin()

virtual int8_t AP_HAL::GPIO::analogPinToDigitalPin ( uint8_t  pin)
pure virtual

Implemented in F4Light::GPIO, Linux::GPIO_BBB, Linux::GPIO_Sysfs, Linux::GPIO_RPI, PX4::PX4GPIO, ChibiOS::GPIO, VRBRAIN::VRBRAINGPIO, Empty::GPIO, and HALSITL::GPIO.

Referenced by AP_Camera::feedback_pin_timer().

Here is the caller graph for this function:

◆ attach_interrupt()

virtual bool AP_HAL::GPIO::attach_interrupt ( uint8_t  interrupt_num,
AP_HAL::Proc  p,
uint8_t  mode 
)
pure virtual

Implemented in F4Light::GPIO, Linux::GPIO_BBB, Linux::GPIO_RPI, Linux::GPIO_Sysfs, PX4::PX4GPIO, ChibiOS::GPIO, VRBRAIN::VRBRAINGPIO, Empty::GPIO, and HALSITL::GPIO.

Referenced by AP_RPM_Pin::update().

Here is the caller graph for this function:

◆ channel()

virtual AP_HAL::DigitalSource* AP_HAL::GPIO::channel ( uint16_t  n)
pure virtual

◆ init()

virtual void AP_HAL::GPIO::init ( )
pure virtual

Implemented in F4Light::GPIO, Linux::GPIO_BBB, Linux::GPIO_RPI, Linux::GPIO_Sysfs, PX4::PX4GPIO, ChibiOS::GPIO, VRBRAIN::VRBRAINGPIO, Empty::GPIO, and HALSITL::GPIO.

Referenced by AP_BoardConfig::board_setup(), AP_BoardConfig::px4_setup_peripherals(), HAL_Linux::run(), and HAL_F4Light::run().

Here is the caller graph for this function:

◆ pinMode() [1/2]

virtual void AP_HAL::GPIO::pinMode ( uint8_t  pin,
uint8_t  output 
)
pure virtual

◆ pinMode() [2/2]

virtual void AP_HAL::GPIO::pinMode ( uint8_t  pin,
uint8_t  output,
uint8_t  alt 
)
inlinevirtual

Reimplemented in Linux::GPIO_RPI.

Definition at line 31 of file GPIO.h.

Here is the call graph for this function:

◆ read()

virtual uint8_t AP_HAL::GPIO::read ( uint8_t  pin)
pure virtual

Implemented in F4Light::GPIO, Linux::GPIO_BBB, Linux::GPIO_RPI, Linux::GPIO_Sysfs, PX4::PX4GPIO, ChibiOS::GPIO, VRBRAIN::VRBRAINGPIO, Empty::GPIO, and HALSITL::GPIO.

Referenced by HALSITL::DigitalSource::DigitalSource(), AP_Camera::feedback_pin_timer(), AP_Button::get_mask(), AP_LeakDetector_Digital::read(), Linux::DigitalSource::read(), test_gpio_input(), and AP_Relay::toggle().

Here is the caller graph for this function:

◆ toggle()

virtual void AP_HAL::GPIO::toggle ( uint8_t  pin)
pure virtual

◆ usb_connected()

virtual bool AP_HAL::GPIO::usb_connected ( void  )
pure virtual

◆ write()

virtual void AP_HAL::GPIO::write ( uint8_t  pin,
uint8_t  value 
)
pure virtual

The documentation for this class was generated from the following file: