mirror of
https://github.com/jialexd/sdk-ameba-v4.0c_180328.git
synced 2024-11-22 22:14:18 +00:00
579 lines
24 KiB
HTML
Executable file
579 lines
24 KiB
HTML
Executable file
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
|
<meta name="generator" content="Doxygen 1.8.11"/>
|
|
<title>SDK3.5: EFUSE</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="jquery.js"></script>
|
|
<script type="text/javascript" src="dynsections.js"></script>
|
|
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="search/searchdata.js"></script>
|
|
<script type="text/javascript" src="search/search.js"></script>
|
|
<script type="text/javascript">
|
|
$(document).ready(function() { init_search(); });
|
|
</script>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
|
</head>
|
|
<body>
|
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
|
<div id="titlearea">
|
|
<table cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr style="height: 56px;">
|
|
<td id="projectalign" style="padding-left: 0.5em;">
|
|
<div id="projectname">SDK3.5
|
|
</div>
|
|
<div id="projectbrief">This document shows Ameba SDK 3.5 APIs</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.11 -->
|
|
<script type="text/javascript">
|
|
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
|
</script>
|
|
<div id="navrow1" class="tabs">
|
|
<ul class="tablist">
|
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
|
<li class="current"><a href="modules.html"><span>Modules</span></a></li>
|
|
<li><a href="annotated.html"><span>Data Structures</span></a></li>
|
|
<li><a href="files.html"><span>Files</span></a></li>
|
|
<li>
|
|
<div id="MSearchBox" class="MSearchBoxInactive">
|
|
<span class="left">
|
|
<img id="MSearchSelect" src="search/mag_sel.png"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
alt=""/>
|
|
<input type="text" id="MSearchField" value="Search" accesskey="S"
|
|
onfocus="searchBox.OnSearchFieldFocus(true)"
|
|
onblur="searchBox.OnSearchFieldFocus(false)"
|
|
onkeyup="searchBox.OnSearchFieldChange(event)"/>
|
|
</span><span class="right">
|
|
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
|
|
</span>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
</div>
|
|
|
|
<!-- iframe showing the search results (closed by default) -->
|
|
<div id="MSearchResultsWindow">
|
|
<iframe src="javascript:void(0)" frameborder="0"
|
|
name="MSearchResults" id="MSearchResults">
|
|
</iframe>
|
|
</div>
|
|
|
|
<div class="header">
|
|
<div class="headertitle">
|
|
<div class="title">EFUSE<div class="ingroups"><a class="el" href="group__sdk.html">Ameba SDK</a> » <a class="el" href="group__hal.html">HAL</a></div></div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
|
|
<p>efuse functions
|
|
<a href="#details">More...</a></p>
|
|
<table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="member-group"></a>
|
|
Ameba Common</h2></td></tr>
|
|
<tr class="memitem:ga703f8d2f3adc29d992576b7379d7abfd"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__efuse.html#ga703f8d2f3adc29d992576b7379d7abfd">efuse_get_remaining_length</a> (void)</td></tr>
|
|
<tr class="memdesc:ga703f8d2f3adc29d992576b7379d7abfd"><td class="mdescLeft"> </td><td class="mdescRight">Get remaining efuse length. <a href="#ga703f8d2f3adc29d992576b7379d7abfd">More...</a><br /></td></tr>
|
|
<tr class="separator:ga703f8d2f3adc29d992576b7379d7abfd"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga791cdc0d5588655ef7ce90f7c3a0163f"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__efuse.html#ga791cdc0d5588655ef7ce90f7c3a0163f">efuse_mtp_read</a> (uint8_t *data)</td></tr>
|
|
<tr class="memdesc:ga791cdc0d5588655ef7ce90f7c3a0163f"><td class="mdescLeft"> </td><td class="mdescRight">Read efuse contant of specified user. <a href="#ga791cdc0d5588655ef7ce90f7c3a0163f">More...</a><br /></td></tr>
|
|
<tr class="separator:ga791cdc0d5588655ef7ce90f7c3a0163f"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga08c6831a0ea466d0a6faf8432faf1ffd"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__efuse.html#ga08c6831a0ea466d0a6faf8432faf1ffd">efuse_mtp_write</a> (uint8_t *data, uint8_t len)</td></tr>
|
|
<tr class="memdesc:ga08c6831a0ea466d0a6faf8432faf1ffd"><td class="mdescLeft"> </td><td class="mdescRight">Write user's contant to efuse. <a href="#ga08c6831a0ea466d0a6faf8432faf1ffd">More...</a><br /></td></tr>
|
|
<tr class="separator:ga08c6831a0ea466d0a6faf8432faf1ffd"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga571ddd7c7ada8dd7b2e5e82bd9b98c7a"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__efuse.html#ga571ddd7c7ada8dd7b2e5e82bd9b98c7a">efuse_otp_read</a> (u8 address, u8 len, u8 *buf)</td></tr>
|
|
<tr class="memdesc:ga571ddd7c7ada8dd7b2e5e82bd9b98c7a"><td class="mdescLeft"> </td><td class="mdescRight">Read efuse OTP contant. <a href="#ga571ddd7c7ada8dd7b2e5e82bd9b98c7a">More...</a><br /></td></tr>
|
|
<tr class="separator:ga571ddd7c7ada8dd7b2e5e82bd9b98c7a"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga0dee50805b7c324be8abe994d0c701c6"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__efuse.html#ga0dee50805b7c324be8abe994d0c701c6">efuse_otp_write</a> (u8 address, u8 len, u8 *buf)</td></tr>
|
|
<tr class="memdesc:ga0dee50805b7c324be8abe994d0c701c6"><td class="mdescLeft"> </td><td class="mdescRight">Write user's contant to OTP efuse. <a href="#ga0dee50805b7c324be8abe994d0c701c6">More...</a><br /></td></tr>
|
|
<tr class="separator:ga0dee50805b7c324be8abe994d0c701c6"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gad60cd36c85fc3bae72679927634e0352"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__efuse.html#gad60cd36c85fc3bae72679927634e0352">efuse_otp_chk</a> (u8 len, u8 *buf)</td></tr>
|
|
<tr class="memdesc:gad60cd36c85fc3bae72679927634e0352"><td class="mdescLeft"> </td><td class="mdescRight">ckeck user's contant to OTP efuse <a href="#gad60cd36c85fc3bae72679927634e0352">More...</a><br /></td></tr>
|
|
<tr class="separator:gad60cd36c85fc3bae72679927634e0352"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga1d098405d63cabaf3c70a0f06d08f430"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__efuse.html#ga1d098405d63cabaf3c70a0f06d08f430">efuse_disable_jtag</a> (void)</td></tr>
|
|
<tr class="memdesc:ga1d098405d63cabaf3c70a0f06d08f430"><td class="mdescLeft"> </td><td class="mdescRight">Disable jtag. <a href="#ga1d098405d63cabaf3c70a0f06d08f430">More...</a><br /></td></tr>
|
|
<tr class="separator:ga1d098405d63cabaf3c70a0f06d08f430"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="member-group"></a>
|
|
Ameba1 Only</h2></td></tr>
|
|
<tr class="memitem:ga4cf0056afbd498f827cf27909b613bd4"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__efuse.html#ga4cf0056afbd498f827cf27909b613bd4">efuse_key1_write</a> (u8 address, u8 len, u8 *buf)</td></tr>
|
|
<tr class="memdesc:ga4cf0056afbd498f827cf27909b613bd4"><td class="mdescLeft"> </td><td class="mdescRight">Write key1 to efuse. <a href="#ga4cf0056afbd498f827cf27909b613bd4">More...</a><br /></td></tr>
|
|
<tr class="separator:ga4cf0056afbd498f827cf27909b613bd4"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga6d23283fa618b722163570d13a3596a8"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__efuse.html#ga6d23283fa618b722163570d13a3596a8">efuse_key2_write</a> (u8 address, u8 len, u8 *buf)</td></tr>
|
|
<tr class="memdesc:ga6d23283fa618b722163570d13a3596a8"><td class="mdescLeft"> </td><td class="mdescRight">Write key2 to efuse. <a href="#ga6d23283fa618b722163570d13a3596a8">More...</a><br /></td></tr>
|
|
<tr class="separator:ga6d23283fa618b722163570d13a3596a8"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="member-group"></a>
|
|
AmebaZ Only</h2></td></tr>
|
|
<tr class="memitem:ga34cb06c253306a494edb7b101c820045"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__efuse.html#ga34cb06c253306a494edb7b101c820045">efuse_rdp_enable</a> (void)</td></tr>
|
|
<tr class="memdesc:ga34cb06c253306a494edb7b101c820045"><td class="mdescLeft"> </td><td class="mdescRight">Set RDP Enable. <a href="#ga34cb06c253306a494edb7b101c820045">More...</a><br /></td></tr>
|
|
<tr class="separator:ga34cb06c253306a494edb7b101c820045"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga01d89c6b9205c219c3cef4123aa8a82a"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__efuse.html#ga01d89c6b9205c219c3cef4123aa8a82a">efuse_rdp_keyset</a> (u8 *rdp_key)</td></tr>
|
|
<tr class="memdesc:ga01d89c6b9205c219c3cef4123aa8a82a"><td class="mdescLeft"> </td><td class="mdescRight">Set 16B RDP key into EFUSE. <a href="#ga01d89c6b9205c219c3cef4123aa8a82a">More...</a><br /></td></tr>
|
|
<tr class="separator:ga01d89c6b9205c219c3cef4123aa8a82a"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gacdb2b3076bc8d9f1dbd59ed18fe56b0e"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__efuse.html#gacdb2b3076bc8d9f1dbd59ed18fe56b0e">efuse_otf_keyset</a> (u8 *otf_key)</td></tr>
|
|
<tr class="memdesc:gacdb2b3076bc8d9f1dbd59ed18fe56b0e"><td class="mdescLeft"> </td><td class="mdescRight">Set 16B OTF key into EFUSE. <a href="#gacdb2b3076bc8d9f1dbd59ed18fe56b0e">More...</a><br /></td></tr>
|
|
<tr class="separator:gacdb2b3076bc8d9f1dbd59ed18fe56b0e"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table>
|
|
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
|
<p>efuse functions </p>
|
|
<h2 class="groupheader">Function Documentation</h2>
|
|
<a class="anchor" id="ga1d098405d63cabaf3c70a0f06d08f430"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int efuse_disable_jtag </td>
|
|
<td>(</td>
|
|
<td class="paramtype">void </td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Disable jtag. </p>
|
|
<dl class="retval"><dt>Return values</dt><dd>
|
|
<table class="retval">
|
|
<tr><td class="paramname">0</td><td>Success </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ga703f8d2f3adc29d992576b7379d7abfd"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int efuse_get_remaining_length </td>
|
|
<td>(</td>
|
|
<td class="paramtype">void </td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Get remaining efuse length. </p>
|
|
<dl class="retval"><dt>Return values</dt><dd>
|
|
<table class="retval">
|
|
<tr><td class="paramname"></td><td>remaining efuse length </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ga4cf0056afbd498f827cf27909b613bd4"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int efuse_key1_write </td>
|
|
<td>(</td>
|
|
<td class="paramtype">u8 </td>
|
|
<td class="paramname"><em>address</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">u8 </td>
|
|
<td class="paramname"><em>len</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">u8 * </td>
|
|
<td class="paramname"><em>buf</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Write key1 to efuse. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">address</td><td>Specifies the offset of the programmed efuse. </td></tr>
|
|
<tr><td class="paramname">len</td><td>Specifies the data length of programmed data. </td></tr>
|
|
<tr><td class="paramname">buf</td><td>Specified the data to be programmed. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="retval"><dt>Return values</dt><dd>
|
|
<table class="retval">
|
|
<tr><td class="paramname">0</td><td>Success </td></tr>
|
|
<tr><td class="paramname">-1</td><td>Failure </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ga6d23283fa618b722163570d13a3596a8"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int efuse_key2_write </td>
|
|
<td>(</td>
|
|
<td class="paramtype">u8 </td>
|
|
<td class="paramname"><em>address</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">u8 </td>
|
|
<td class="paramname"><em>len</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">u8 * </td>
|
|
<td class="paramname"><em>buf</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Write key2 to efuse. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">address</td><td>Specifies the offset of the programmed efuse. </td></tr>
|
|
<tr><td class="paramname">len</td><td>Specifies the data length of programmed data. </td></tr>
|
|
<tr><td class="paramname">buf</td><td>Specified the data to be programmed. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="retval"><dt>Return values</dt><dd>
|
|
<table class="retval">
|
|
<tr><td class="paramname">0</td><td>Success </td></tr>
|
|
<tr><td class="paramname">-1</td><td>Failure </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ga791cdc0d5588655ef7ce90f7c3a0163f"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void efuse_mtp_read </td>
|
|
<td>(</td>
|
|
<td class="paramtype">uint8_t * </td>
|
|
<td class="paramname"><em>data</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Read efuse contant of specified user. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">data</td><td>Specified the address to save the readback data. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="retval"><dt>Return values</dt><dd>
|
|
<table class="retval">
|
|
<tr><td class="paramname">none</td><td></td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ga08c6831a0ea466d0a6faf8432faf1ffd"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int efuse_mtp_write </td>
|
|
<td>(</td>
|
|
<td class="paramtype">uint8_t * </td>
|
|
<td class="paramname"><em>data</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">uint8_t </td>
|
|
<td class="paramname"><em>len</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Write user's contant to efuse. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">data</td><td>Specified the data to be programmed. </td></tr>
|
|
<tr><td class="paramname">len</td><td>Specifies the data length of programmed data. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="retval"><dt>Return values</dt><dd>
|
|
<table class="retval">
|
|
<tr><td class="paramname">value</td><td><ul>
|
|
<li>0~32: Success</li>
|
|
<li>-1: Failure </li>
|
|
</ul>
|
|
</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="gacdb2b3076bc8d9f1dbd59ed18fe56b0e"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void efuse_otf_keyset </td>
|
|
<td>(</td>
|
|
<td class="paramtype">u8 * </td>
|
|
<td class="paramname"><em>otf_key</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Set 16B OTF key into EFUSE. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">OtfKey</td><td>16B EFUSE KEY </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section note"><dt>Note</dt><dd>can not change or read back after write. </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="gad60cd36c85fc3bae72679927634e0352"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int efuse_otp_chk </td>
|
|
<td>(</td>
|
|
<td class="paramtype">u8 </td>
|
|
<td class="paramname"><em>len</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">u8 * </td>
|
|
<td class="paramname"><em>buf</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>ckeck user's contant to OTP efuse </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">buf</td><td>Specified the data to be programmed. </td></tr>
|
|
<tr><td class="paramname">len</td><td>Specifies the data length of programmed data. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="retval"><dt>Return values</dt><dd>
|
|
<table class="retval">
|
|
<tr><td class="paramname">0</td><td>Success </td></tr>
|
|
<tr><td class="paramname">-1</td><td>Failure </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ga571ddd7c7ada8dd7b2e5e82bd9b98c7a"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int efuse_otp_read </td>
|
|
<td>(</td>
|
|
<td class="paramtype">u8 </td>
|
|
<td class="paramname"><em>address</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">u8 </td>
|
|
<td class="paramname"><em>len</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">u8 * </td>
|
|
<td class="paramname"><em>buf</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Read efuse OTP contant. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">address</td><td>Specifies the offset of the OTP. </td></tr>
|
|
<tr><td class="paramname">len</td><td>Specifies the length of readback data. </td></tr>
|
|
<tr><td class="paramname">buf</td><td>Specified the address to save the readback data. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="retval"><dt>Return values</dt><dd>
|
|
<table class="retval">
|
|
<tr><td class="paramname">0</td><td>Success </td></tr>
|
|
<tr><td class="paramname">-1</td><td>Failure </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ga0dee50805b7c324be8abe994d0c701c6"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int efuse_otp_write </td>
|
|
<td>(</td>
|
|
<td class="paramtype">u8 </td>
|
|
<td class="paramname"><em>address</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">u8 </td>
|
|
<td class="paramname"><em>len</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">u8 * </td>
|
|
<td class="paramname"><em>buf</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Write user's contant to OTP efuse. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">address</td><td>Specifies the offset of the programmed OTP. </td></tr>
|
|
<tr><td class="paramname">len</td><td>Specifies the data length of programmed data. </td></tr>
|
|
<tr><td class="paramname">buf</td><td>Specified the data to be programmed. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="retval"><dt>Return values</dt><dd>
|
|
<table class="retval">
|
|
<tr><td class="paramname">0</td><td>Success </td></tr>
|
|
<tr><td class="paramname">-1</td><td>Failure </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ga34cb06c253306a494edb7b101c820045"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void efuse_rdp_enable </td>
|
|
<td>(</td>
|
|
<td class="paramtype">void </td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Set RDP Enable. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">none</td><td></td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section note"><dt>Note</dt><dd>can not change or read back after write. </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ga01d89c6b9205c219c3cef4123aa8a82a"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void efuse_rdp_keyset </td>
|
|
<td>(</td>
|
|
<td class="paramtype">u8 * </td>
|
|
<td class="paramname"><em>rdp_key</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Set 16B RDP key into EFUSE. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">rdp_key</td><td>16B EFUSE KEY </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section note"><dt>Note</dt><dd>can not change or read back after write. </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
</div><!-- contents -->
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated by  <a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
|
</a> 1.8.11
|
|
</small></address>
|
|
</body>
|
|
</html>
|