nidas v1.2.3
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 SOR_DEBUG
 
#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," (actually ",ROS" on little endian) */
 
#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.
 
typedef struct _Tap2D_v2 Tap2D
 This version is for rev2 of Spowarts USB board.
 
typedef struct _Tap2D_v3 Tap2D_v3
 

Macro Definition Documentation

◆ SOR_DEBUG

#define SOR_DEBUG

◆ TWOD_IMG_TYPE

#define TWOD_IMG_TYPE   0

◆ TWOD_IMGv2_TYPE

#define TWOD_IMGv2_TYPE   2

◆ TWOD_IMGv3_TYPE

#define TWOD_IMGv3_TYPE   3

◆ TWOD_SOR_TYPE

#define TWOD_SOR_TYPE   1

◆ TWOD_SORv3_TYPE

#define TWOD_SORv3_TYPE   0x534f522c /* "SOR," (actually ",ROS" on little endian) */

◆ USB2D_GET_STATUS

#define USB2D_GET_STATUS   _IOR(USB2D_IOC_MAGIC,2,struct usb_twod_stats)

◆ USB2D_IOC_MAGIC

#define USB2D_IOC_MAGIC   0x2d

Referenced by twod_ioctl().

◆ USB2D_SET_SOR_RATE

#define USB2D_SET_SOR_RATE   _IOW(USB2D_IOC_MAGIC,1,int)

◆ USB2D_SET_TAS

#define USB2D_SET_TAS   _IOW(USB2D_IOC_MAGIC,0,Tap2D)

Typedef Documentation

◆ Tap2D

typedef struct _Tap2D_v2 Tap2D

This version is for rev2 of Spowarts USB board.

Gives higher TAS resolution.

◆ Tap2D_v3

typedef struct _Tap2D_v3 Tap2D_v3

◆ Tap2Dv1

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.