Paparazzi UAS  v5.0.5_stable-7-g4b8bbb7
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
udp.c File Reference
#include "subsystems/datalink/udp.h"
#include "fms/fms_network.h"
#include <string.h>
+ Include dependency graph for udp.c:

Go to the source code of this file.

Macros

#define LINK_HOST   "192.168.1.0"
 
#define LINK_PORT   4242
 
#define DATALINK_PORT   4243
 
#define FMS_NETWORK_BROADCAST   TRUE
 

Functions

void udp_init (void)
 
void udp_transmit (uint8_t data)
 
void udp_send (void)
 
void udp_receive (void)
 

Variables

char udp_buffer [1496]
 
unsigned char udp_read_buffer [128]
 
uint16_t udp_buffer_id
 
uint8_t ck_a
 
uint8_t ck_b
 
struct FmsNetwork * network
 

Macro Definition Documentation

#define DATALINK_PORT   4243

Definition at line 35 of file udp.c.

Referenced by udp_init().

#define FMS_NETWORK_BROADCAST   TRUE

Definition at line 38 of file udp.c.

Referenced by udp_init().

#define LINK_HOST   "192.168.1.0"

Definition at line 29 of file udp.c.

Referenced by udp_init().

#define LINK_PORT   4242

Definition at line 32 of file udp.c.

Referenced by udp_init().

Function Documentation

void udp_init ( void  )

Definition at line 48 of file udp.c.

References DATALINK_PORT, FMS_NETWORK_BROADCAST, LINK_HOST, LINK_PORT, network, and udp_buffer_id.

Referenced by main_init().

+ Here is the caller graph for this function:

void udp_receive ( void  )

Definition at line 63 of file udp.c.

References dl_buffer, dl_msg_available, network, STX, TRANSPORT_PAYLOAD_LEN, TRUE, and udp_read_buffer.

void udp_send ( void  )

Definition at line 58 of file udp.c.

References network, udp_buffer, and udp_buffer_id.

void udp_transmit ( uint8_t  data)

Definition at line 53 of file udp.c.

References udp_buffer, and udp_buffer_id.

Variable Documentation

uint8_t ck_a

Definition at line 45 of file udp.c.

uint8_t ck_b

Definition at line 45 of file udp.c.

struct FmsNetwork* network

Definition at line 46 of file udp.c.

Referenced by udp_init(), udp_receive(), and udp_send().

char udp_buffer[1496]

Definition at line 42 of file udp.c.

Referenced by udp_send(), and udp_transmit().

uint16_t udp_buffer_id

Definition at line 44 of file udp.c.

Referenced by udp_init(), udp_send(), and udp_transmit().

unsigned char udp_read_buffer[128]

Definition at line 43 of file udp.c.

Referenced by udp_receive().