コード例 #1
0
ファイル: DAPA.C プロジェクト: iplusu/sarp
void
TDAPA::ParportWriteData()
{
  if (ppdev_fd != -1)
    par_write_data(ppdev_fd, &par_data);
  else
    ioport_write(IOBASE, par_data);
}
コード例 #2
0
ファイル: pcrotor.c プロジェクト: DF4OR/hamlib
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;
}