Exemplo n.º 1
0
Arquivo: DAPA.C Projeto: iplusu/sarp
void
TDAPA::ParportWriteData()
{
  if (ppdev_fd != -1)
    par_write_data(ppdev_fd, &par_data);
  else
    ioport_write(IOBASE, par_data);
}
Exemplo n.º 2
0
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;
}