Sonochan II 0.1

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
usb_specific_request.c File Reference

Processing of USB device specific enumeration requests. More...

`#include "conf_usb.h"`
`#include "usb_drv.h"`
`#include "usb_descriptors.h"`
`#include "usb_standard_request.h"`
`#include "usb_specific_request.h"`
`#include "image.h"`
`#include "usart.h"`
`#include "pm.h"`

## Functions
void | usb_user_endpoint_init (U8 conf_nb)
| This function configures the endpoints of the device application. This function is called when the set configuration request has been received. More...
void | usb_user_set_interface (U8 wIndex, U8 wValue)
| This function handles usb_set_interface side effects. This function is called from usb_set_interface in usb_standard_request in case there are side effects of the interface change to be handled. More...
Bool | usb_user_read_request (U8 type, U8 request)
Bool | usb_user_get_descriptor (U8 type, U8 string)

## Variables
U8 | usb_feature_report [9]
U8 | usb_report [9]
U8 | g_u8_report_rate =0
U8 | clock_selected = 1
Bool | clock_changed = FALSE
volatile U16 | usb_interface_nb
volatile U8 | usb_alternate_setting
volatile U8 | usb_alternate_setting_out
volatile Bool | usb_alternate_setting_changed
volatile Bool | usb_alternate_setting_out_changed
S_freq | current_freq
Bool | freq_changed = FALSE
const void * | pbuffer
U16 | data_to_transfer
U8 | dg8saqBuffer [256]

## Detailed Description

Processing of USB device specific enumeration requests.

This file contains the specific request decoding for enumeration process.

- Compiler: IAR EWAVR32 and GNU GCC for AVR32
- Supported devices: All AVR32 devices with a USB module can be used.
- AppNote:

Author
  Atmel Corporation: http://www.atmel.com
  Support and FAQ: http://support.atmel.no/

## Variable Documentation

Bool clock_changed = FALSE

U8 clock_selected = 1

S_freq current_freq

U16 data_to_transfer

U8 dg8saqBuffer[256]

Bool freq_changed = FALSE

U8 g_u8_report_rate =0

const void* pbuffer

volatile U8 usb_alternate_setting

volatile Bool usb_alternate_setting_changed

volatile U8 usb_alternate_setting_out

volatile Bool usb_alternate_setting_out_changed

U8 usb_feature_report[9]

volatile U16 usb_interface_nb

U8 usb_report[9]