diff options
| author | hathach <[email protected]> | 2013-05-14 03:03:54 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-05-14 03:03:54 +0700 |
| commit | f8d1c3da3ea65853bed37a22d438407df95c75f8 (patch) | |
| tree | 98e72c37a8e4fdf73c356ccc0c801e9cc8b1f97d /tinyusb/class/hid_host.c | |
| parent | 5cd8f3ad004758af07d7495668643bd2726a1f83 (diff) | |
rename tusbh_hid_keyboard/mouse_is_supported to tusbh_hid_keyboard/mouse_is_mounted
Diffstat (limited to 'tinyusb/class/hid_host.c')
| -rw-r--r-- | tinyusb/class/hid_host.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tinyusb/class/hid_host.c b/tinyusb/class/hid_host.c index c3fa64273..a45861006 100644 --- a/tinyusb/class/hid_host.c +++ b/tinyusb/class/hid_host.c @@ -125,7 +125,7 @@ uint8_t const hid_keycode_to_ascii_tbl[2][128] = STATIC_ hidh_interface_info_t keyboard_data[TUSB_CFG_HOST_DEVICE_MAX]; // does not have addr0, index = dev_address-1 //------------- KEYBOARD PUBLIC API (parameter validation required) -------------// -bool tusbh_hid_keyboard_is_supported(uint8_t dev_addr) +bool tusbh_hid_keyboard_is_mounted(uint8_t dev_addr) { return tusbh_device_is_configured(dev_addr) && pipehandle_is_valid(keyboard_data[dev_addr-1].pipe_hdl); } @@ -151,7 +151,7 @@ tusb_interface_status_t tusbh_hid_keyboard_status(uint8_t dev_addr, uint8_t inst STATIC_ hidh_interface_info_t mouse_data[TUSB_CFG_HOST_DEVICE_MAX]; // does not have addr0, index = dev_address-1 //------------- Public API -------------// -bool tusbh_hid_mouse_is_supported(uint8_t dev_addr) +bool tusbh_hid_mouse_is_mounted(uint8_t dev_addr) { return tusbh_device_is_configured(dev_addr) && pipehandle_is_valid(mouse_data[dev_addr-1].pipe_hdl); } |
