USBLib API Guide  1.00.00.01
usbhhidkeyboard.h
Go to the documentation of this file.
1 //*****************************************************************************
2 //
3 // usbhhidkeyboard.h - This file holds the application interfaces for USB
4 // keyboard devices.
5 //
6 // Copyright (c) 2008-2017 Texas Instruments Incorporated. All rights reserved.
7 // Software License Agreement
8 //
9 // Texas Instruments (TI) is supplying this software for use solely and
10 // exclusively on TI's microcontroller products. The software is owned by
11 // TI and/or its suppliers, and is protected under applicable copyright
12 // laws. You may not combine this software with "viral" open-source
13 // software in order to form a larger program.
14 //
15 // THIS SOFTWARE IS PROVIDED "AS IS" AND WITH ALL FAULTS.
16 // NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT
17 // NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
18 // A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. TI SHALL NOT, UNDER ANY
19 // CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
20 // DAMAGES, FOR ANY REASON WHATSOEVER.
21 //
22 //*****************************************************************************
23 
24 #ifndef __USBHHIDKEYBOARD_H__
25 #define __USBHHIDKEYBOARD_H__
26 
27 //*****************************************************************************
28 //
29 // If building with a C++ compiler, make all of the definitions in this header
30 // have a C binding.
31 //
32 //*****************************************************************************
33 #ifdef __cplusplus
34 extern "C"
35 {
36 #endif
37 
38 //*****************************************************************************
39 //
42 //
43 //*****************************************************************************
44 
46 
47 //*****************************************************************************
48 //
49 // The prototype for the host USB Keyboard driver callback function.
50 //
51 //*****************************************************************************
52 typedef void (*tUSBHIDKeyboardCallback)(tUSBHKeyboard *psKbInstance,
53  uint32_t ui32Event,
54  uint32_t ui32MsgParam,
55  void *pvMsgData);
56 
58  uint8_t *pui8Buffer,
59  uint32_t ui32BufferSize);
60 extern uint32_t USBHKeyboardClose(tUSBHKeyboard *psKbInstance);
61 extern uint32_t USBHKeyboardInit(tUSBHKeyboard *psKbInstance);
62 extern uint32_t USBHKeyboardModifierSet(tUSBHKeyboard *psKbInstance,
63  uint32_t ui32Modifiers);
64 extern uint32_t USBHKeyboardPollRateSet(tUSBHKeyboard *psKbInstance,
65  uint32_t ui32PollRate);
66 extern uint32_t USBHKeyboardLPMSleep(tUSBHKeyboard *psKbInstance);
67 extern uint32_t USBHKeyboardLPMStatus(tUSBHKeyboard *psKbInstance);
68 extern uint32_t USBHKeyboardUsageToChar(tUSBHKeyboard *psKbInstance,
69  const tHIDKeyboardUsageTable *psTable,
70  uint8_t ui8UsageID);
71 
72 //*****************************************************************************
73 //
75 //
76 //*****************************************************************************
77 
78 //*****************************************************************************
79 //
80 // Mark the end of the C bindings section for C++ compilers.
81 //
82 //*****************************************************************************
83 #ifdef __cplusplus
84 }
85 #endif
86 
87 #endif
uint32_t USBHKeyboardClose(tUSBHKeyboard *psKbInstance)
Definition: usbhhidkeyboard.c:170
tUSBHKeyboard * USBHKeyboardOpen(tUSBHIDKeyboardCallback pfnCallback, uint8_t *pui8Buffer, uint32_t ui32Size)
Definition: usbhhidkeyboard.c:137
uint32_t USBHKeyboardModifierSet(tUSBHKeyboard *psKbInstance, uint32_t ui32Modifiers)
Definition: usbhhidkeyboard.c:325
uint32_t USBHKeyboardPollRateSet(tUSBHKeyboard *psKbInstance, uint32_t ui32PollRate)
Definition: usbhhidkeyboard.c:432
struct tUSBHKeyboard tUSBHKeyboard
Definition: usbhhidkeyboard.h:45
uint32_t USBHKeyboardInit(tUSBHKeyboard *psKbInstance)
Definition: usbhhidkeyboard.c:363
uint32_t USBHKeyboardUsageToChar(tUSBHKeyboard *psKbInstance, const tHIDKeyboardUsageTable *psTable, uint8_t ui8UsageID)
Definition: usbhhidkeyboard.c:208
uint32_t USBHKeyboardLPMSleep(tUSBHKeyboard *psKbInstance)
Definition: usbhhidkeyboard.c:709
uint32_t USBHKeyboardLPMStatus(tUSBHKeyboard *psKbInstance)
Definition: usbhhidkeyboard.c:737
Definition: usbhid.h:621
void(* tUSBHIDKeyboardCallback)(tUSBHKeyboard *psKbInstance, uint32_t ui32Event, uint32_t ui32MsgParam, void *pvMsgData)
Definition: usbhhidkeyboard.h:52
© Copyright 1995-2019, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale