Xmega Application Note | |||||
Copyright (c) 2010, Atmel Corporation All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
3. The name of ATMEL may not be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Definition in file conf_usb.h.
Go to the source code of this file.
Defines | |
#define | INT_EP 0x03 |
#define | NB_ENDPOINTS 4 |
#define | RX_EP 0x02 |
#define | TX_EP 0x01 |
#define | Usb_reset_action() |
#define | Usb_resume_action() |
#define | Usb_set_configuration_action() |
#define | Usb_sof_action() sof_action(); |
#define | Usb_suspend_action() suspend_action(); |
#define | Usb_unicode(a) ((uint16_t)(a)) |
#define | Usb_vbus_off_action() |
#define | Usb_vbus_on_action() |
#define | Usb_wake_up_action() |
Functions | |
void | sof_action (void) |
Start of frame action. | |
void | suspend_action (void) |
Suspend action management. |
#define INT_EP 0x03 |
#define NB_ENDPOINTS 4 |
Number of endpoints in the application including control endpoint
Definition at line 51 of file conf_usb.h.
Referenced by usb_enum_var_init().
#define RX_EP 0x02 |
Definition at line 55 of file conf_usb.h.
Referenced by uart_usb_getchar(), uart_usb_test_hit(), and usb_user_endpoint_init().
#define TX_EP 0x01 |
Definition at line 54 of file conf_usb.h.
Referenced by uart_usb_flush(), uart_usb_putchar(), and usb_user_endpoint_init().
#define Usb_reset_action | ( | ) |
#define Usb_resume_action | ( | ) |
#define Usb_set_configuration_action | ( | ) |
#define Usb_sof_action | ( | ) | sof_action(); |
#define Usb_suspend_action | ( | ) | suspend_action(); |
#define Usb_unicode | ( | a | ) | ((uint16_t)(a)) |
Definition at line 59 of file conf_usb.h.
#define Usb_vbus_off_action | ( | ) |
#define Usb_vbus_on_action | ( | ) |
#define Usb_wake_up_action | ( | ) |
void sof_action | ( | void | ) |
Start of frame action.
This function increments the cpt_sof counter each times the USB Start Of Frame interrupt subroutine is executed (1ms) Usefull to manage time delays
Definition at line 114 of file cdc_task.c.
References cpt_sof.
00115 { 00116 cpt_sof++; 00117 }
void suspend_action | ( | void | ) |
Suspend action management.
Use this function to handle the suspend command.
Definition at line 171 of file usb_task.c.
Generated on Mon Jan 18 09:26:09 2010 for AVR1907 Xplain USB Gateway by ![]() |