Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
syslink_dl.h File Reference
#include "modules/datalink/bitcraze/syslink.h"
#include "modules/datalink/bitcraze/crtp.h"
#include "pprzlink/pprzlink_device.h"
+ Include dependency graph for syslink_dl.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

Macros

#define CRTP_BUF_LEN   16
 
#define SYSLINK_RX_BUF_LEN   256
 

Functions

void syslink_dl_init (void)
 Init function. More...
 
void syslink_dl_periodic (void)
 Periodic function. More...
 
void syslink_dl_event (void)
 Datalink event. More...
 

Variables

struct syslink_dl syslink
 

Detailed Description

Syslink protocol handling and functionalities

Definition in file syslink_dl.h.


Data Structure Documentation

◆ syslink_dl

struct syslink_dl

Definition at line 38 of file syslink_dl.h.

+ Collaboration diagram for syslink_dl:
Data Fields
bool charging battery charging
struct link_device device
syslink_message_t msg_rx last received syslink message
crtp_message_t msg_tx[CRTP_BUF_LEN] queued crtp packets to be send
bool powered USB powered.
uint8_t rssi
uint8_t rx_buf[SYSLINK_RX_BUF_LEN] received pprzlink bytes from syslink/crtp
uint8_t rx_extract_idx rx extract index
uint8_t rx_insert_idx rx insert index
syslink_parse_state state syslink parser state
uint8_t tx_extract_idx tx extract index
uint8_t tx_insert_idx tx insert index

Macro Definition Documentation

◆ CRTP_BUF_LEN

#define CRTP_BUF_LEN   16

Definition at line 35 of file syslink_dl.h.

◆ SYSLINK_RX_BUF_LEN

#define SYSLINK_RX_BUF_LEN   256

Definition at line 36 of file syslink_dl.h.

Function Documentation

◆ syslink_dl_event()

void syslink_dl_event ( void  )

Datalink event.

Definition at line 413 of file syslink_dl.c.

References handle_new_msg(), syslink_dl::msg_rx, syslink_dl::state, syslink, syslink_parse_char(), uart_char_available(), and uart_getch().

+ Here is the call graph for this function:

◆ syslink_dl_init()

◆ syslink_dl_periodic()

void syslink_dl_periodic ( void  )

Periodic function.

Definition at line 397 of file syslink_dl.c.

References syslink_dl::charging, LED_OFF, LED_ON, LED_TOGGLE, syslink_dl::powered, and syslink.

Variable Documentation

◆ syslink