34#ifndef _FREERTOS_DRIVERS_TI_TIVAUSBKEYBOARDDEV_HXX_
35#define _FREERTOS_DRIVERS_TI_TIVAUSBKEYBOARDDEV_HXX_
43#include "driverlib/interrupt.h"
44#include "driverlib/rom.h"
45#include "driverlib/rom_map.h"
46#include "usblib/usblib.h"
47#include "usblib/usbhid.h"
48#include "usblib/device/usbdevice.h"
49#include "usblib/device/usbdhid.h"
50#include "usblib/device/usbdhidkeyb.h"
51#include "usblib/usb-ids.h"
72 uint32_t ui32Event, uint32_t ui32MsgData,
void *pvMsgData);
const char * name
device name
Private data for a serial device.
This device driver appears as a virtual serial port to the OpenMRN application, and appears as an USB...
void enable() override
This will be called once when reference-count goes from 0 to positive.
tUSBDHIDKeyboardDevice tivaKeyboardDevice_
Keyboard driver structure.
void disable() override
This will be called when reference count goes from non-zero to 0.
uint8_t isConnected_
Whether the USB host has connected to this device.
uint8_t isSuspended_
Whether the USB bus is suspended.
void tx_char() override
Function to try and transmit a character.
bool send_next_event()
Internal implementation that sends a single keyboard event, from a critical section or in an interrup...
unsigned errorCount_
Number of transmission errors. These occur in the USB device stack.
uint8_t txPending_
Whether we have a pending unfinished send.
uint8_t keyUpPending_
Whether we need to send a key up command still.
uint32_t keyboard_handler(uint32_t ui32Event, uint32_t ui32MsgData, void *pvMsgData)
Callback from the keyboard driver. Called in an interrupt context.