Paparazzi UAS  v5.17_devel-24-g2ae834f
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
syslink_dl.h File Reference

Syslink protocol handling and functionalities. More...

#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


#define CRTP_BUF_LEN   16
#define SYSLINK_RX_BUF_LEN   256


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


struct syslink_dl syslink

Detailed Description

Syslink protocol handling and functionalities.

Definition in file syslink_dl.h.

Data Structure Documentation

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

#define CRTP_BUF_LEN   16
#define SYSLINK_RX_BUF_LEN   256

Definition at line 36 of file syslink_dl.h.

Referenced by handle_raw(), syslink_char_available(), and syslink_getch().

Function Documentation

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:

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