dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
uavtalk_priv.h File Reference

Private include file of the UAVTalk library. More...

#include "uavobjectsinit.h"
#include "pios_semaphore.h"
#include "pios_mutex.h"

Go to the source code of this file.

Data Structures

struct  uavtalk_min_header
 Minimal UAVTalk header without an instance field. More...
 
struct  uavtalk_max_header
 Full UAVTalk header with an instance field. More...
 
struct  filereq_data
 
struct  fileresp_data
 
struct  UAVTalkInputProcessor
 State information for the UAVTalk parser. More...
 
struct  UAVTalkConnectionData
 Information for the physical link. More...
 

Macros

#define UAVTALK_MIN_HEADER_LENGTH   sizeof(uavtalk_min_header)
 
#define UAVTALK_MAX_HEADER_LENGTH   sizeof(uavtalk_max_header)
 
#define UAVTALK_CHECKSUM_LENGTH   sizeof(uavtalk_checksum)
 
#define UAVTALK_MAX_PAYLOAD_LENGTH   (UAVOBJECTS_LARGEST + 1)
 
#define UAVTALK_MIN_PACKET_LENGTH   UAVTALK_MAX_HEADER_LENGTH + UAVTALK_CHECKSUM_LENGTH
 
#define UAVTALK_MAX_PACKET_LENGTH   UAVTALK_MIN_PACKET_LENGTH + UAVTALK_MAX_PAYLOAD_LENGTH
 
#define UAVTALK_CANARI   0xCA
 
#define UAVTALK_WAITFOREVER   -1
 
#define UAVTALK_NOWAIT   0
 
#define UAVTALK_SYNC_VAL   0x3C
 
#define UAVTALK_TYPE_MASK   0x70
 
#define UAVTALK_TYPE_VER   0x20
 
#define UAVTALK_TIMESTAMPED   0x80
 
#define UAVTALK_TYPE_OBJ   (UAVTALK_TYPE_VER | 0x00)
 
#define UAVTALK_TYPE_OBJ_REQ   (UAVTALK_TYPE_VER | 0x01)
 
#define UAVTALK_TYPE_OBJ_ACK   (UAVTALK_TYPE_VER | 0x02)
 
#define UAVTALK_TYPE_ACK   (UAVTALK_TYPE_VER | 0x03)
 
#define UAVTALK_TYPE_NACK   (UAVTALK_TYPE_VER | 0x04)
 
#define UAVTALK_TYPE_FILEREQ   (UAVTALK_TYPE_VER | 0x08)
 
#define UAVTALK_TYPE_FILEDATA   (UAVTALK_TYPE_VER | 0x09)
 
#define UAVTALK_TYPE_OBJ_TS   (UAVTALK_TIMESTAMPED | UAVTALK_TYPE_OBJ)
 
#define UAVTALK_FILEDATA_EOF   0x01
 
#define UAVTALK_FILEDATA_LAST   0x02
 
#define CHECKCONHANDLE(handle, variable, failcommand)
 

Typedefs

typedef uint8_t uavtalk_checksum
 

Functions

struct filereq_data __attribute__ ((packed))
 

Variables

typedef __attribute__
 
uint32_t offset
 
uint16_t flags
 

Detailed Description

Private include file of the UAVTalk library.

Author
The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
Tau Labs, http://taulabs.org, Copyright (C) 2013-2014
See Also
The GNU Public License (GPL) Version 3

Definition in file uavtalk_priv.h.

Variable Documentation

uint8_t flags

Definition at line 52 of file uavtalk_priv.h.

uint32_t offset

Definition at line 51 of file uavtalk_priv.h.