diff options
| author | hathach <[email protected]> | 2018-07-24 16:52:24 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-07-24 16:52:38 +0700 |
| commit | 3dc1d847b8847ba82561df9c7b4cb62fca7938cf (patch) | |
| tree | 997d1f784219db8ee33264daf065227c0f2a3a1a /src/class/hid/hid_device.h | |
| parent | 3400dfdf4ea478894b2a96ac0bd27868c052fbeb (diff) | |
rename device keyboard api
Diffstat (limited to 'src/class/hid/hid_device.h')
| -rw-r--r-- | src/class/hid/hid_device.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/class/hid/hid_device.h b/src/class/hid/hid_device.h index 1293d212d..e0309fe4f 100644 --- a/src/class/hid/hid_device.h +++ b/src/class/hid/hid_device.h @@ -67,13 +67,13 @@ bool tud_hid_keyboard_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_keyboard_send_report(hid_keyboard_report_t const *p_report);
-
-bool tud_hid_keyboard_send_keycode(uint8_t modifier, uint8_t keycode[6]);
+bool tud_hid_keyboard_report(hid_keyboard_report_t const *p_report);
+bool tud_hid_keyboard_keycode(uint8_t modifier, uint8_t keycode[6]);
#if CFG_TUD_HID_ASCII_TO_KEYCODE_LOOKUP
-bool tud_hid_keyboard_send_char(char ch);
-bool tud_hid_keyboard_send_string(const char* str, uint32_t interval_ms);
+bool tud_hid_keyboard_key_press(char ch);
+bool tud_hid_keyboard_key_release(void);
+bool tud_hid_keyboard_key_sequence(const char* str, uint32_t interval_ms);
typedef struct{
uint8_t shift;
|
