27#ifndef NIDAS_DYNLD_UIO48SENSOR_H
28#define NIDAS_DYNLD_UIO48SENSOR_H
30#include <nidas/Config.h>
41namespace nidas {
namespace dynld {
53 Uio48(
int npins = 48);
56 int getFd()
const {
return _fd; }
63 void open(
const std::string&
device);
116 const std::string& getName()
const {
return _devName; }
119 std::string _devName;
127 Uio48& operator=(
const Uio48&);
147 void open(
int flags);
163 bool process(
const Sample* insamp,std::list<const Sample*>& results)
throw();
180 void setFd(
int val) { _fd = val; }
185 Uio48LooperClient(
const DSMSensor& sensor, Uio48& uio,
int pipefd);
189 void setFd(
int val) { _pipefd = val; }
194 std::vector<unsigned char> _buffer;
197 Uio48LooperClient(
const Uio48LooperClient&);
200 Uio48LooperClient& operator=(
const Uio48LooperClient&);
DSMSensor provides the basic support for reading, processing and distributing samples from a sensor a...
Definition DSMSensor.h:88
virtual void close()
close my associated device.
Definition DSMSensor.cc:344
An interface to an IO device.
Definition IODevice.h:42
Interface of a client of Looper.
Definition LooperClient.h:38
A scanner of sample data.
Definition SampleScanner.h:74
Class describing a group of variables that are sampled and handled together.
Definition SampleTag.h:88
Interface to a data sample.
Definition Sample.h:190
A basic Unix I/O device, such as a named pipe, or a watched file.
Definition UnixIODevice.h:49
Nidas sensor support for UIO48 digital I/O chip on a PCM-C418 Vortex CPU.
Definition Uio48Sensor.h:135
~Uio48Sensor()
Definition Uio48Sensor.cc:166
SampleTag * _stag
Definition Uio48Sensor.h:210
void init()
Definition Uio48Sensor.cc:170
IODevice * buildIODevice()
Factory method for an IODevice for this DSMSensor.
Definition Uio48Sensor.cc:226
Uio48Sensor & operator=(const Uio48Sensor &)
No assignment.
void open(int flags)
Open the UIO48 device and the pipe which sends data to Nidas.
Definition Uio48Sensor.cc:271
SampleScanner * buildSampleScanner()
Factory method for a SampleScanner for this DSMSensor.
Definition Uio48Sensor.cc:238
Uio48Sensor(const Uio48Sensor &)
No copying.
int _nvars
Definition Uio48Sensor.h:208
Uio48Sensor()
Definition Uio48Sensor.cc:158
bool process(const Sample *insamp, std::list< const Sample * > &results)
Apply further necessary processing to a raw sample from this DSMSensor.
Definition Uio48Sensor.cc:194
void validate()
Definition Uio48Sensor.cc:174
A class for holding bits.
Definition BitArray.h:39
The essential core classes of nidas.
Definition A2DConverter.h:31
Sample * getSample(sampleType type, unsigned int len)
A convienence method for getting a sample of an enumerated type from a pool.
Definition Sample.cc:70
Root namespace for the NCAR In-Situ Data Acquisition Software.
Definition A2DConverter.h:31
static string device
Definition sing.cc:60