fs_dev.h
上传用户:yj_qqy
上传日期:2017-01-28
资源大小:2911k
文件大小:1k
源码类别:

uCOS

开发平台:

C/C++

  1. /* ********************************************************************** *                          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 * ********************************************************************** */ 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