[][src]Function linuxcnc_hal_sys::hal_port_peek_commit

pub unsafe extern "C" fn hal_port_peek_commit(
    port: hal_port_t,
    count: c_uint
) -> bool

hal_port_peek_commit advances the read position in the port buffer by count bytes. A hal_port_peek followed by a hal_port_peek_commit with the same count value would function equivalently to hal_port_read given the same count value. This function should only be called by the component that owns the IN PORT pin. returns: true: count readable bytes were skipped and are no longer accessible false: no bytes wer skipped