USB HID keyboard internals

nRF5 SDK v15.0.0

nRF52840 only: Module with types, definitions, and API used by the HID keyboard class. More...

Data Structures

struct app_usbd_hid_kbd_inst_t
HID keyboard part of class instance data. More...
struct app_usbd_hid_kbd_ctx_t
HID keyboard context. More...

Macros

#define APP_USBD_HID_KBD_CONFIG (iface, ep)   ((iface, ep))
HID keyboard configuration macro. More...
#define APP_USBD_HID_KBD_INSTANCE_SPECIFIC_DEC app_usbd_hid_kbd_inst_t inst;
Specific class constant data for HID keyboard class.
#define APP_USBD_HID_KBD_DATA_SPECIFIC_DEC app_usbd_hid_kbd_ctx_t ctx;
Specific class data for HID keyboard class.
#define APP_USBD_HID_KBD_INST_CONFIG (report_buff_in,report_buff_out,user_ev_handler,subclass_boot)
Configure internal part of HID keyboard instance. More...
#define APP_USBD_HID_KBD_GLOBAL_DEF_INTERNAL (instance_name,interface_number,endpoint,user_ev_handler,subclass_boot)
Global definition of app_usbd_hid_kbd_t class. More...

Functions

APP_USBD_CLASS_FORWARD (app_usbd_hid_kbd)
Forward declaration of HID keyboard class type.

Variables

const app_usbd_hid_methods_t app_usbd_hid_kbd_methods
Public HID keyboard interface.
const app_usbd_class_methods_t app_usbd_hid_kbd_class_methods
Public HID keyboard class interface.

Detailed Description

nRF52840 only: Module with types, definitions, and API used by the HID keyboard class.

Macro Definition Documentation

#define APP_USBD_HID_KBD_CONFIG ( iface,
ep
) ((iface, ep))

HID keyboard configuration macro.

Used by APP_USBD_HID_KBD_GLOBAL_DEF .

#define APP_USBD_HID_KBD_GLOBAL_DEF_INTERNAL ( instance_name,
interface_number,
endpoint,
user_ev_handler,
subclass_boot
)
Value:
static app_usbd_hid_report_buffer_t CONCAT_2 (instance_name, _in)[1]; \
APP_USBD_HID_GENERIC_GLOBAL_OUT_REP_DEF( CONCAT_2 (instance_name, _out), 1 + 1); \
APP_USBD_CLASS_INST_GLOBAL_DEF( \
instance_name, \
app_usbd_hid_kbd, \
APP_USBD_HID_KBD_CONFIG (interface_number, endpoint), \
( APP_USBD_HID_KBD_INST_CONFIG ( CONCAT_2 (instance_name, _in), \
& CONCAT_2 (instance_name, _out), \
user_ev_handler, \
subclass_boot)) \
)

Global definition of app_usbd_hid_kbd_t class.

APP_USBD_HID_KBD_GLOBAL_DEF

#define APP_USBD_HID_KBD_INST_CONFIG ( report_buff_in,
report_buff_out,
user_ev_handler,
subclass_boot
)
Value:
.inst = { \
.hid_inst = APP_USBD_HID_INST_CONFIG (keyboard_descs, \
subclass_boot, \
report_buff_in, \
report_buff_out, \
user_ev_handler, \
}

Configure internal part of HID keyboard instance.

Parameters
report_buff_in Input report buffers array.
report_buff_out Output report buffer.
user_ev_handler User event handler.
subclass_boot Subclass boot. ( app_usbd_hid_subclass_t )