#include <dev8x.h>
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 |
anonymous enum [private] |
dev8x::dev8x | ( | const char * | pn | ) |
dev8x::~dev8x | ( | ) | [inline] |
int dev8x::configure_port | ( | int | cflags, |
int | iflags | ||
) | [private] |
int dev8x::query_relays | ( | uint8_t * | relays | ) |
int dev8x::read_10bit_port | ( | int | ch, |
int * | data | ||
) |
int dev8x::read_8bit_port | ( | int | ch, |
int * | data | ||
) |
bool dev8x::relays_busy | ( | void | ) |
int dev8x::set_relays | ( | uint8_t | bitmask | ) |
int dev8x::setup | ( | void | ) |
int dev8x::shutdown | ( | void | ) |
uint16_t dev8x::sim_sawtooth | ( | int | ch, |
uint16_t | limit | ||
) |
uint8_t dev8x::buffer[BUFSIZE] [private] |
bool dev8x::have_tty [private] |
char dev8x::port_name[FILENAME_MAX] [private] |
double dev8x::relay_wait_time [private] |
uint16_t dev8x::sim_port[IOADR_MAX_OUTPUTS] [private] |
uint8_t dev8x::sim_relays [private] |
enum { ... } dev8x::state [private] |