# usb_kbd_enum

Copyright (c) 2003

## Library Usage

### Package Description

### Package Summary

#### Constants

#### Global Variables

#### Macros

#### Functions

    usb_clear_feature
    usb_enumeration_process
    usb_ep_init
    usb_get_configuration
    usb_get_descriptor
    usb_get_interface
    usb_get_status
    usb_hid_get_idle
    usb_hid_set_idle
    usb_hid_set_report
    usb_read_request
    usb_set_address
    usb_set_configuration
    usb_set_feature
    usb_var_init

### Files List

- usb_kbd_enum.c

This file contains the USB Endpoint 0 management routines corresponding to a USB HID keyboard implementation.

- usb_kbd_enum.h

This file contains the USB task definition

### Included Files

- config.h
- lib_mcu\usb\usb_drv.h
- usb_kbd_enum.h

## Constant Macros

## Global Variables

## Function Macros

## Functions

### usb_clear_feature

    void usb_clear_feature  ( void )

This function manages the SET_FEATURE request.

    *
    return:

### usb_enumeration_process

    void usb_enumeration_process  ( void )

This function manages the enumeration process

    *
    return:

### usb_ep_init

    void usb_ep_init  ( void )

This function configures the endpoints.

    *
    return:

### usb_get_configuration

    void usb_get_configuration  ( void )

This function manages the GET_CONFIGURATION request.

    *
    return:

### usb_get_descriptor

    void usb_get_descriptor  ( void )

This function manages the GET_DESCRIPTOR request.

    *
    return:

### usb_get_interface

    void usb_get_interface  ( void )

This function manages the GET_INTERFACE request.

    *
    return:

### usb_get_status

    void usb_get_status  ( void )

This function manages the GET_STATUS request.

    *
    return:

### usb_hid_get_idle

    void usb_hid_get_idle  ( void )

This function manages the GET_IDLE request.

    *
    return:

### usb_hid_set_idle

    void usb_hid_set_idle  ( void )

This function manages the HID_SET_IDLE request.

    *
    return:

### usb_hid_set_report

    void usb_hid_set_report  ( void )

This function manages the SET_REPORT request (HID Class)

    *
    return:

### usb_read_request

    void usb_read_request  ( void )

This function reads the SETUP request sent to the default control endpoint and the appropriate function. When exiting of the usb_read_request function, the device is ready to manage the next request.

    *
    return:

#### Note

GET_DESCRIPTOR GET_CONFIGURATION SET_ADDRESS SET_CONFIGURATION or SET_REPORT CLEAR_FEATURE SET_FEATURE GET_STATUS GET_MAX_LUN MASS_STORAGE_RESET

### usb_set_address

    void usb_set_address  ( void )

This function manages the SET_ADDRESS request. The new address is stored in the USBADDR register

    *
    return:

### usb_set_configuration

    void usb_set_configuration  ( void )

This function manages the SET_CONFIGURATION request.

    *
    return:

### usb_set_feature

    void usb_set_feature  ( void )

This function manages the SET_FEATURE request.

    *
    return:

### usb_var_init

    void usb_var_init  ( void )

This function initializes the USB controller and resets the endpoints FIFOs.

    *
    return: