usbkbdscancodes.c File Reference

USB HID keyboard scan codes.

License

Copyright 2018 Silicon Laboratories Inc. www.silabs.com

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 www.silabs.com/about-us/legal/master-software-license-agreement. 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 "

Functions

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

Variables

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