Home
last modified time | relevance | path

Searched refs:keyboard_state (Results 1 – 10 of 10) sorted by relevance

/USBX-v6.2.1/common/usbx_host_classes/src/
Dux_host_class_hid_keyboard_key_get.c76 ULONG *keyboard_key, ULONG *keyboard_state) in _ux_host_class_hid_keyboard_key_get() argument
110 *keyboard_state = *(array_tail + 1); in _ux_host_class_hid_keyboard_key_get()
165 ULONG *keyboard_key, ULONG *keyboard_state) in _uxe_host_class_hid_keyboard_key_get() argument
170 (keyboard_key == UX_NULL) || (keyboard_state == UX_NULL) || in _uxe_host_class_hid_keyboard_key_get()
171 (keyboard_key == keyboard_state)) in _uxe_host_class_hid_keyboard_key_get()
175 return(_ux_host_class_hid_keyboard_key_get(keyboard_instance, keyboard_key, keyboard_state)); in _uxe_host_class_hid_keyboard_key_get()
/USBX-v6.2.1/test/regression/
Dusbx_class_hid_keyboard_basic_test.c367 …c UINT _wait_key(UX_HOST_CLASS_HID_KEYBOARD *keyboard, ULONG *keyboard_key, ULONG *keyboard_state) in _wait_key() argument
379 status = ux_host_class_hid_keyboard_key_get(keyboard, keyboard_key, keyboard_state); in _wait_key()
385 if (*keyboard_state & UX_HID_KEYBOARD_STATE_FUNCTION) in _wait_key()
390 if (*keyboard_state & UX_HID_KEYBOARD_STATE_KEY_UP) in _wait_key()
405 ULONG keyboard_state; in test_hid_keyboard_keys() local
418 status = _wait_key(hid_keyboard, &keyboard_key, &keyboard_state); in test_hid_keyboard_keys()
420 UX_TEST_ASSERT(keyboard_state & UX_HID_KEYBOARD_STATE_LEFT_CTRL); in test_hid_keyboard_keys()
427 status = _wait_key(hid_keyboard, &keyboard_key, &keyboard_state); in test_hid_keyboard_keys()
429 UX_TEST_ASSERT(keyboard_state & UX_HID_KEYBOARD_STATE_RIGHT_SHIFT); in test_hid_keyboard_keys()
439 status = _wait_key(hid_keyboard, &keyboard_key, &keyboard_state); in test_hid_keyboard_keys()
[all …]
Dusbx_hid_keyboard_key_test.c385 …c UINT _wait_key(UX_HOST_CLASS_HID_KEYBOARD *keyboard, ULONG *keyboard_key, ULONG *keyboard_state) in _wait_key() argument
394 status = ux_host_class_hid_keyboard_key_get(keyboard, keyboard_key, keyboard_state); in _wait_key()
400 if (*keyboard_state & UX_HID_KEYBOARD_STATE_FUNCTION) in _wait_key()
405 if (*keyboard_state & UX_HID_KEYBOARD_STATE_KEY_UP) in _wait_key()
445 ULONG keyboard_state; in tx_demo_thread_host_simulation_entry() local
483 status = _wait_key(keyboard, &keyboard_key, &keyboard_state); in tx_demo_thread_host_simulation_entry()
516 status = _wait_key(keyboard, &keyboard_key, &keyboard_state); in tx_demo_thread_host_simulation_entry()
529 …d, test %ld.%ld, state 0x%lx, key 0x%lx <> 0x%lx\n", __LINE__, n, i, keyboard_state, expected_key,… in tx_demo_thread_host_simulation_entry()
547 status = _wait_key(keyboard, &keyboard_key, &keyboard_state); in tx_demo_thread_host_simulation_entry()
569 status = _wait_key(keyboard, &keyboard_key, &keyboard_state); in tx_demo_thread_host_simulation_entry()
[all …]
Dusbx_hid_keyboard_key_with_report_id_test.c346 ULONG keyboard_state; in tx_demo_thread_host_simulation_entry() local
376 … while (ux_host_class_hid_keyboard_key_get(keyboard, &keyboard_key, &keyboard_state) != UX_SUCCESS) in tx_demo_thread_host_simulation_entry()
400 … while (ux_host_class_hid_keyboard_key_get(keyboard, &keyboard_key, &keyboard_state) != UX_SUCCESS) in tx_demo_thread_host_simulation_entry()
424 … while (ux_host_class_hid_keyboard_key_get(keyboard, &keyboard_key, &keyboard_state) != UX_SUCCESS) in tx_demo_thread_host_simulation_entry()
444 … while (ux_host_class_hid_keyboard_key_get(keyboard, &keyboard_key, &keyboard_state) != UX_SUCCESS) in tx_demo_thread_host_simulation_entry()
462 … while (ux_host_class_hid_keyboard_key_get(keyboard, &keyboard_key, &keyboard_state) != UX_SUCCESS) in tx_demo_thread_host_simulation_entry()
477 … while (ux_host_class_hid_keyboard_key_get(keyboard, &keyboard_key, &keyboard_state) != UX_SUCCESS) in tx_demo_thread_host_simulation_entry()
481 if (keyboard_state != 0xff07) in tx_demo_thread_host_simulation_entry()
490 … while (ux_host_class_hid_keyboard_key_get(keyboard, &keyboard_key, &keyboard_state) != UX_SUCCESS) in tx_demo_thread_host_simulation_entry()
494 if (keyboard_state != 0x0000) in tx_demo_thread_host_simulation_entry()
Dusbx_ux_host_class_hid_keyboard_ioctl_test.c358 …c UINT _wait_key(UX_HOST_CLASS_HID_KEYBOARD *keyboard, ULONG *keyboard_key, ULONG *keyboard_state) in _wait_key() argument
367 status = ux_host_class_hid_keyboard_key_get(keyboard, keyboard_key, keyboard_state); in _wait_key()
372 if (*keyboard_state & UX_HID_KEYBOARD_STATE_FUNCTION) in _wait_key()
377 if (*keyboard_state & UX_HID_KEYBOARD_STATE_KEY_UP) in _wait_key()
393 ULONG keyboard_state; in tx_demo_thread_host_simulation_entry() local
418 status = _wait_key(keyboard, &keyboard_key, &keyboard_state); in tx_demo_thread_host_simulation_entry()
444 status = _wait_key(keyboard, &keyboard_key, &keyboard_state); in tx_demo_thread_host_simulation_entry()
470 status = _wait_key(keyboard, &keyboard_key, &keyboard_state); in tx_demo_thread_host_simulation_entry()
Dusbx_test_USBX_141_keyboard_layout.c423 …c UINT _wait_key(UX_HOST_CLASS_HID_KEYBOARD *keyboard, ULONG *keyboard_key, ULONG *keyboard_state) in _wait_key() argument
431 … if (ux_host_class_hid_keyboard_key_get(keyboard, keyboard_key, keyboard_state) == UX_SUCCESS) in _wait_key()
448 ULONG keyboard_state; in tx_demo_thread_host_simulation_entry() local
494 status = _wait_key(keyboard, &keyboard_key, &keyboard_state); in tx_demo_thread_host_simulation_entry()
507 … printf("state: 0x%4lx, key: 0x%2lx (%c)\n", keyboard_state, keyboard_key, (char)keyboard_key); in tx_demo_thread_host_simulation_entry()
Dusbx_ux_host_class_hid_keyboard_callback_test.c45 static ULONG keyboard_state; variable
397 status = ux_host_class_hid_keyboard_key_get(keyboard, &keyboard_char, &keyboard_state); in tx_demo_thread_host_simulation_entry()
Dusbx_hid_keyboard_basic_test.c48 static ULONG keyboard_state; variable
445 status = ux_host_class_hid_keyboard_key_get(keyboard, &keyboard_char, &keyboard_state); in tx_demo_thread_host_simulation_entry()
Dusbx_hid_keyboard_key_get_test.c46 static ULONG keyboard_state; variable
441 status = ux_host_class_hid_keyboard_key_get(keyboard, &keyboard_char, &keyboard_state); in tx_demo_thread_host_simulation_entry()
/USBX-v6.2.1/common/usbx_host_classes/inc/
Dux_host_class_hid_keyboard.h259 ULONG *keyboard_key, ULONG *keyboard_state);
267 ULONG *keyboard_key, ULONG *keyboard_state);