Crate kiibohd_hid_io

Source

Modules§

buffer
commands
h0000
Supported Ids
h0001
Info Query
h0002
Test Message
h0003
Reset HID-IO
h001a
Sleep Mode
h0010
Get Properties
h0011
USB Key State TODO
h0012
Keyboard Layout TODO
h0013
Button Layout TODO
h0014
Keycap Types TODO
h0015
LED Layout TODO
h0016
Flash Mode
h0017
UTF-8 Character Stream
h0018
UTF-8 State
h0019
Trigger Host Macro TODO
h0020
KLL Trigger State
h0021
Pixel Settings Higher level LED operations and access to LED controller functionality
h0022
Pixel Set (1ch, 8bit) TODO
h0023
Pixel Set (3ch, 8bit)
h0024
Pixel Set (1ch, 16bit) TODO
h0025
Pixel Set (3ch, 16bit) TODO
h0026
Direct Channel Set Control the buffer directly (device configuration dependent)
h0030
Open URL
h0031
Terminal Command
h0032
Get OS Layout TODO
h0033
Set OS Layout TODO
h0034
Terminal Output
h0040
HID Keyboard State TODO
h0041
HID Keyboard LED State TODO
h0042
HID Mouse State TODO
h0043
HID Joystick State TODO
h0050
Manufacturing Test
h0051
Manufacturing Test Result

Structs§

CommandInterface
HidIoHostInfo
HidIoPacketBuffer
HID-IO Packet Buffer Struct
Utf8Error
Defmt wrapper for core::str::Utf8Error

Enums§

CommandError
HidIoCommandId
Requests for to perform a specific action
HidIoEvent
HidIoPacketType
HID-IO Packet Types
HidIoParseError
HID-IO Parse Error

Constants§

MESSAGE_LEN

Traits§

Commands
HID-IO Command Interface H - Max data payload length (HidIoPacketBuffer) HSUB1, HSUB2, HSUB4 - Due to current limitations of const generics (missing const_evaluatable_checked), H - 1, H - 2 and H - 4 must be defined at the top-level. ID - Max number of HidIoCommandIds
KiibohdCommandInterface
Kiibohd Command Interface Simplified CommandInterface used to receive HID-IO callbacks.

Functions§

continued_packet
Determines whether there are following continued packets
hid_bitmask2vec
Converts a HID bitmask into an array of byte codes
hid_vec2bitmask
Converts a HID byte code array into a bitmask
packet_id
Determines packet id from a byte stream
packet_id_width
Determines id_width from a byte stream
packet_type
Determines the packet type from a byte stream
payload_len
Determines payload of packet from a byte stream
payload_start
Determines the starting position of the payload data