usbkbdscancodes.c File Reference

USB HID keyboard scan codes.


Copyright 2018 Silicon Laboratories Inc.

The licensor of this software is Silicon Laboratories Inc. Your use of this software is governed by the terms of Silicon Labs Master Software License Agreement (MSLA) available at This software is distributed to you in Source Code format and is governed by the sections of the MSLA applicable to Source Code.

Definition in file usbkbdscancodes.c .

#include <stdint.h>
#include " usbkbdscancodes.h "


char USB_HidScancodeToAscii (uint8_t scancode)
Converts the keyboard scancode to ASCII.


static const uint8_t Scancode2Ascii []
Table of keyboard scancode to ASCII mappings. Refer to the "HID Usage Tables" standard document from, section 10 "Keyboard/Keypad Page (0x07)".