APM:Libraries
Public Member Functions | Private Attributes | List of all members
Linux::GPIO_RPI Class Reference

#include <GPIO_RPI.h>

Inheritance diagram for Linux::GPIO_RPI:
[legend]
Collaboration diagram for Linux::GPIO_RPI:
[legend]

Public Member Functions

 GPIO_RPI ()
 
void init ()
 
void pinMode (uint8_t pin, uint8_t output)
 
void pinMode (uint8_t pin, uint8_t output, uint8_t alt)
 
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)
 
- Public Member Functions inherited from AP_HAL::GPIO
 GPIO ()
 

Private Attributes

volatile uint32_t * _gpio
 

Detailed Description

Definition at line 46 of file GPIO_RPI.h.

Constructor & Destructor Documentation

◆ GPIO_RPI()

GPIO_RPI::GPIO_RPI ( )

Definition at line 38 of file GPIO_RPI.cpp.

Member Function Documentation

◆ analogPinToDigitalPin()

int8_t GPIO_RPI::analogPinToDigitalPin ( uint8_t  pin)
virtual

Implements AP_HAL::GPIO.

Definition at line 94 of file GPIO_RPI.cpp.

◆ attach_interrupt()

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

Implements AP_HAL::GPIO.

Definition at line 126 of file GPIO_RPI.cpp.

◆ channel()

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

Implements AP_HAL::GPIO.

Definition at line 120 of file GPIO_RPI.cpp.

◆ init()

void GPIO_RPI::init ( void  )
virtual

Implements AP_HAL::GPIO.

Definition at line 42 of file GPIO_RPI.cpp.

Here is the call graph for this function:

◆ pinMode() [1/2]

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

Implements AP_HAL::GPIO.

Definition at line 71 of file GPIO_RPI.cpp.

◆ pinMode() [2/2]

void GPIO_RPI::pinMode ( uint8_t  pin,
uint8_t  output,
uint8_t  alt 
)
virtual

Reimplemented from AP_HAL::GPIO.

Definition at line 81 of file GPIO_RPI.cpp.

◆ read()

uint8_t GPIO_RPI::read ( uint8_t  pin)
virtual

Implements AP_HAL::GPIO.

Definition at line 99 of file GPIO_RPI.cpp.

Referenced by toggle().

Here is the caller graph for this function:

◆ toggle()

void GPIO_RPI::toggle ( uint8_t  pin)
virtual

Implements AP_HAL::GPIO.

Definition at line 114 of file GPIO_RPI.cpp.

Here is the call graph for this function:

◆ usb_connected()

bool GPIO_RPI::usb_connected ( void  )
virtual

Implements AP_HAL::GPIO.

Definition at line 131 of file GPIO_RPI.cpp.

◆ write()

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

Implements AP_HAL::GPIO.

Definition at line 105 of file GPIO_RPI.cpp.

Referenced by toggle().

Here is the caller graph for this function:

Member Data Documentation

◆ _gpio

volatile uint32_t* Linux::GPIO_RPI::_gpio
private

Definition at line 68 of file GPIO_RPI.h.

Referenced by init().


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