Logo Search packages:      
Sourcecode: hamlib version File versions  Download package

int HAMLIB_API ser_set_brk ( hamlib_port_t p,
int  state 
)

Set Break.

Parameters:
p 
state (ignored?)
Returns:
RIG_OK or < 0

Definition at line 492 of file serial.c.

References hamlib_port_t::fd, RIG_EIO, RIG_ENIMPL, and RIG_OK.

{
#if defined(TIOCSBRK) && defined(TIOCCBRK)
      return IOCTL(p->fd, state ? TIOCSBRK : TIOCCBRK, 0 ) < 0 ?
                  -RIG_EIO : RIG_OK;
#else
      return -RIG_ENIMPL;
#endif
}


Generated by  Doxygen 1.6.0   Back to index