📄 usb_device_task.h
字号:
/**
* @file usb_device_task.h,v
*
* Copyright (c) 2004 Atmel.
*
* Please read file license.txt for copyright notice.
*
* @brief This file contains the function declarations for USB device task
*
* @version 1.2 at90usb162-hidgen-1_0_1 $Id: usb_device_task.h,v 1.2 2006/08/31 07:37:39 rletendu Exp $
*
* @todo
* @bug
*/
#ifndef _USB_DEVICE_TASK_H_
#define _USB_DEVICE_TASK_H_
//! @defgroup usb_device_task USB device task module
//! @{
//_____ I N C L U D E S ____________________________________________________
//_____ M A C R O S ________________________________________________________
//_____ D E C L A R A T I O N S ____________________________________________
//!
//! @brief This function initializes the USB device controller.
//!
//! This function enables the USB controller and init the USB interrupts.
//! The aim is to allow the USB connection detection in order to send
//! the appropriate USB event to the operating mode manager.
//!
//!
//! @param none
//!
//! @return none
//!
void usb_device_task_init (void);
//!
//! @brief This function initializes the USB device controller
//!
//! This function enables the USB controller and init the USB interrupts.
//! The aim is to allow the USB connection detection in order to send
//! the appropriate USB event to the operating mode manager.
//! Start device function is executed once VBUS connection has been detected
//! either by the VBUS change interrupt either by the VBUS high level
//!
//! @param none
//!
//! @return none
//!
void usb_start_device (void);
//! @brief Entry point of the USB device mamagement
//!
//! This function is the entry point of the USB management. Each USB
//! event is checked here in order to launch the appropriate action.
//! If a Setup request occurs on the Default Control Endpoint,
//! the usb_process_request() function is call in the usb_standard_request.c file
//!
//! @param none
//!
//! @return none
void usb_device_task (void);
#ifndef BYPASS_USB_AUTOBAUD
//! @brief USB based autobaud function
//!
//! This function configures the pll prescaler to get USB functionnnal with current XTAL
//!
//! @param none
//!
//! @return none
void usb_autobaud(void);
#endif
//! @}
#endif /* _USB_DEVICE_TASK_H_ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -