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
ivy_transport.c File Reference

Building Paparazzi frames over IVY. More...

#include "std.h"
#include "subsystems/datalink/ivy_transport.h"
#include "subsystems/datalink/downlink.h"
#include "subsystems/datalink/transport.h"
#include <stdio.h>
#include <Ivy/ivy.h>
+ Include dependency graph for ivy_transport.c:

Go to the source code of this file.

Functions

static void put_bytes (struct ivy_transport *trans, struct link_device *dev, enum TransportDataType type, enum TransportDataFormat format, uint8_t len, const void *bytes)
 
static void put_named_byte (struct ivy_transport *trans, struct link_device *dev, enum TransportDataType type, enum TransportDataFormat format, uint8_t byte, const char *name)
 
static uint8_t size_of (struct ivy_transport *trans, uint8_t len)
 
static void start_message (struct ivy_transport *trans, struct link_device *dev, uint8_t payload_len)
 
static void end_message (struct ivy_transport *trans, struct link_device *dev)
 
static void overrun (struct ivy_transport *trans, struct link_device *dev)
 
static void count_bytes (struct ivy_transport *trans, struct link_device *dev, uint8_t bytes)
 
static int check_available_space (struct ivy_transport *trans, struct link_device *dev, uint8_t bytes)
 
static int check_free_space (struct ivy_transport *p, uint8_t len)
 
static void transmit (struct ivy_transport *p, uint8_t byte)
 
static void send_message (struct ivy_transport *p)
 
static int null_function (struct ivy_transport *p)
 
void ivy_transport_init (void)
 

Variables

struct ivy_transport ivy_tp
 

Detailed Description

Building Paparazzi frames over IVY.

Definition in file ivy_transport.c.

Function Documentation

static int check_available_space ( struct ivy_transport trans,
struct link_device dev,
uint8_t  bytes 
)
static

Definition at line 173 of file ivy_transport.c.

References TRUE.

Referenced by ivy_transport_init().

+ Here is the caller graph for this function:

static int check_free_space ( struct ivy_transport p,
uint8_t  len 
)
static

Definition at line 179 of file ivy_transport.c.

References TRUE.

Referenced by ivy_transport_init().

+ Here is the caller graph for this function:

static void count_bytes ( struct ivy_transport trans,
struct link_device dev,
uint8_t  bytes 
)
static

Definition at line 167 of file ivy_transport.c.

References link_device::nb_bytes.

Referenced by ivy_transport_init().

+ Here is the caller graph for this function:

static void end_message ( struct ivy_transport trans,
struct link_device dev 
)
static

Definition at line 152 of file ivy_transport.c.

References ivy_transport::ivy_buf, ivy_transport::ivy_dl_enabled, ivy_transport::ivy_p, and link_device::nb_msgs.

Referenced by ivy_transport_init().

+ Here is the caller graph for this function:

static int null_function ( struct ivy_transport p)
static

Definition at line 182 of file ivy_transport.c.

Referenced by ivy_transport_init().

+ Here is the caller graph for this function:

static void overrun ( struct ivy_transport trans,
struct link_device dev 
)
static

Definition at line 161 of file ivy_transport.c.

References link_device::nb_ovrn.

Referenced by ivy_transport_init().

+ Here is the caller graph for this function:

static void put_bytes ( struct ivy_transport trans,
struct link_device dev,
enum TransportDataType  type,
enum TransportDataFormat  format,
uint8_t  len,
const void *  bytes 
)
static
static void put_named_byte ( struct ivy_transport trans,
struct link_device dev,
enum TransportDataType  type,
enum TransportDataFormat  format,
uint8_t  byte,
const char *  name 
)
static

Definition at line 134 of file ivy_transport.c.

References ivy_transport::ivy_p.

Referenced by ivy_transport_init().

+ Here is the caller graph for this function:

static void send_message ( struct ivy_transport p)
static

Definition at line 181 of file ivy_transport.c.

Referenced by ivy_transport_init().

+ Here is the caller graph for this function:

static uint8_t size_of ( struct ivy_transport trans,
uint8_t  len 
)
static

Definition at line 141 of file ivy_transport.c.

Referenced by ivy_transport_init().

+ Here is the caller graph for this function:

static void start_message ( struct ivy_transport trans,
struct link_device dev,
uint8_t  payload_len 
)
static

Definition at line 146 of file ivy_transport.c.

References ivy_transport::ivy_buf, and ivy_transport::ivy_p.

Referenced by ivy_transport_init().

+ Here is the caller graph for this function:

static void transmit ( struct ivy_transport p,
uint8_t  byte 
)
static

Definition at line 180 of file ivy_transport.c.

Referenced by ivy_transport_init().

+ Here is the caller graph for this function:

Variable Documentation

struct ivy_transport ivy_tp

Definition at line 38 of file ivy_transport.c.

Referenced by ivy_transport_init(), and update_dl_status().