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
ivy_transport.h File Reference
#include <stdio.h>
#include <Ivy/ivy.h>
+ Include dependency graph for ivy_transport.h:

Go to the source code of this file.

Macros

#define IvyTransportCheckFreeSpace(_dev, _)   TRUE
 
#define IvyTransportSizeOf(_dev, x)   (x)
 
#define IvyTransportHeader(_dev, len)   ivy_p=ivy_buf;
 
#define IvyTransportTrailer(_dev)   { *(--ivy_p) = '\0'; IvySendMsg("%s",ivy_buf); }
 
#define IvyTransportPutUint8(_dev, x)   { ivy_p += sprintf(ivy_p, "%u ", x); }
 
#define IvyTransportPutNamedUint8(_dev, _name, _x)   { ivy_p += sprintf(ivy_p, "%s ", _name); }
 
#define Space()   ivy_p += sprintf(ivy_p, " ");
 
#define Comma()   ivy_p += sprintf(ivy_p, ",");
 
#define IvyTransportPutUintByAddr(_dev, x)   ivy_p += sprintf(ivy_p, "%u", *x);
 
#define IvyTransportPutUint8ByAddr(_dev, x)   IvyTransportPutUintByAddr(_dev,x) Space()
 
#define IvyTransportPutUint16ByAddr(_dev, x)   IvyTransportPutUintByAddr(_dev,x) Space()
 
#define IvyTransportPutUint32ByAddr(_dev, x)   IvyTransportPutUintByAddr(_dev,x) Space()
 
#define IvyTransportPutIntByAddr(_dev, x)   ivy_p += sprintf(ivy_p, "%d", *x);
 
#define IvyTransportPutInt8ByAddr(_dev, x)   IvyTransportPutIntByAddr(_dev,x) Space()
 
#define IvyTransportPutInt16ByAddr(_dev, x)   IvyTransportPutIntByAddr(_dev,x) Space()
 
#define IvyTransportPutInt32ByAddr(_dev, x)   IvyTransportPutIntByAddr(_dev,x) Space()
 
#define IvyTransportPutOneFloatByAddr(_dev, x)   ivy_p += sprintf(ivy_p, "%f", *x);
 
#define IvyTransportPutFloatByAddr(_dev, x)   IvyTransportPutOneFloatByAddr(_dev,x) Space()
 
#define IvyTransportPutDoubleByAddr(_dev, x)   IvyTransportPutOneFloatByAddr(_dev,x) Space()
 
#define IvyTransportPutArray(_dev, _put, _n, _x)
 
#define IvyTransportPutUint8Array(_dev, _n, _x)   IvyTransportPutArray(_dev,IvyTransportPutUintByAddr, _n, _x)
 
#define IvyTransportPutInt16Array(_dev, _n, _x)   IvyTransportPutArray(_dev,IvyTransportPutIntByAddr, _n, _x)
 
#define IvyTransportPutUint16Array(_dev, _n, _x)   IvyTransportPutArray(_dev,IvyTransportPutUintByAddr, _n, _x)
 
#define IvyTransportPutUint32Array(_dev, _n, _x)   IvyTransportPutArray(_dev,IvyTransportPutUintByAddr, _n, _x)
 
#define IvyTransportPutFloatArray(_dev, _n, _x)   IvyTransportPutArray(_dev,IvyTransportPutOneFloatByAddr, _n, _x)
 
#define IvyTransportPutDoubleArray(_dev, _n, _x)   IvyTransportPutFloatArray(_dev,_n, _x)
 

Variables

char ivy_buf []
 
char * ivy_p
 

Macro Definition Documentation

#define Comma ( )    ivy_p += sprintf(ivy_p, ",");

Definition at line 19 of file ivy_transport.h.

#define IvyTransportCheckFreeSpace (   _dev,
 
)    TRUE

Definition at line 7 of file ivy_transport.h.

#define IvyTransportHeader (   _dev,
  len 
)    ivy_p=ivy_buf;

Definition at line 11 of file ivy_transport.h.

#define IvyTransportPutArray (   _dev,
  _put,
  _n,
  _x 
)
Value:
{ \
int __i; \
for(__i = 0; __i < _n; __i++) { \
_put(_dev,&_x[__i]); \
Comma(); \
} \
}
#define Comma()
Definition: ivy_transport.h:19

Definition at line 35 of file ivy_transport.h.

#define IvyTransportPutDoubleArray (   _dev,
  _n,
  _x 
)    IvyTransportPutFloatArray(_dev,_n, _x)

Definition at line 48 of file ivy_transport.h.

#define IvyTransportPutDoubleByAddr (   _dev,
 
)    IvyTransportPutOneFloatByAddr(_dev,x) Space()

Definition at line 33 of file ivy_transport.h.

#define IvyTransportPutFloatArray (   _dev,
  _n,
  _x 
)    IvyTransportPutArray(_dev,IvyTransportPutOneFloatByAddr, _n, _x)

Definition at line 47 of file ivy_transport.h.

#define IvyTransportPutFloatByAddr (   _dev,
 
)    IvyTransportPutOneFloatByAddr(_dev,x) Space()

Definition at line 32 of file ivy_transport.h.

#define IvyTransportPutInt16Array (   _dev,
  _n,
  _x 
)    IvyTransportPutArray(_dev,IvyTransportPutIntByAddr, _n, _x)

Definition at line 44 of file ivy_transport.h.

#define IvyTransportPutInt16ByAddr (   _dev,
 
)    IvyTransportPutIntByAddr(_dev,x) Space()

Definition at line 28 of file ivy_transport.h.

#define IvyTransportPutInt32ByAddr (   _dev,
 
)    IvyTransportPutIntByAddr(_dev,x) Space()

Definition at line 29 of file ivy_transport.h.

#define IvyTransportPutInt8ByAddr (   _dev,
 
)    IvyTransportPutIntByAddr(_dev,x) Space()

Definition at line 27 of file ivy_transport.h.

#define IvyTransportPutIntByAddr (   _dev,
 
)    ivy_p += sprintf(ivy_p, "%d", *x);

Definition at line 26 of file ivy_transport.h.

#define IvyTransportPutNamedUint8 (   _dev,
  _name,
  _x 
)    { ivy_p += sprintf(ivy_p, "%s ", _name); }

Definition at line 16 of file ivy_transport.h.

#define IvyTransportPutOneFloatByAddr (   _dev,
 
)    ivy_p += sprintf(ivy_p, "%f", *x);

Definition at line 31 of file ivy_transport.h.

#define IvyTransportPutUint16Array (   _dev,
  _n,
  _x 
)    IvyTransportPutArray(_dev,IvyTransportPutUintByAddr, _n, _x)

Definition at line 45 of file ivy_transport.h.

#define IvyTransportPutUint16ByAddr (   _dev,
 
)    IvyTransportPutUintByAddr(_dev,x) Space()

Definition at line 23 of file ivy_transport.h.

#define IvyTransportPutUint32Array (   _dev,
  _n,
  _x 
)    IvyTransportPutArray(_dev,IvyTransportPutUintByAddr, _n, _x)

Definition at line 46 of file ivy_transport.h.

#define IvyTransportPutUint32ByAddr (   _dev,
 
)    IvyTransportPutUintByAddr(_dev,x) Space()

Definition at line 24 of file ivy_transport.h.

#define IvyTransportPutUint8 (   _dev,
 
)    { ivy_p += sprintf(ivy_p, "%u ", x); }

Definition at line 15 of file ivy_transport.h.

#define IvyTransportPutUint8Array (   _dev,
  _n,
  _x 
)    IvyTransportPutArray(_dev,IvyTransportPutUintByAddr, _n, _x)

Definition at line 43 of file ivy_transport.h.

#define IvyTransportPutUint8ByAddr (   _dev,
 
)    IvyTransportPutUintByAddr(_dev,x) Space()

Definition at line 22 of file ivy_transport.h.

#define IvyTransportPutUintByAddr (   _dev,
 
)    ivy_p += sprintf(ivy_p, "%u", *x);

Definition at line 21 of file ivy_transport.h.

#define IvyTransportSizeOf (   _dev,
 
)    (x)

Definition at line 9 of file ivy_transport.h.

#define IvyTransportTrailer (   _dev)    { *(--ivy_p) = '\0'; IvySendMsg("%s",ivy_buf); }

Definition at line 13 of file ivy_transport.h.

#define Space ( )    ivy_p += sprintf(ivy_p, " ");

Definition at line 18 of file ivy_transport.h.

Variable Documentation

char ivy_buf[]

Definition at line 1 of file ivy_transport.c.

char* ivy_p

Definition at line 2 of file ivy_transport.c.