ardupilot/libraries/AP_HAL/AP_HAL_Namespace.h

73 lines
1.5 KiB
C
Raw Normal View History

#pragma once
#include "string.h"
#include "utility/functor.h"
namespace AP_HAL {
/* Toplevel pure virtual class Hal.*/
class HAL;
/* Toplevel class names for drivers: */
class UARTDriver;
class I2CDevice;
class I2CDeviceManager;
class Device;
class SPIDevice;
class SPIDeviceDriver;
class SPIDeviceManager;
2012-09-10 23:05:02 -03:00
class AnalogSource;
class AnalogIn;
class Storage;
class DigitalSource;
class PWMSource;
class GPIO;
class RCInput;
class RCOutput;
class Scheduler;
2020-05-31 09:09:21 -03:00
class EventHandle;
class EventSource;
class Semaphore;
class OpticalFlow;
class DSP;
class WSPIDevice;
class WSPIDeviceDriver;
class WSPIDeviceManager;
2021-05-29 16:48:41 -03:00
class CANIface;
class CANFrame;
class Util;
class Flash;
/* Utility Classes */
class Print;
class Stream;
class BetterStream;
/* Typdefs for function pointers (Procedure, Member Procedure)
For member functions we use the FastDelegate delegates class
which allows us to encapsulate a member function as a type
*/
typedef void(*Proc)(void);
FUNCTOR_TYPEDEF(MemberProc, void);
/**
* Global names for all of the existing SPI devices on all platforms.
*/
enum SPIDeviceType {
// Devices using AP_HAL::SPIDevice abstraction
SPIDevice_Type = -1,
};
class SIMState;
// Must be implemented by the concrete HALs.
const HAL& get_HAL();
}