66965389C51SND1C的mp3源程序包.rar

源代码在线查看: nf.h

软件大小: 1478 K
上传用户: szdoudou
关键词: 66965389C 66965389 SND1 C51
下载地址: 免注册下载 普通下载 VIP

相关代码

				/*H**************************************************************************
				* NAME:         nf.h         
				*----------------------------------------------------------------------------
				* Copyright (c) 2003 Atmel.
				*----------------------------------------------------------------------------
				* RELEASE:      snd1c-refd-nf-4_0_3      
				* REVISION:     1.2     
				*----------------------------------------------------------------------------
				* PURPOSE:        This file contains the high level NF definitions
				*
				*****************************************************************************/
				
				#ifndef _NF_H_
				#define _NF_H_
				
				/*_____ I N C L U D E S ____________________________________________________*/
				
				#include "nf_drv.h"              /* NF driver definition */
				
				
				/*_____ M A C R O S ________________________________________________________*/
				
				
				/*_____ D E F I N I T I O N ________________________________________________*/
				/* Disk size : number of block - 1 */
				#define Nf_disk_size()            ((Uint32)(NF_DISK_SIZE))
				#define Nf_disk_size_0()          ((Byte)(NF_DISK_SIZE >> 24))
				#define Nf_disk_size_1()          ((Byte)(NF_DISK_SIZE >> 16))
				#define Nf_disk_size_2()          ((Byte)(NF_DISK_SIZE >> 8))
				#define Nf_disk_size_3()          ((Byte)(NF_DISK_SIZE))
				
				/* Block size : size of a block in byte */
				#define Nf_block_size()           ((Uint32)(NF_BLOCK_SIZE))
				#define Nf_block_size_0()         ((Byte)((NF_BLOCK_SIZE) >> 24))
				#define Nf_block_size_1()         ((Byte)((NF_BLOCK_SIZE) >> 16))
				#define Nf_block_size_2()         ((Byte)((NF_BLOCK_SIZE) >> 8))
				#define Nf_block_size_3()         ((Byte)(NF_BLOCK_SIZE))
				
				
				/*_____ D E C L A R A T I O N ______________________________________________*/
				
				
				
				/* System */
				bit     nf_init (void);                  /* Init NF card                   */
				bit     nf_read_open (Uint32);           /* Set read mode                  */
				void    nf_read_close (void);            /* Close read mode                */
				Byte    nf_read_byte (void);             /* Read 1 byte                    */
				bit     nf_write_open (Uint32);          /* Set write mode                 */
				bit     nf_write_close (void);           /* Close write mode               */
				bit     nf_write_byte (Byte);            /* Write 1 byte                   */
				bit     nf_block_erase(Uint32);          /* Erase one block (32 pages)     */
				bit     nf_erase_all_block(void);        /* Erase all blocks of the card   */
				bit     nf_check_status(void);           /* Check the status after program */
				                                         /* or erase block command         */
				bit     nf_write_sector(Uint16);         /* Write a sector of 512b from USB*/
				bit     nf_read_sector(Uint16);          /* Read a sector of 512b to USB   */
				s_format  * nf_format (void);            /* Prepare format                 */
				
				#endif /* _NF_H_ */
							

相关资源