APM:Libraries
Public Member Functions | Private Attributes | List of all members
AP_HAL::HAL::FunCallbacks Struct Reference

#include <HAL.h>

Inheritance diagram for AP_HAL::HAL::FunCallbacks:
[legend]
Collaboration diagram for AP_HAL::HAL::FunCallbacks:
[legend]

Public Member Functions

 FunCallbacks (void(*setup_fun)(void), void(*loop_fun)(void))
 
void setup () override
 
void loop () override
 

Private Attributes

void(* _setup )(void)
 
void(* _loop )(void)
 

Detailed Description

Definition at line 87 of file HAL.h.

Constructor & Destructor Documentation

◆ FunCallbacks()

AP_HAL::HAL::FunCallbacks::FunCallbacks ( void(*)(void)  setup_fun,
void(*)(void)  loop_fun 
)

Definition at line 7 of file HAL.cpp.

Member Function Documentation

◆ loop()

void AP_HAL::HAL::FunCallbacks::loop ( void  )
inlineoverridevirtual

Implements AP_HAL::HAL::Callbacks.

Definition at line 91 of file HAL.h.

◆ setup()

void AP_HAL::HAL::FunCallbacks::setup ( void  )
inlineoverridevirtual

Implements AP_HAL::HAL::Callbacks.

Definition at line 90 of file HAL.h.

Member Data Documentation

◆ _loop

void(* AP_HAL::HAL::FunCallbacks::_loop) (void)
private

Definition at line 95 of file HAL.h.

◆ _setup

void(* AP_HAL::HAL::FunCallbacks::_setup) (void)
private

Definition at line 94 of file HAL.h.


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