usb_task.h

来自「用AT89C5131A开发USB的框架很好用」· C头文件 代码 · 共 41 行

H
41
字号
/**
 * @file $RCSfile: usb_task.h,v $
 *
 * Copyright (c) 2004 Atmel.
 *
 * Please read file license.txt for copyright notice.
 *
 * @brief This file contains the function declarations
 *
 * @version $Revision: 1.1.2.2 $ $Name: c5131-usb-generic-1_2_0 $ $Id: usb_task.h,v 1.1.2.2 2006/04/06 12:03:32 lguilhau Exp $
 *
 * @todo
 * @bug
 */

#ifndef _USB_TASK_H_
#define _USB_TASK_H_

//_____ I N C L U D E S ____________________________________________________


//_____ M A C R O S ________________________________________________________

#define Set_page_usb()       //Mcu_set_sfr_page_usb()

//_____ D E C L A R A T I O N S ____________________________________________

void usb_task_init     (void);
void usb_start_device  (void);
void usb_task          (void);

typedef struct 
  {U8    arrived;
   U8    type;//0:Standard, 1:Continuous, others:Personal mode
   U8    direction;//1:IN, 0:OUT
   U16   length;
   }S_hid_set_control;

#endif /* _USB_TASK_H_ */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?