APM:Libraries
Public Member Functions | Private Attributes | List of all members
PX4::PX4DigitalSource Class Reference

#include <GPIO.h>

Inheritance diagram for PX4::PX4DigitalSource:
[legend]
Collaboration diagram for PX4::PX4DigitalSource:
[legend]

Public Member Functions

 PX4DigitalSource (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 65 of file GPIO.h.

Constructor & Destructor Documentation

◆ PX4DigitalSource()

PX4DigitalSource::PX4DigitalSource ( uint8_t  v)

Definition at line 297 of file GPIO.cpp.

Member Function Documentation

◆ mode()

void PX4DigitalSource::mode ( uint8_t  output)
virtual

Implements AP_HAL::DigitalSource.

Definition at line 301 of file GPIO.cpp.

◆ read()

uint8_t PX4DigitalSource::read ( void  )
virtual

Implements AP_HAL::DigitalSource.

Definition at line 304 of file GPIO.cpp.

◆ toggle()

void PX4DigitalSource::toggle ( )
virtual

Implements AP_HAL::DigitalSource.

Definition at line 312 of file GPIO.cpp.

◆ write()

void PX4DigitalSource::write ( uint8_t  value)
virtual

Implements AP_HAL::DigitalSource.

Definition at line 308 of file GPIO.cpp.

Member Data Documentation

◆ _v

uint8_t PX4::PX4DigitalSource::_v
private

Definition at line 73 of file GPIO.h.

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


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