📄 flash_8h.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>WirelessUSB(TM) LS PRoC DVK Protocol Master Tutorial: flash.h File Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3.9.1 -->
<div class="qindex"><a class="qindex" href="main.html">Main Page</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Data Structures</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Data Fields</a> | <a class="qindex" href="globals.html">Globals</a></div>
<h1>flash.h File Reference</h1><hr><a name="_details"></a><h2>Detailed Description</h2>
Flash Header file
<p>
<p>
This graph shows which files directly or indirectly include this file:<p><center><img src="flash_8h__dep__incl.png" border="0" usemap="#flash.hdep_map" alt="Included by dependency graph"></center>
<map name="flash.hdep_map">
<area href="ls__config_8h.html" shape="rect" coords="90,157,175,184" alt="">
<area href="protocol_8h.html" shape="rect" coords="45,82,125,109" alt="">
<area href="main_8c.html" shape="rect" coords="7,8,69,34" alt="">
<area href="protocol_8c.html" shape="rect" coords="93,8,173,34" alt="">
<area href="timer_8c.html" shape="rect" coords="149,82,213,109" alt="">
</map>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="flash_8h.html#a0">flash_read_lite</a> (BYTE nvr_block, void *data, BYTE len)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">BYTE </td><td class="memItemRight" valign="bottom"><a class="el" href="flash_8h.html#a1">flash_write_lite</a> (BYTE nvr_block, void *data)</td></tr>
</table>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="a0" doxytag="flash.h::flash_read_lite"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">void flash_read_lite </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">BYTE </td>
<td class="mdname" nowrap> <em>nvr_block</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>void * </td>
<td class="mdname" nowrap> <em>data</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>BYTE </td>
<td class="mdname" nowrap> <em>len</em></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">) </td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Description: Reads a specified flash block to a buffer in RAM.<p>
BlockID is converted to absolute address and then ROMX command is used to read the data from flash into the specified buffer. (See flash.asm for more info)<p>
Uses SSC storage at FBh and FDh<p>
Inputs:<ul>
<li>BYTE - Flash block ID</li><li>void* - Destination RAM location</li><li>BYTE - Number of bytes to read</li></ul>
<p>
Returns:<ul>
<li>Data read is returned at specified RAM location. </li></ul>
</td>
</tr>
</table>
<a class="anchor" name="a1" doxytag="flash.h::flash_write_lite"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">BYTE flash_write_lite </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">BYTE </td>
<td class="mdname" nowrap> <em>nvr_block</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>void * </td>
<td class="mdname" nowrap> <em>data</em></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">) </td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Description: Writes 64 bytes of data to the flash at the specified blockId. Regardless of the size of the buffer, this routine always writes 64 bytes of data. If the buffer is less than 64 bytes, then the next 64-N bytes of data will be written to fill the rest of flash block data. (See flash.asm for more info)<p>
1 ) Compute the pulsewidths 2 ) Erase the specified block 3 ) Program the specified block<p>
Uses RAM locations 0xFB and 0xFD<p>
Assumptions: Single block Write CPU clock is 12MHz Temperature is defined to be 32 degees celcius<p>
Inputs:<ul>
<li>BYTE - Flash block ID</li><li>void* - Source RAM location</li></ul>
<p>
Returns: SSC_RETURNCODE </td>
</tr>
</table>
<html>
<head>
<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
<meta name=Generator content="Microsoft Word 10 (filtered)">
<title>Cypress Semiconductor Corporation</title>
<style>
<!--
/* Font Definitions */
@font-face
{font-family:"MS Mincho";
panose-1:2 2 6 9 4 2 5 8 3 4;}
@font-face
{font-family:"\@MS Mincho";
panose-1:2 2 6 9 4 2 5 8 3 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:#1A419D;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:#1A419D;
text-decoration:underline;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=EN-US link="#1A419D" vlink="#1A419D">
<div class=Section1>
<div>
<div align=center>
<table class=MsoNormalTable border=1 cellspacing=0 cellpadding=0 width="100%"
style='width:100.0%;border-collapse:collapse;border:none'>
<tr>
<td width="100%" style='width:100.0%;border:none;border-top:solid windowtext 1.0pt;
padding:0in 5.4pt 0in 5.4pt'>
<p class=MsoNormal align=center style='text-align:center'><b><span
style='font-size:13.0pt;font-family:Arial;color:blue'><a
href="http://www.cypress.com/">Cypress Semiconductor Corporation</a></span></b><b><span
style='font-size:13.0pt;font-family:Arial'>牋 </span></b><b><span
style='font-size:16.0pt;font-family:Symbol'>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -