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

#include <GPIO.h>

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

Public Member Functions

 DigitalSource (ioline_t line)
 
void mode (uint8_t output)
 
uint8_t read ()
 
void write (uint8_t value)
 
void toggle ()
 

Private Attributes

ioline_t line
 

Detailed Description

Definition at line 59 of file GPIO.h.

Constructor & Destructor Documentation

◆ DigitalSource()

DigitalSource::DigitalSource ( ioline_t  line)

Definition at line 223 of file GPIO.cpp.

Member Function Documentation

◆ mode()

void DigitalSource::mode ( uint8_t  output)
virtual

Implements AP_HAL::DigitalSource.

Definition at line 227 of file GPIO.cpp.

◆ read()

uint8_t DigitalSource::read ( void  )
virtual

Implements AP_HAL::DigitalSource.

Definition at line 232 of file GPIO.cpp.

◆ toggle()

void DigitalSource::toggle ( )
virtual

Implements AP_HAL::DigitalSource.

Definition at line 242 of file GPIO.cpp.

◆ write()

void DigitalSource::write ( uint8_t  value)
virtual

Implements AP_HAL::DigitalSource.

Definition at line 237 of file GPIO.cpp.

Member Data Documentation

◆ line

ioline_t ChibiOS::DigitalSource::line
private

Definition at line 67 of file GPIO.h.

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


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