Paparazzi UAS  v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
datalink.h File Reference

Handling of messages coming from ground and other A/Cs. More...

#include "std.h"
#include "dl_protocol.h"
+ Include dependency graph for datalink.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define EXTERN   extern
 
#define Swap32IfBigEndian(_)   {}
 
#define PPRZ   1
 Datalink kinds. More...
 
#define XBEE   2
 
#define SUPERBITRF   3
 
#define W5100   4
 
#define BLUEGIGA   5
 
#define MSG_SIZE   128
 
#define DatalinkEvent()
 

Functions

EXTERN void dl_parse_msg (void)
 Should be called when chars are available in dl_buffer. More...
 
static void DlCheckAndParse (void)
 Check for new message and parse. More...
 

Variables

EXTERN bool_t dl_msg_available
 Flag provided to control calls to dl_parse_msg. More...
 
EXTERN uint16_t datalink_time
 time in seconds since last datalink message was received More...
 
EXTERN uint16_t datalink_nb_msgs
 number of datalink/uplink messages received More...
 
EXTERN uint8_t dl_buffer [MSG_SIZE]
 

Detailed Description

Handling of messages coming from ground and other A/Cs.

Definition in file datalink.h.

Macro Definition Documentation

#define BLUEGIGA   5

Definition at line 50 of file datalink.h.

Referenced by downlink_init().

#define DatalinkEvent ( )
Value:
{ \
}
#define PprzCheckAndParse(_dev, _trans)
struct pprz_transport pprz_tp

Definition at line 91 of file datalink.h.

Referenced by event_task_ap(), main_event(), and main_event_task().

#define EXTERN   extern

Definition at line 33 of file datalink.h.

#define MSG_SIZE   128

Definition at line 61 of file datalink.h.

#define PPRZ   1

Datalink kinds.

Definition at line 46 of file datalink.h.

Referenced by downlink_init().

#define SUPERBITRF   3

Definition at line 48 of file datalink.h.

Referenced by downlink_init().

#define Swap32IfBigEndian (   _)    {}

Definition at line 39 of file datalink.h.

#define W5100   4

Definition at line 49 of file datalink.h.

Referenced by downlink_init().

#define XBEE   2

Definition at line 47 of file datalink.h.

Function Documentation

static void DlCheckAndParse ( void  )
inlinestatic

Check for new message and parse.

Definition at line 72 of file datalink.h.

References datalink_nb_msgs, datalink_time, dl_msg_available, dl_parse_msg(), and FALSE.

Referenced by set_datalink_message().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

EXTERN uint16_t datalink_nb_msgs

number of datalink/uplink messages received

Definition at line 59 of file datalink.h.

Referenced by DlCheckAndParse().

EXTERN uint16_t datalink_time

time in seconds since last datalink message was received

Definition at line 56 of file datalink.h.

Referenced by DlCheckAndParse().

EXTERN uint8_t dl_buffer[MSG_SIZE]

Definition at line 62 of file datalink.h.

EXTERN bool_t dl_msg_available

Flag provided to control calls to dl_parse_msg.

NOT used in this module

Definition at line 53 of file datalink.h.

Referenced by DlCheckAndParse().