void TDAPA::ParportWriteData() { if (ppdev_fd != -1) par_write_data(ppdev_fd, &par_data); else ioport_write(IOBASE, par_data); }
static int setDirection(hamlib_port_t *port, unsigned char outputvalue) { int ret; par_lock (port); /* set the data bits. * Should we read before write to not trample the lower significant bits? */ ret = par_write_data(port, outputvalue); par_unlock (port); return ret; }