APM:Libraries
Public Member Functions | Private Attributes | List of all members
ChibiOS::GPIO Class Reference

#include <GPIO.h>

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

Public Member Functions

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

Private Attributes

bool _usb_connected
 
bool _ext_started
 

Detailed Description

Definition at line 29 of file GPIO.h.

Constructor & Destructor Documentation

◆ GPIO()

GPIO::GPIO ( )

Definition at line 58 of file GPIO.cpp.

Member Function Documentation

◆ _attach_interrupt()

bool GPIO::_attach_interrupt ( ioline_t  line,
AP_HAL::Proc  p,
uint8_t  mode 
)

Definition at line 131 of file GPIO.cpp.

Referenced by set_usb_connected().

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

◆ analogPinToDigitalPin()

int8_t GPIO::analogPinToDigitalPin ( uint8_t  pin)
virtual

Implements AP_HAL::GPIO.

Definition at line 81 of file GPIO.cpp.

◆ attach_interrupt()

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

Implements AP_HAL::GPIO.

Definition at line 209 of file GPIO.cpp.

Here is the call graph for this function:

◆ channel()

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

Implements AP_HAL::GPIO.

Definition at line 117 of file GPIO.cpp.

Here is the call graph for this function:

◆ init()

void GPIO::init ( void  )
virtual

Implements AP_HAL::GPIO.

Definition at line 61 of file GPIO.cpp.

Here is the call graph for this function:

◆ pinMode()

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

Implements AP_HAL::GPIO.

Definition at line 73 of file GPIO.cpp.

Here is the call graph for this function:

◆ read()

uint8_t GPIO::read ( uint8_t  pin)
virtual

Implements AP_HAL::GPIO.

Definition at line 87 of file GPIO.cpp.

Here is the call graph for this function:

◆ set_usb_connected()

void ChibiOS::GPIO::set_usb_connected ( )
inline

Definition at line 49 of file GPIO.h.

Here is the call graph for this function:

◆ toggle()

void GPIO::toggle ( uint8_t  pin)
virtual

Implements AP_HAL::GPIO.

Definition at line 108 of file GPIO.cpp.

Here is the call graph for this function:

◆ usb_connected()

bool GPIO::usb_connected ( void  )
overridevirtual

Implements AP_HAL::GPIO.

Definition at line 218 of file GPIO.cpp.

◆ write()

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

Implements AP_HAL::GPIO.

Definition at line 96 of file GPIO.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ _ext_started

bool ChibiOS::GPIO::_ext_started
private

Definition at line 56 of file GPIO.h.

◆ _usb_connected

bool ChibiOS::GPIO::_usb_connected
private

Definition at line 55 of file GPIO.h.

Referenced by set_usb_connected().


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