nidas  v1.2-1520
Classes | Macros | Typedefs
usbtwod.h File Reference
#include <nidas/linux/types.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <errno.h>
#include <nidas/linux/util.h>

Go to the source code of this file.

Classes

struct  usb_twod_stats
 Statistics gathered by the PMS2D USB driver. More...
 
struct  _Tap2D_v1
 Struct to adjust probe slice rate for true airspeed. More...
 
struct  _Tap2D_v2
 This version is for rev2 of Spowarts USB board. More...
 
struct  _Tap2D_v3
 

Macros

#define USB2D_IOC_MAGIC   0x2d
 
#define USB2D_SET_TAS   _IOW(USB2D_IOC_MAGIC,0,Tap2D)
 
#define USB2D_SET_SOR_RATE   _IOW(USB2D_IOC_MAGIC,1,int)
 
#define USB2D_GET_STATUS   _IOR(USB2D_IOC_MAGIC,2,struct usb_twod_stats)
 
#define TWOD_IMG_TYPE   0
 
#define TWOD_SOR_TYPE   1
 
#define TWOD_SORv3_TYPE   0x534f522c /* SOR, */
 
#define TWOD_IMGv2_TYPE   2
 
#define TWOD_IMGv3_TYPE   3
 

Typedefs

typedef struct _Tap2D_v1 Tap2Dv1
 Struct to adjust probe slice rate for true airspeed. More...
 
typedef struct _Tap2D_v2 Tap2D
 This version is for rev2 of Spowarts USB board. More...
 
typedef struct _Tap2D_v3 Tap2D_v3
 

Macro Definition Documentation

#define TWOD_IMG_TYPE   0
#define TWOD_IMGv2_TYPE   2
#define TWOD_IMGv3_TYPE   3
#define TWOD_SOR_TYPE   1
#define TWOD_SORv3_TYPE   0x534f522c /* SOR, */
#define USB2D_GET_STATUS   _IOR(USB2D_IOC_MAGIC,2,struct usb_twod_stats)
#define USB2D_IOC_MAGIC   0x2d

Referenced by twod_ioctl().

#define USB2D_SET_SOR_RATE   _IOW(USB2D_IOC_MAGIC,1,int)
#define USB2D_SET_TAS   _IOW(USB2D_IOC_MAGIC,0,Tap2D)

Typedef Documentation

typedef struct _Tap2D_v2 Tap2D

This version is for rev2 of Spowarts USB board.

Gives higher TAS resolution.

typedef struct _Tap2D_v3 Tap2D_v3
typedef struct _Tap2D_v1 Tap2Dv1

Struct to adjust probe slice rate for true airspeed.

True airspeed arrives at the sensor class which then converts it into this struct. It is then passed to the PMS2D USB driver and then on to the probe itself. This struct is also then recorded with each buffer that comes back from the probe.

This covers versions of the probe through June 22nd 2009. CJW.