pub unsafe extern "C" fn ec_waitinframe(
    idx: uint8,
    timeout: c_int
) -> c_int