Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
abi_common.h File Reference

Common tools for ABI middelware. More...

+ Include dependency graph for abi_common.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  abi_struct
 Event structure to store callbacks in a linked list. More...
 

Macros

#define ABI_EXTERN   extern
 
#define ABI_BROADCAST   255
 Broadcast address. More...
 
#define ABI_DISABLE   0
 Reserved ABI ID to disable callback. More...
 
#define ABI_FOREACH(head, el)   for(el=head; el; el=el->next)
 Macros for linked list. More...
 
#define ABI_PREPEND(head, add)   { (add)->next = head; head = add; }
 

Typedefs

typedef void(* abi_callback) (void)
 Generic callback definition. More...
 
typedef struct abi_struct abi_event
 

Detailed Description

Common tools for ABI middelware.

Definition in file abi_common.h.


Data Structure Documentation

◆ abi_struct

struct abi_struct

Event structure to store callbacks in a linked list.

Definition at line 67 of file abi_common.h.

+ Collaboration diagram for abi_struct:
Data Fields
abi_callback cb
uint8_t id
struct abi_struct * next

Macro Definition Documentation

◆ ABI_BROADCAST

#define ABI_BROADCAST   255

Broadcast address.

When binding to an ABI message with broadcast address as a sender id, messages from all senders are received.

Definition at line 58 of file abi_common.h.

◆ ABI_DISABLE

#define ABI_DISABLE   0

Reserved ABI ID to disable callback.

When binding to an ABI message with 0 as sender id, the callback is disabled.

Definition at line 64 of file abi_common.h.

◆ ABI_EXTERN

#define ABI_EXTERN   extern

Definition at line 48 of file abi_common.h.

◆ ABI_FOREACH

#define ABI_FOREACH (   head,
  el 
)    for(el=head; el; el=el->next)

Macros for linked list.

Definition at line 75 of file abi_common.h.

◆ ABI_PREPEND

#define ABI_PREPEND (   head,
  add 
)    { (add)->next = head; head = add; }

Definition at line 76 of file abi_common.h.

Typedef Documentation

◆ abi_callback

typedef void(* abi_callback) (void)

Generic callback definition.

Definition at line 52 of file abi_common.h.

◆ abi_event

typedef struct abi_struct abi_event

Definition at line 52 of file abi_common.h.