APM:Libraries
Public Member Functions | Static Public Member Functions | List of all members
F4Light::GPIO Class Reference

#include <GPIO.h>

Inheritance diagram for F4Light::GPIO:
[legend]
Collaboration diagram for F4Light::GPIO:
[legend]

Public Member Functions

 GPIO ()
 
void init () override
 
void pinMode (uint8_t pin, uint8_t output) override
 
uint8_t read (uint8_t pin) override
 
void write (uint8_t pin, uint8_t value) override
 
void toggle (uint8_t pin) override
 
AP_HAL::DigitalSourcechannel (uint16_t n)
 
bool attach_interrupt (uint8_t pin, AP_HAL::MemberProc p, uint8_t mode)
 
bool attach_interrupt (uint8_t pin, AP_HAL::Proc p, uint8_t mode)
 
void detach_interrupt (uint8_t pin)
 
bool usb_connected (void) override
 
int8_t analogPinToDigitalPin (uint8_t pin) override
 
- Public Member Functions inherited from AP_HAL::GPIO
 GPIO ()
 
virtual void pinMode (uint8_t pin, uint8_t output, uint8_t alt)
 

Static Public Member Functions

static bool _attach_interrupt (uint8_t pin, Handler h, uint8_t mode, uint8_t priority)
 
static void enable_interrupt (uint8_t pin, bool e)
 
static uint8_t analogPinToDigital (uint8_t pin)
 
static void _pinMode (uint8_t pin, uint8_t output)
 
static uint8_t _read (uint8_t pin)
 
static void _write (uint8_t pin, uint8_t value)
 
static void _toggle (uint8_t pin)
 
static void _setSpeed (uint8_t pin, GPIOSpeed_t gpio_speed)
 
static DigitalSourceget_channel (uint16_t pin)
 

Detailed Description

Definition at line 126 of file GPIO.h.

Constructor & Destructor Documentation

◆ GPIO()

F4Light::GPIO::GPIO ( )
inline

Definition at line 128 of file GPIO.h.

Member Function Documentation

◆ _attach_interrupt()

bool GPIO::_attach_interrupt ( uint8_t  pin,
Handler  h,
uint8_t  mode,
uint8_t  priority 
)
static

Definition at line 123 of file GPIO.cpp.

Here is the call graph for this function:

◆ _pinMode()

void GPIO::_pinMode ( uint8_t  pin,
uint8_t  output 
)
static

Definition at line 21 of file GPIO.cpp.

Referenced by F4Light::RCOutput::disable_ch(), F4Light::RCOutput::enable_ch(), F4Light::DSM_parser::init(), pinMode(), F4Light::RCOutput::push(), F4Light::AnalogSource::set_pin(), and write().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _read()

static uint8_t F4Light::GPIO::_read ( uint8_t  pin)
inlinestatic

Definition at line 164 of file GPIO.h.

Referenced by digitalRead(), and read().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _setSpeed()

static void F4Light::GPIO::_setSpeed ( uint8_t  pin,
GPIOSpeed_t  gpio_speed 
)
inlinestatic

Definition at line 168 of file GPIO.h.

Here is the call graph for this function:

◆ _toggle()

static void F4Light::GPIO::_toggle ( uint8_t  pin)
inlinestatic

Definition at line 166 of file GPIO.h.

Referenced by digitalToggle(), and toggle().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _write()

static void F4Light::GPIO::_write ( uint8_t  pin,
uint8_t  value 
)
inlinestatic

Definition at line 165 of file GPIO.h.

Referenced by digitalWrite(), F4Light::RCOutput::disable_ch(), F4Light::DSM_parser::init(), F4Light::RCOutput::push(), and write().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ analogPinToDigital()

static uint8_t F4Light::GPIO::analogPinToDigital ( uint8_t  pin)
inlinestatic

Definition at line 160 of file GPIO.h.

◆ analogPinToDigitalPin()

int8_t GPIO::analogPinToDigitalPin ( uint8_t  pin)
inlineoverridevirtual

Implements AP_HAL::GPIO.

Definition at line 159 of file GPIO.h.

◆ attach_interrupt() [1/2]

bool F4Light::GPIO::attach_interrupt ( uint8_t  pin,
AP_HAL::MemberProc  p,
uint8_t  mode 
)
inline

Definition at line 141 of file GPIO.h.

◆ attach_interrupt() [2/2]

bool GPIO::attach_interrupt ( uint8_t  pin,
AP_HAL::Proc  p,
uint8_t  mode 
)
inlinevirtual

Implements AP_HAL::GPIO.

Definition at line 146 of file GPIO.h.

◆ channel()

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

Implements AP_HAL::GPIO.

Definition at line 147 of file GPIO.cpp.

Here is the call graph for this function:

◆ detach_interrupt()

void GPIO::detach_interrupt ( uint8_t  pin)

Definition at line 137 of file GPIO.cpp.

Here is the call graph for this function:

◆ enable_interrupt()

static void F4Light::GPIO::enable_interrupt ( uint8_t  pin,
bool  e 
)
inlinestatic

Definition at line 152 of file GPIO.h.

Here is the call graph for this function:

◆ get_channel()

static DigitalSource* F4Light::GPIO::get_channel ( uint16_t  pin)
inlinestatic

Definition at line 170 of file GPIO.h.

Referenced by channel(), and F4Light::SPIDevice::SPIDevice().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ init()

void GPIO::init ( void  )
inlineoverridevirtual

Implements AP_HAL::GPIO.

Definition at line 129 of file GPIO.h.

Here is the call graph for this function:

◆ pinMode()

void GPIO::pinMode ( uint8_t  pin,
uint8_t  output 
)
overridevirtual

Implements AP_HAL::GPIO.

Definition at line 71 of file GPIO.cpp.

Here is the call graph for this function:

◆ read()

uint8_t GPIO::read ( uint8_t  pin)
overridevirtual

Implements AP_HAL::GPIO.

Definition at line 79 of file GPIO.cpp.

Here is the call graph for this function:

◆ toggle()

void GPIO::toggle ( uint8_t  pin)
overridevirtual

Implements AP_HAL::GPIO.

Definition at line 114 of file GPIO.cpp.

Here is the call graph for this function:

◆ usb_connected()

bool GPIO::usb_connected ( void  )
inlineoverridevirtual

Implements AP_HAL::GPIO.

Definition at line 155 of file GPIO.h.

Here is the call graph for this function:

◆ write()

void GPIO::write ( uint8_t  pin,
uint8_t  value 
)
overridevirtual

Implements AP_HAL::GPIO.

Definition at line 86 of file GPIO.cpp.

Here is the call graph for this function:

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