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

#include <GPIO_BBB.h>

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

Classes

struct  GPIO
 

Public Member Functions

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

Private Attributes

struct Linux::GPIO_BBB::GPIO gpio_bank [LINUX_GPIO_NUM_BANKS]
 

Detailed Description

Definition at line 112 of file GPIO_BBB.h.

Constructor & Destructor Documentation

◆ GPIO_BBB()

GPIO_BBB::GPIO_BBB ( )

Definition at line 22 of file GPIO_BBB.cpp.

Member Function Documentation

◆ analogPinToDigitalPin()

int8_t GPIO_BBB::analogPinToDigitalPin ( uint8_t  pin)
virtual

Implements AP_HAL::GPIO.

Definition at line 80 of file GPIO_BBB.cpp.

◆ attach_interrupt()

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

Implements AP_HAL::GPIO.

Definition at line 122 of file GPIO_BBB.cpp.

◆ channel()

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

Implements AP_HAL::GPIO.

Definition at line 117 of file GPIO_BBB.cpp.

◆ init()

void GPIO_BBB::init ( void  )
virtual

Implements AP_HAL::GPIO.

Definition at line 25 of file GPIO_BBB.cpp.

Here is the call graph for this function:

◆ pinMode()

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

Implements AP_HAL::GPIO.

Definition at line 66 of file GPIO_BBB.cpp.

◆ read()

uint8_t GPIO_BBB::read ( uint8_t  pin)
virtual

Implements AP_HAL::GPIO.

Definition at line 86 of file GPIO_BBB.cpp.

Referenced by toggle().

Here is the caller graph for this function:

◆ toggle()

void GPIO_BBB::toggle ( uint8_t  pin)
virtual

Implements AP_HAL::GPIO.

Definition at line 111 of file GPIO_BBB.cpp.

Here is the call graph for this function:

◆ usb_connected()

bool GPIO_BBB::usb_connected ( void  )
virtual

Implements AP_HAL::GPIO.

Definition at line 127 of file GPIO_BBB.cpp.

◆ write()

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

Implements AP_HAL::GPIO.

Definition at line 97 of file GPIO_BBB.cpp.

Referenced by toggle().

Here is the caller graph for this function:

Member Data Documentation

◆ gpio_bank

struct Linux::GPIO_BBB::GPIO Linux::GPIO_BBB::gpio_bank[LINUX_GPIO_NUM_BANKS]
private

Referenced by init(), pinMode(), read(), and write().


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