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

#include <GPIO.h>

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

Public Member Functions

 DigitalSource (const gpio_dev *device, uint8_t bit)
 
void mode (uint8_t output)
 
uint8_t read ()
 
void write (uint8_t value)
 
uint8_t _read ()
 
void _write (uint8_t value)
 
void toggle ()
 

Private Attributes

const gpio_dev_device
 
uint8_t _bit
 

Detailed Description

Definition at line 106 of file GPIO.h.

Constructor & Destructor Documentation

◆ DigitalSource()

F4Light::DigitalSource::DigitalSource ( const gpio_dev device,
uint8_t  bit 
)
inline

Definition at line 108 of file GPIO.h.

Referenced by F4Light::GPIO::get_channel().

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

Member Function Documentation

◆ _read()

uint8_t F4Light::DigitalSource::_read ( )
inline

Definition at line 115 of file GPIO.h.

Referenced by read().

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

◆ _write()

void F4Light::DigitalSource::_write ( uint8_t  value)
inline

Definition at line 116 of file GPIO.h.

Referenced by F4Light::SPIDevice::send_strobe(), F4Light::SPIDevice::spi_isr(), and write().

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

◆ mode()

void DigitalSource::mode ( uint8_t  output)
virtual

Implements AP_HAL::DigitalSource.

Definition at line 155 of file GPIO.cpp.

Referenced by DigitalSource(), exti_out_mode(), F4Light::GPIO::init(), and F4Light::SPIDevice::init().

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

◆ read()

uint8_t DigitalSource::read ( void  )
inlinevirtual

Implements AP_HAL::DigitalSource.

Definition at line 112 of file GPIO.h.

Referenced by F4Light::GPIO::init().

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

◆ toggle()

void DigitalSource::toggle ( )
inlinevirtual

Implements AP_HAL::DigitalSource.

Definition at line 118 of file GPIO.h.

Referenced by F4Light::GPIO::init().

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

◆ write()

void DigitalSource::write ( uint8_t  value)
inlinevirtual

Implements AP_HAL::DigitalSource.

Definition at line 113 of file GPIO.h.

Referenced by F4Light::SPIDevice::_cs_assert(), F4Light::SPIDevice::_cs_release(), and F4Light::GPIO::init().

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

Member Data Documentation

◆ _bit

uint8_t F4Light::DigitalSource::_bit
private

Definition at line 122 of file GPIO.h.

Referenced by _read(), _write(), and toggle().

◆ _device

const gpio_dev* F4Light::DigitalSource::_device
private

Definition at line 121 of file GPIO.h.

Referenced by _read(), _write(), and toggle().


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