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

datalink forwarder for InterMCU More...

#include "std.h"
#include "pprzlink/pprzlink_device.h"
#include "pprzlink/pprzlink_transport.h"
+ Include dependency graph for intermcu_dl.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  intermcu_dl_t
 

Functions

void intermcu_dl_init (void)
 Init function. More...
 
void intermcu_dl_repack (struct transport_tx *trans, struct link_device *dev, uint8_t *msg, uint8_t size)
 repack a message and send on device More...
 
void intermcu_dl_on_msg (uint8_t *msg, uint8_t size)
 function to forward telemetry on new message More...
 

Variables

struct intermcu_dl_t intermcu_dl
 

Detailed Description

datalink forwarder for InterMCU

Definition in file intermcu_dl.h.


Data Structure Documentation

◆ intermcu_dl_t

struct intermcu_dl_t

Definition at line 34 of file intermcu_dl.h.

+ Collaboration diagram for intermcu_dl_t:
Data Fields
struct link_device * dev Device structure for communication.
struct transport_tx * trans Forwarding transport.

Function Documentation

◆ intermcu_dl_init()

void intermcu_dl_init ( void  )

Init function.

Definition at line 40 of file intermcu_dl.c.

References intermcu_dl_t::dev, intermcu_dl, and intermcu_dl_t::trans.

◆ intermcu_dl_on_msg()

void intermcu_dl_on_msg ( uint8_t msg,
uint8_t  size 
)

function to forward telemetry on new message

Parameters
msgpointer to the message buffer
sizesize of the message to send

function to forward telemetry on new message

Definition at line 79 of file intermcu_dl.c.

References intermcu_dl_t::dev, intermcu_dl, intermcu_dl_repack(), msg, and intermcu_dl_t::trans.

Referenced by intermcu_event().

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

◆ intermcu_dl_repack()

void intermcu_dl_repack ( struct transport_tx *  trans,
struct link_device *  dev,
uint8_t msg,
uint8_t  size 
)

repack a message and send on device

Parameters
transpointer to the TX transport
devpointer to the sending device
msgpointer to the message buffer
sizesize of the message to send

repack a message and send on device

Definition at line 57 of file intermcu_dl.c.

References dev, and msg.

Referenced by intermcu_dl_on_msg(), and intermcu_forward_uplink().

+ Here is the caller graph for this function:

Variable Documentation

◆ intermcu_dl

struct intermcu_dl_t intermcu_dl
extern

Definition at line 1 of file intermcu_dl.c.

Referenced by intermcu_dl_init(), and intermcu_dl_on_msg().