Lines Matching defs:dev_handle
387 tHID_STATUS HID_HostRemoveDev ( UINT8 dev_handle )
392 if( (dev_handle >= HID_HOST_MAX_DEVICES) || (!hh_cb.devices[dev_handle].in_use) )
395 HID_HostCloseDev( dev_handle ) ;
396 hh_cb.devices[dev_handle].in_use = FALSE;
397 hh_cb.devices[dev_handle].conn.conn_state = HID_CONN_STATE_UNUSED;
398 hh_cb.devices[dev_handle].conn.ctrl_cid = hh_cb.devices[dev_handle].conn.intr_cid = 0;
413 tHID_STATUS HID_HostOpenDev ( UINT8 dev_handle )
418 if( (dev_handle >= HID_HOST_MAX_DEVICES) || (!hh_cb.devices[dev_handle].in_use) )
421 if( hh_cb.devices[dev_handle].state != HID_DEV_NO_CONN )
424 hh_cb.devices[dev_handle].conn_tries = 1;
425 return hidh_conn_initiate( dev_handle );
440 tHID_STATUS HID_HostWriteDev( UINT8 dev_handle, UINT8 t_type,
451 if( (dev_handle >= HID_HOST_MAX_DEVICES) || (!hh_cb.devices[dev_handle].in_use) )
457 if( hh_cb.devices[dev_handle].state != HID_DEV_CONNECTED )
459 HIDH_TRACE_ERROR1("HID_ERR_NO_CONNECTION dev_handle %d", dev_handle);
469 status = hidh_conn_snd_data( dev_handle, t_type, param, data, report_id, pbuf ) ;
483 tHID_STATUS HID_HostCloseDev( UINT8 dev_handle )
488 if( (dev_handle >= HID_HOST_MAX_DEVICES) || (!hh_cb.devices[dev_handle].in_use) )
491 hh_cb.devices[dev_handle].conn_tries = HID_HOST_MAX_CONN_RETRY+1;
492 btu_stop_timer( &(hh_cb.devices[dev_handle].conn.timer_entry) ) ;
494 if( hh_cb.devices[dev_handle].state != HID_DEV_CONNECTED )
497 hh_cb.devices[dev_handle].conn_tries = HID_HOST_MAX_CONN_RETRY+1;
498 return hidh_conn_disconnect( dev_handle );