$search

dev8x Class Reference

#include <dev8x.h>

List of all members.

Public Member Functions

 dev8x (const char *pn)
int query_relays (uint8_t *relays)
int read_10bit_port (int ch, int *data)
int read_8bit_port (int ch, int *data)
bool relays_busy (void)
int set_relays (uint8_t bitmask)
int setup ()
int shutdown ()
uint16_t sim_sawtooth (int ch, uint16_t limit)
 ~dev8x ()

Private Types

enum  { UNREADY, READY, RELAY_WAIT }

Private Member Functions

int configure_port (int cflags, int iflags)

Private Attributes

uint8_t buffer [BUFSIZE]
int fd
bool have_tty
char port_name [FILENAME_MAX]
double relay_wait_time
uint16_t sim_port [IOADR_MAX_OUTPUTS]
uint8_t sim_relays
enum dev8x:: { ... }  state

Detailed Description

Definition at line 30 of file dev8x.h.


Member Enumeration Documentation

anonymous enum [private]
Enumerator:
UNREADY 
READY 
RELAY_WAIT 

Definition at line 50 of file dev8x.h.


Constructor & Destructor Documentation

dev8x::dev8x ( const char *  pn  ) 

Definition at line 30 of file dev8x.cc.

dev8x::~dev8x (  )  [inline]

Definition at line 35 of file dev8x.h.


Member Function Documentation

int dev8x::configure_port ( int  cflags,
int  iflags 
) [private]

Definition at line 74 of file dev8x.cc.

int dev8x::query_relays ( uint8_t *  relays  ) 

Definition at line 120 of file dev8x.cc.

int dev8x::read_10bit_port ( int  ch,
int *  data 
)

Definition at line 183 of file dev8x.cc.

int dev8x::read_8bit_port ( int  ch,
int *  data 
)

Definition at line 152 of file dev8x.cc.

bool dev8x::relays_busy ( void   ) 

Definition at line 228 of file dev8x.cc.

int dev8x::set_relays ( uint8_t  bitmask  ) 

Definition at line 249 of file dev8x.cc.

int dev8x::setup ( void   ) 

Definition at line 45 of file dev8x.cc.

int dev8x::shutdown ( void   ) 

Definition at line 66 of file dev8x.cc.

uint16_t dev8x::sim_sawtooth ( int  ch,
uint16_t  limit 
)

Definition at line 295 of file dev8x.cc.


Member Data Documentation

uint8_t dev8x::buffer[BUFSIZE] [private]

Definition at line 59 of file dev8x.h.

int dev8x::fd [private]

Definition at line 60 of file dev8x.h.

bool dev8x::have_tty [private]

Definition at line 58 of file dev8x.h.

char dev8x::port_name[FILENAME_MAX] [private]

Definition at line 57 of file dev8x.h.

double dev8x::relay_wait_time [private]

Definition at line 52 of file dev8x.h.

uint16_t dev8x::sim_port[IOADR_MAX_OUTPUTS] [private]

Definition at line 63 of file dev8x.h.

uint8_t dev8x::sim_relays [private]

Definition at line 64 of file dev8x.h.

enum { ... } dev8x::state [private]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines


art_servo
Author(s): Austin Robot Technology, Jack O'Quin
autogenerated on Fri Mar 1 14:13:42 2013