fs_dev.h

来自「AT91SAM7X256」· C头文件 代码 · 共 46 行

H
46
字号
/*
**********************************************************************
*                          Micrium, Inc.
*                      949 Crestview Circle
*                     Weston,  FL 33327-1848
*
*                            uC/FS
*
*                (c) Copyright 2002, Micrium, Inc.
*                      All rights reserved.
*
***********************************************************************

----------------------------------------------------------------------
File        : fs_dev.h
Purpose     : Define structures for Device Drivers
----------------------------------------------------------------------
Known problems or limitations with current version
----------------------------------------------------------------------
None.
---------------------------END-OF-HEADER------------------------------
*/

#ifndef _FS_DEV_H_
#define _FS_DEV_H_

/*********************************************************************
*
*             Global data types
*
**********************************************************************
*/
#include "fs_port.h"


typedef struct {
  FS_FARCHARPTR           name;
  int                     (*dev_status)(FS_u32 id);
  int                     (*dev_read)(FS_u32 id, FS_u32 block, void *buffer);
  int                     (*dev_write)(FS_u32 id, FS_u32 block, void *buffer);
  int                     (*dev_ioctl)(FS_u32 id, FS_i32 cmd, FS_i32 aux, void *buffer);
} FS__device_type;


#endif

⌨️ 快捷键说明

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