tests_kernel.test_ite_keyboard module

class ITEKeyboard(rdesc=[6, 133, 255, 9, 149, 161, 1, 133, 90, 9, 1, 21, 0, 38, 255, 0, 117, 8, 149, 16, 177, 0, 192, 5, 1, 9, 6, 161, 1, 133, 1, 117, 1, 149, 8, 5, 7, 25, 224, 41, 231, 21, 0, 37, 1, 129, 2, 149, 1, 117, 8, 129, 3, 149, 5, 117, 1, 5, 8, 25, 1, 41, 5, 145, 2, 149, 1, 117, 3, 145, 3, 149, 6, 117, 8, 21, 0, 38, 255, 0, 5, 7, 25, 0, 42, 255, 0, 129, 0, 192, 5, 12, 9, 1, 161, 1, 133, 2, 25, 0, 42, 60, 2, 21, 0, 38, 60, 2, 117, 16, 149, 1, 129, 0, 192, 5, 1, 9, 12, 161, 1, 133, 3, 21, 0, 37, 1, 9, 198, 149, 1, 117, 1, 129, 6, 117, 7, 129, 3, 192, 5, 136, 9, 1, 161, 1, 133, 4, 25, 0, 42, 255, 255, 21, 0, 38, 255, 255, 117, 8, 149, 2, 129, 2, 192, 5, 1, 9, 128, 161, 1, 133, 5, 25, 129, 41, 131, 21, 0, 37, 1, 149, 8, 117, 1, 129, 2, 192], name=None, input_info=(BusType.USB, 1739, 10600))

Bases: ArrayKeyboard

event(keys, reportID=None, application=None)

Send an input event on the default report ID.

Parameters:

keys – a tuple of chars for the pressed keys. The class maintains the list of currently pressed keys, so to release a key, the caller needs to call again this function without the key in this tuple.

report_descriptor = [6, 133, 255, 9, 149, 161, 1, 133, 90, 9, 1, 21, 0, 38, 255, 0, 117, 8, 149, 16, 177, 0, 192, 5, 1, 9, 6, 161, 1, 133, 1, 117, 1, 149, 8, 5, 7, 25, 224, 41, 231, 21, 0, 37, 1, 129, 2, 149, 1, 117, 8, 129, 3, 149, 5, 117, 1, 5, 8, 25, 1, 41, 5, 145, 2, 149, 1, 117, 3, 145, 3, 149, 6, 117, 8, 21, 0, 38, 255, 0, 5, 7, 25, 0, 42, 255, 0, 129, 0, 192, 5, 12, 9, 1, 161, 1, 133, 2, 25, 0, 42, 60, 2, 21, 0, 38, 60, 2, 117, 16, 149, 1, 129, 0, 192, 5, 1, 9, 12, 161, 1, 133, 3, 21, 0, 37, 1, 9, 198, 149, 1, 117, 1, 129, 6, 117, 7, 129, 3, 192, 5, 136, 9, 1, 161, 1, 133, 4, 25, 0, 42, 255, 255, 21, 0, 38, 255, 255, 117, 8, 149, 2, 129, 2, 192, 5, 1, 9, 128, 161, 1, 133, 5, 25, 129, 41, 131, 21, 0, 37, 1, 149, 8, 117, 1, 129, 2, 192]
class KbdData

Bases: object

class TestITEKeyboard

Bases: TestArrayKeyboard

create_device()
kernel_modules: list[KernelModule] = [KernelModule(driver_name='itetech', module_name='hid_ite')]
test_wifi_key()