SAMV71 Xplained Ultra Software Package 1.4

HIDDKeyboardDriver.h File Reference

#include <USBDescriptors.h>
#include <USBRequests.h>
#include <HIDDescriptors.h>
#include <HIDDKeyboard.h>
#include <USBDDriver.h>

Go to the source code of this file.

Functions

void HIDDKeyboardDriver_Initialize (const USBDDriverDescriptors *pDescriptors)
void HIDDKeyboardDriver_ConfigurationChangedHandler (uint8_t cfgnum)
void HIDDKeyboardDriver_RequestHandler (const USBGenericRequest *request)

Detailed Description

Purpose

Definition of methods for using a HID keyboard device driver.

Usage

  1. Re-implement the USBDCallbacks_RequestReceived callback to forward requests to HIDDKeyboardDriver_RequestHandler. This is done automatically unless the NOAUTOCALLBACK symbol is defined during compilation.
  2. Initialize the driver using HIDDKeyboardDriver_Initialize. The USB driver is automatically initialized by this method.
  3. Call the HIDDKeyboardDriver_ChangeKeys method when one or more keys are pressed/released.

Definition in file HIDDKeyboardDriver.h.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines