⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 test-1.i

📁 This fat 16 can be used for logging function. The user can use it for logger device.
💻 I
📖 第 1 页 / 共 5 页
字号:
**      make to the Software, whether or not such modifications are permitted.  
**      You agree not to disclose the Software to anyone.
**
**  6.  Export Law Assurances.  You may not export, re-export, download, or 
**      otherwise use the Software except as authorized by United States law 
**      and the laws of the jurisdiction in which it is obtained.
**
**  7.  Notice to Government End Users.  The Software, including any 
**      documentation, is provided to the United States Government with 
**      restricted rights.  If the Software is supplied to the United State 
**      Government, the software is classified as "restricted computer 
**      software" as defined in clause 52.227-19 of the FAR.  The United 
**      States Government抯 rights to the Software are as provided in clause 
**      52.227-19 if the FAR.
**
**  8.  Controlling Law and Severability.  This License will be governed by 
**      the laws of the United States and the State of Indiana without regard 
**      to their provisions regarding conflicts of laws.  This License will 
**      not be governed by the United Nations Convention on Contracts for the 
**      International Sale of Goods, the application of which is expressly 
**      excluded.  You irrevocably submit to the jurisdiction of the state and 
**      federal courts sitting in Indiana, and any action or proceeding 
**      arising out of this License will be heard and determined in such 
**      courts.  If for any reason a court of competent jurisdiction finds any 
**      provision, or portion thereof, to be unenforceable, such provision 
**      will be interpreted in order to give effect to such provision to the 
**      maximum extent permitted by law, and the remainder of this License 
**      will continue in full force and effect.  
**
**  9.  Complete Agreement.  This License constitutes the entire agreement 
**      between the parties with respect to the use of the Software and 
**      supersedes all prior or contemporaneous understandings regarding such 
**      subject matter.  No amendment to or modification of this License will 
**      be binding unless in writing and signed by Priio.
**
** BY SELECTING THE "I ACCEPT THE AGREEMENT" OPTION AND CLICKING ON THE "NEXT" 
** BUTTON, OR BY INSTALLING, COPYING, RUNNING, OR OTHERWISE USING THE PRIIO 
** SOFTWARE, YOU AGREE TO BE BOUND BY THE TERMS OF THIS LICENSE AGREEMENT.  IF 
** YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE AGREEMENT, PLEASE CLICK THE 
** "CANCEL" BUTTON, AND DO NOT INSTALL, RUN, COPY, OR OTHERWISE USE THE PRIIO 
** SOFTWARE.  
**
*****************************************************************************
**
**  VERSION HISTORY:
**  ----------------
**  Version:    3.0 
**  Date:       March 398, 2006
**  Revised by: Erick M. Higa
**  Description:
**      - See "FILE_SYS.C" file for any chages up to this point.
**
****************************************************************************/


/****************************************************************************
**
**    MODULES USED 
**
****************************************************************************/

/****************************************************************************
**
**    DEFINITIONS AND MACROS
**
****************************************************************************/
/* SD/MMC COMMANDS             ARGUMENT       RESPONSE TYPE        DESCRIPTION                  */
 

        
                    
enum {SD_IDLE, SD_SPI};

/****************************************************************************
**
**    TYPEDEFS AND STRUCTURES
**
****************************************************************************/
typedef struct
{
            unsigned int nib_0 : 4;
        unsigned int nib_1 : 4;
        unsigned int nib_2 : 4;
        unsigned int nib_3 : 4;
                                        } Nibbles16Struct;

typedef struct 
{
            unsigned char lo;
        unsigned char ml;
        unsigned char mh;
        unsigned char hi;
                                        } HiLo_8_32_Struct;

typedef struct 
{
            unsigned char lo;
        unsigned char hi;
                        } HiLo_8_16_Struct;

typedef struct 
{
            unsigned int lo;
        unsigned int hi;
                        } HiLo_16_32_Struct;

typedef union 
{
    unsigned long uval32;
    HiLo_8_32_Struct uval8;
    HiLo_16_32_Struct uval16;
} HiLo32Union;

typedef union 
{
    unsigned int uval16;
    HiLo_8_16_Struct uval8;
    Nibbles16Struct nib;
} HiLo16Union;

typedef struct
{
    unsigned char Active_Flagg;
    unsigned char Starting_Head;
    unsigned int Starting_Cylinder;
    unsigned char Partition_Type;
    unsigned char Ending_Head;
    unsigned int Ending_Cylinder;
    HiLo32Union Starting_Sector;
            unsigned long Partition_Length;
                } PartitionEntryStruct;

typedef struct
{
    unsigned char jmpBoot[3];
    unsigned char OEMName[8];
            unsigned int BytsPerSec;
        unsigned char SecPerClus;
        unsigned int RsvdSecCnt;
        unsigned char NumFATs;
        unsigned int RootEntCnt;
        unsigned int TotSec16;
        unsigned char Media;
        unsigned int FATSz16;
        unsigned int SecPerTrk;
        unsigned int NumHeads;
        unsigned long HiddSec;
        unsigned long TotSec32;
        unsigned char DrvNum;
        unsigned char Reserved1;
        unsigned char BootSig;
        unsigned long VolID;
                                                                                                                                            unsigned char VolLab[11];
    unsigned char FilSysType[8];
    unsigned char junk[384];
    PartitionEntryStruct PartEnt[4];
    unsigned int SigWord;
} FAT16BootSectStruct;

/****************************************************************************
** 
**    EXPORTED VARIABLES
**
****************************************************************************/
    extern unsigned char _FF_Buff[512];
                    extern unsigned char BPB_SecPerClus;
    extern HiLo16Union BPB_RsvdSecCnt;
    extern HiLo16Union BPB_RootEntCnt;
    extern HiLo16Union BPB_FATSz16;
    extern unsigned char BPB_FATType;
    extern char BS_VolLab[12];
    extern unsigned int _FF_PartitionAddr;
    extern unsigned long _FF_RootAddr;
            extern unsigned long BS_VolSerial;
                            extern unsigned long _FF_DirAddr;
        extern unsigned int _FF_Fat1Addr;
    extern unsigned long _FF_Fat2Addr;
    extern unsigned int FirstDataSector;
    extern unsigned char _FF_error;
    extern unsigned long _FF_BuffAddr;
    extern unsigned int DataClusTot;
    extern char _FF_FullPath[50];
    extern unsigned int Clus0Counter;
            extern unsigned long SDBlockWriteBlockCnt;
                extern flash char _FF_CRLFStr[];
        extern flash char _FF_02XStr[];
    
/****************************************************************************
**
**    EXPORTED FUNCTIONS
**
****************************************************************************/
    int _FF_putchar(int send_char);
    int _FF_getchar(void);
            void _FF_printf(flash char *pstr, ...);
                char reset_sd(void);
char init_sd(void);
    void _FF_read_disp(unsigned long sd_addr);
char _FF_read(unsigned long sd_addr, unsigned char *sd_read_buff);
unsigned char initialize_media(void);
char set_SD_mode(unsigned char mode);
    char _FF_write(unsigned long sd_addr, unsigned char *sd_write_buff);
            char SD_write_block_start(unsigned long sd_addr, unsigned long blk_size);
        char SD_write_block_byte(unsigned char sd_data);
        char SD_write_block_end(void);
    
/****************************************************************************
**
**    EOF 
**
****************************************************************************/
        /***************************** C HEADER FILE *********************************
**
**  Project:    FlashFile
**  Filename:   FILE_SYS.H 
**  Version:    3.0 
**  Date:       March 29, 2006
**  
******************************************************************************
**
** Source Code Solution Software
** License Agreement
**
** IMPORTANT:  READ THIS AGREEMENT CAREFULLY. 
**
** BY SELECTING THE "I ACCEPT THE AGREEMENT" OPTION AND CLICKING ON THE "NEXT" 
** BUTTON, OR BY INSTALLING, COPYING, RUNNING, OR OTHERWISE USING THE PRIIO 
** SOFTWARE, YOU AGREE TO BE BOUND BY THE TERMS OF THIS LICENSE AGREEMENT.  IF 
** YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE AGREEMENT, PLEASE CLICK THE 
** "CANCEL" BUTTON, AND DO NOT INSTALL, RUN, COPY, OR OTHERWISE USE THE PRIIO 
** SOFTWARE.  
**
** This End User License Agreement ("License") is a legal agreement between 
** you and Progressive Resources LLC DBA Priio, 4105 Vincennes Road, 
** Indianapolis, IN 46268, USA ("Priio") concerning your use of the Priio 
** Software, together with any electronic documentation that may be provided 
** therewith (collectively, "the software") through the Software.  YOU HEREBY 
** AGREE, BOTH ON YOUR OWN BEHALF AND AS AN AUTHORIZED REPERSENTATIVE OF ANY 
** ORGANIZATION FOR WHICH YOU ARE USING THE SOFTWARE ("EMPLOYER"), THAT YOU 
** AND THE EMPLOYER WILL USE THE SOFTWARE ONLY IN ACCORDANCE WITH THE 
** FOLLOWING TERMS:
**
**  1.  Disclaimer of Warranty.  You expressly acknowledge and agree that use 
**      of the Software is at your sole risk.  THE SOFTWARE IS PROVIDED "AS 
**      IS" WITH ALL FAULTS AND WITHOUT WARRANTY OF ANY KIND, PRIIO does not 
**      warrant that the functions contained in the Software will meet your 
**      requirements or those of the Employer, or that the operation of the 
**      Software will be uninterrupted or error-free, or that defects in the 
**      Software will be corrected.  Furthermore, Priio does not warrant or 
**      make any representation regarding the use or the results of the use of 
**      the Software (including the related documentation) in terms of their 
**      correctness, accuracy, reliability, or otherwise.  Should the Software 
**      prove defective, you (and not Priio) assume the entire cost of all 
**      necessary servicing, repair, or correction.
**
** ** PRIIO EXPRESSLY DISCLAIMS ANY WARRANTY OF MERCHANTABILITY, FITNESS FOR  
** A PARTICULAR PURPOSE, TITLE, OR NONINFRINGEMENT WITH RESPECT TO THE 
** SOFTWARE. **
**
** The Software may be provided with third-party plug-ins or other third-party 
** software, or this Software may be provided as a plug-in for or otherwise in 
** association with third-party software.  Use of any such third-party 
** software will be governed by the applicable license agreement, if any, with 
** such third party.  
**
** * PRIIO IS NOT RESPONSIBLE FOR ANY THIRD-PARTY SOFTWARE AND WILL HAVE NO 
** LIABILITY OF ANY KIND FOR YOUR USE OF SUCH THIRD-PARTY SOFTWARE AND MAKES 
** NO WARRANTY OF ANY KIND WITH RESPECT TO SUCH THIRD-PARTY SOFTWARE. *
**
** SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OR LIMITATION OF IMPLIED 
** WARRANTIES, SO THE ABOVE EXCLUSIONS MIGHT NOT APPLY TO YOU.  
**
**  2.  Limitation of Liability.  In no event will Priio?s total liability for 

⌨️ 快捷键说明

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