Browse Source

rename device mouse API

hathach 7 years ago
parent
commit
255f832904
3 changed files with 3 additions and 3 deletions
  1. 1 1
      examples/device/nrf52840/src/main.c
  2. 1 1
      src/class/hid/hid_device.c
  3. 1 1
      src/class/hid/hid_device.h

+ 1 - 1
examples/device/nrf52840/src/main.c

@@ -142,7 +142,7 @@ void usb_hid_task(void)
       if ( btn )
       {
         hid_mouse_report_t report = { .buttons = 0, .x = 10, .y = 0, .wheel = 0 };
-        tud_hid_mouse_send_report(&report);
+        tud_hid_mouse_report(&report);
       }
     }
 

+ 1 - 1
src/class/hid/hid_device.c

@@ -172,7 +172,7 @@ bool tud_hid_mouse_busy(void)
   return dcd_edpt_busy(TUD_OPT_RHPORT, _mse_itf.ep_in);
 }
 
-bool tud_hid_mouse_send_report(hid_mouse_report_t const *p_report)
+bool tud_hid_mouse_report(hid_mouse_report_t const *p_report)
 {
   VERIFY( tud_mounted() && !tud_hid_mouse_busy() );
 

+ 1 - 1
src/class/hid/hid_device.h

@@ -130,7 +130,7 @@ bool tud_hid_mouse_busy(void);
  * \param[in,out] p_report Report data, if NULL, an empty report (all zeroes) is used
  * \returns       true on success, false otherwise (not mounted or busy)
  */
-bool tud_hid_mouse_send_report(hid_mouse_report_t const *p_report);
+bool tud_hid_mouse_report(hid_mouse_report_t const *p_report);
 
 /*------------- Callbacks -------------*/