APM:Libraries
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
HAL_Linux Class Reference

#include <HAL_Linux_Class.h>

Inheritance diagram for HAL_Linux:
[legend]
Collaboration diagram for HAL_Linux:
[legend]

Public Member Functions

 HAL_Linux ()
 
void run (int argc, char *const *argv, Callbacks *callbacks) const override
 
void setup_signal_handlers () const
 
- Public Member Functions inherited from AP_HAL::HAL
 HAL (AP_HAL::UARTDriver *_uartA, AP_HAL::UARTDriver *_uartB, AP_HAL::UARTDriver *_uartC, AP_HAL::UARTDriver *_uartD, AP_HAL::UARTDriver *_uartE, AP_HAL::UARTDriver *_uartF, AP_HAL::I2CDeviceManager *_i2c_mgr, AP_HAL::SPIDeviceManager *_spi, AP_HAL::AnalogIn *_analogin, AP_HAL::Storage *_storage, AP_HAL::UARTDriver *_console, AP_HAL::GPIO *_gpio, AP_HAL::RCInput *_rcin, AP_HAL::RCOutput *_rcout, AP_HAL::Scheduler *_scheduler, AP_HAL::Util *_util, AP_HAL::OpticalFlow *_opticalflow, AP_HAL::CANManager **_can_mgr)
 
virtual void run (int argc, char *const argv[], Callbacks *callbacks) const =0
 

Static Public Member Functions

static void exit_signal_handler (int)
 

Protected Attributes

bool _should_exit = false
 

Additional Inherited Members

- Public Attributes inherited from AP_HAL::HAL
AP_HAL::UARTDriveruartA
 
AP_HAL::UARTDriveruartB
 
AP_HAL::UARTDriveruartC
 
AP_HAL::UARTDriveruartD
 
AP_HAL::UARTDriveruartE
 
AP_HAL::UARTDriveruartF
 
AP_HAL::I2CDeviceManageri2c_mgr
 
AP_HAL::SPIDeviceManagerspi
 
AP_HAL::AnalogInanalogin
 
AP_HAL::Storagestorage
 
AP_HAL::UARTDriverconsole
 
AP_HAL::GPIOgpio
 
AP_HAL::RCInputrcin
 
AP_HAL::RCOutputrcout
 
AP_HAL::Schedulerscheduler
 
AP_HAL::Utilutil
 
AP_HAL::OpticalFlowopticalflow
 
AP_HAL::CANManager ** can_mgr
 

Detailed Description

Definition at line 5 of file HAL_Linux_Class.h.

Constructor & Destructor Documentation

◆ HAL_Linux()

HAL_Linux::HAL_Linux ( )

Definition at line 224 of file HAL_Linux_Class.cpp.

Member Function Documentation

◆ exit_signal_handler()

void HAL_Linux::exit_signal_handler ( int  signum)
static

Definition at line 400 of file HAL_Linux_Class.cpp.

Referenced by setup_signal_handlers().

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

◆ run()

void HAL_Linux::run ( int  argc,
char *const *  argv,
Callbacks callbacks 
) const
override

Definition at line 273 of file HAL_Linux_Class.cpp.

Here is the call graph for this function:

◆ setup_signal_handlers()

void HAL_Linux::setup_signal_handlers ( ) const

Definition at line 388 of file HAL_Linux_Class.cpp.

Referenced by run().

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

Member Data Documentation

◆ _should_exit

bool HAL_Linux::_should_exit = false
protected

Definition at line 15 of file HAL_Linux_Class.h.

Referenced by exit_signal_handler(), and run().


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