APM:Libraries
Public Member Functions | Private Attributes | List of all members
HALSITL::GPIO Class Reference

#include <GPIO.h>

Inheritance diagram for HALSITL::GPIO:
[legend]
Collaboration diagram for HALSITL::GPIO:
[legend]

Public Member Functions

 GPIO (SITL_State *sitlState)
 
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

SITL_State_sitlState
 

Detailed Description

Definition at line 5 of file GPIO.h.

Constructor & Destructor Documentation

◆ GPIO()

HALSITL::GPIO::GPIO ( SITL_State sitlState)
inlineexplicit

Definition at line 7 of file GPIO.h.

Here is the call graph for this function:

Member Function Documentation

◆ analogPinToDigitalPin()

int8_t HALSITL::GPIO::analogPinToDigitalPin ( uint8_t  pin)
virtual

Implements AP_HAL::GPIO.

Referenced by GPIO().

Here is the caller graph for this function:

◆ attach_interrupt()

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

Implements AP_HAL::GPIO.

Referenced by GPIO().

Here is the caller graph for this function:

◆ channel()

AP_HAL::DigitalSource* HALSITL::GPIO::channel ( uint16_t  n)
virtual

Implements AP_HAL::GPIO.

Referenced by GPIO().

Here is the caller graph for this function:

◆ init()

void HALSITL::GPIO::init ( )
virtual

Implements AP_HAL::GPIO.

Referenced by GPIO().

Here is the caller graph for this function:

◆ pinMode()

void HALSITL::GPIO::pinMode ( uint8_t  pin,
uint8_t  output 
)
virtual

Implements AP_HAL::GPIO.

Referenced by GPIO().

Here is the caller graph for this function:

◆ read()

uint8_t HALSITL::GPIO::read ( uint8_t  pin)
virtual

Implements AP_HAL::GPIO.

Referenced by GPIO().

Here is the caller graph for this function:

◆ toggle()

void HALSITL::GPIO::toggle ( uint8_t  pin)
virtual

Implements AP_HAL::GPIO.

Referenced by GPIO().

Here is the caller graph for this function:

◆ usb_connected()

bool HALSITL::GPIO::usb_connected ( void  )
virtual

Implements AP_HAL::GPIO.

Referenced by GPIO().

Here is the caller graph for this function:

◆ write()

void HALSITL::GPIO::write ( uint8_t  pin,
uint8_t  value 
)
virtual

Implements AP_HAL::GPIO.

Referenced by GPIO().

Here is the caller graph for this function:

Member Data Documentation

◆ _sitlState

SITL_State* HALSITL::GPIO::_sitlState
private

Definition at line 26 of file GPIO.h.


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