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

Include file of the UAVTalk library. More...

Go to the source code of this file.

Data Structures

struct  UAVTalkStats
 Tracking statistics for a UAVTalk connection. More...
 

Typedefs

typedef int32_t(* UAVTalkOutputCb )(void *ctx, uint8_t *data, int32_t length)
 
typedef void(* UAVTalkAckCb )(void *ctx, uint32_t obj_id, uint16_t inst_id)
 
typedef void(* UAVTalkReqCb )(void *ctx, uint32_t obj_id, uint16_t inst_id)
 
typedef int32_t(* UAVTalkFileCb )(void *ctx, uint8_t *buf, uint32_t file_id, uint32_t offset, uint32_t len)
 
typedef void * UAVTalkConnection
 

Enumerations

enum  UAVTalkRxState {
  UAVTALK_STATE_ERROR = 0, UAVTALK_STATE_SYNC, UAVTALK_STATE_TYPE, UAVTALK_STATE_SIZE,
  UAVTALK_STATE_OBJID, UAVTALK_STATE_INSTID, UAVTALK_STATE_DATA, UAVTALK_STATE_CS,
  UAVTALK_STATE_COMPLETE
}
 

Functions

UAVTalkConnection UAVTalkInitialize (void *ctx, UAVTalkOutputCb outputStream, UAVTalkAckCb ackCallback, UAVTalkReqCb reqCallback, UAVTalkFileCb fileCallback)
 
int32_t UAVTalkSendObject (UAVTalkConnection connection, UAVObjHandle obj, uint16_t instId, uint8_t acked)
 
int32_t UAVTalkSendObjectTimestamped (UAVTalkConnection connectionHandle, UAVObjHandle obj, uint16_t instId)
 
int32_t UAVTalkSendNack (UAVTalkConnection connectionHandle, uint32_t objId, uint16_t instId)
 
void UAVTalkProcessInputStream (UAVTalkConnection connectionHandle, uint8_t *rxbytes, int numbytes)
 
UAVTalkRxState UAVTalkProcessInputStreamQuiet (UAVTalkConnection connection, uint8_t rxbyte)
 
int32_t UAVTalkRelayPacket (UAVTalkConnection inConnectionHandle, UAVTalkConnection outConnectionHandle)
 
int32_t UAVTalkReceiveObject (UAVTalkConnection connectionHandle)
 
void UAVTalkGetStats (UAVTalkConnection connection, UAVTalkStats *stats)
 
uint32_t UAVTalkGetPacketObjId (UAVTalkConnection connection)
 
uint32_t UAVTalkGetPacketInstId (UAVTalkConnection connection)
 

Detailed Description

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
See Also
The GNU Public License (GPL) Version 3

Definition in file uavtalk.h.