📄 flsocket.h
字号:
/***********************************************************************************/
/* M-Systems Confidential */
/* Copyright (C) M-Systems Flash Disk Pioneers Ltd. 1995-2003 */
/* All Rights Reserved */
/***********************************************************************************/
/* NOTICE OF M-SYSTEMS OEM */
/* SOFTWARE LICENSE AGREEMENT */
/* */
/* THE USE OF THIS SOFTWARE IS GOVERNED BY A SEPARATE LICENSE */
/* AGREEMENT BETWEEN THE OEM AND M-SYSTEMS. REFER TO THAT AGREEMENT */
/* FOR THE SPECIFIC TERMS AND CONDITIONS OF USE, */
/* OR CONTACT M-SYSTEMS FOR LICENSE ASSISTANCE: */
/* E-MAIL = info@m-sys.com */
/***********************************************************************************/
/*
* $Log: V:/PVCSDB/DiskOnChip/archives/general storage/TrueFFS/src/include/flsocket.h-arc $
*
* Rev 1.0 Apr 09 2003 12:16:00 OriS
* Initial revision.
*
*/
#ifndef FLSOCKET_H
#define FLSOCKET_H
#include "flbuffer.h"
#define ATTRIBUTE_SPACE_MAPPED 0x8000
#define UNDEFINED_MAPPING 0x7fff
typedef enum {PowerOff, PowerGoingOff, PowerOn} PowerState;
typedef FLDword CardAddress; /* Physical offset on card */
extern FLByte noOfSockets; /* No. of drives actually registered */
/* The milliseconds counter is active when socket polling is enabled. When
the socket interval routine is called, the counter is incremented by
the interval in milliseconds.
The counter can be used to avoid getting in a loop that is not guaranteed
to terminate (such as waiting for a flash status register). Save the counter
at entry to the loop, and check in the loop the amount of time that
was spent in the loop. */
extern FLDword flMsecCounter;
typedef struct tSocket FLSocket;
#include "_flsoc.h"
#endif /* FLSOCKET_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -