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

#include <GPIO.h>

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

Public Member Functions

 DigitalSource (uint8_t v)
 
void mode (uint8_t output)
 
uint8_t read ()
 
void write (uint8_t value)
 
void toggle ()
 

Private Attributes

uint8_t _v
 

Detailed Description

Definition at line 7 of file GPIO.h.

Constructor & Destructor Documentation

◆ DigitalSource()

DigitalSource::DigitalSource ( uint8_t  v)

Definition at line 9 of file GPIO.cpp.

Member Function Documentation

◆ mode()

void DigitalSource::mode ( uint8_t  output)
virtual

Implements AP_HAL::DigitalSource.

Definition at line 15 of file GPIO.cpp.

Here is the call graph for this function:

◆ read()

uint8_t DigitalSource::read ( void  )
virtual

Implements AP_HAL::DigitalSource.

Definition at line 20 of file GPIO.cpp.

Referenced by toggle().

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

◆ toggle()

void DigitalSource::toggle ( )
virtual

Implements AP_HAL::DigitalSource.

Definition at line 30 of file GPIO.cpp.

Here is the call graph for this function:

◆ write()

void DigitalSource::write ( uint8_t  value)
virtual

Implements AP_HAL::DigitalSource.

Definition at line 25 of file GPIO.cpp.

Referenced by toggle().

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

Member Data Documentation

◆ _v

uint8_t Linux::DigitalSource::_v
private

Definition at line 15 of file GPIO.h.

Referenced by mode(), read(), and write().


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