mirror of
https://gitee.com/Vancouver2017/luban-lite.git
synced 2025-12-17 09:38:55 +00:00
add doc v1.1.2
This commit is contained in:
223
doc/topics/sdk/cir/cir_config.html
Normal file
223
doc/topics/sdk/cir/cir_config.html
Normal file
@@ -0,0 +1,223 @@
|
||||
<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-cn" lang="zh-cn" data-whc_version="26.0">
|
||||
<head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="description" content="内核配置 Device Drivers <*> Remote Controller support---> [*] LIRC user interface [*] Remote controller decoders---> <*> Enable IR raw decoder for the NEC protocol < > Enable IR raw decoder for the RC- 5 ..."/><meta name="DC.rights.owner" content="(C) 版权 2025"/><meta name="copyright" content="(C) 版权 2025"/><meta name="generator" content="DITA-OT"/><meta name="DC.type" content="concept"/><meta name="DC.contributor" content="yan.wang"/><meta name="DC.date.modified" content="2024-12-10"/><meta name="DC.format" content="HTML5"/><meta name="DC.identifier" content="cir_configuration"/><meta name="DC.language" content="zh-CN"/><title>CIR 配置</title><!-- Build number 2023110923. --><meta name="wh-path2root" content="../../../"/><meta name="wh-toc-id" content=""/><meta name="wh-source-relpath" content="topics/sdk/cir/cir_config.dita"/><meta name="wh-out-relpath" content="topics/sdk/cir/cir_config.html"/>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="../../../webhelp/app/commons.css?buildId=2023110923"/>
|
||||
<link rel="stylesheet" type="text/css" href="../../../webhelp/app/topic.css?buildId=2023110923"/>
|
||||
|
||||
<script src="../../../webhelp/app/options/properties.js?buildId=20250121171154"></script>
|
||||
<script src="../../../webhelp/app/localization/strings.js?buildId=2023110923"></script>
|
||||
<script src="../../../webhelp/app/search/index/keywords.js?buildId=20250121171154"></script>
|
||||
<script defer="defer" src="../../../webhelp/app/commons.js?buildId=2023110923"></script>
|
||||
<script defer="defer" src="../../../webhelp/app/topic.js?buildId=2023110923"></script>
|
||||
<link rel="stylesheet" type="text/css" href="../../../webhelp/template/aic-styles-web.css?buildId=2023110923"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/notes.css?buildId=2023110923"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/aic-common.css?buildId=2023110923"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/aic-images.css?buildId=2023110923"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/footnote.css?buildId=2023110923"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/aic-web-watermark.css?buildId=2023110923"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/topic-body-list.css?buildId=2023110923"/></head>
|
||||
|
||||
<body id="cir_configuration" class="wh_topic_page frmBody">
|
||||
<a href="#wh_topic_body" class="sr-only sr-only-focusable">
|
||||
跳转到主要内容
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
<header class="navbar navbar-default wh_header">
|
||||
<div class="container-fluid">
|
||||
<div class="wh_header_flex_container navbar-nav navbar-expand-md navbar-dark">
|
||||
<div class="wh_logo_and_publication_title_container">
|
||||
<div class="wh_logo_and_publication_title">
|
||||
|
||||
<a href="http://www.artinchip.com" class=" wh_logo d-none d-sm-block "><img src="../../../company-logo-white.png" alt="RTOS SDK 使用指南SDK 指南文件"/></a>
|
||||
<div class=" wh_publication_title "><a href="../../../index.html"><span class="booktitle"><span class="ph mainbooktitle">RTOS SDK 使用指南</span><span class="ph booktitlealt">SDK 指南文件</span></span></a></div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="wh_top_menu_and_indexterms_link collapse navbar-collapse" id="wh_top_menu_and_indexterms_link">
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class=" wh_search_input navbar-form wh_topic_page_search search " role="form">
|
||||
|
||||
|
||||
|
||||
<form id="searchForm" method="get" role="search" action="../../../search.html"><div><input type="search" placeholder="搜索 " class="wh_search_textfield" id="textToSearch" name="searchQuery" aria-label="搜索查询" required="required"/><button type="submit" class="wh_search_button" aria-label="搜索"><span class="search_input_text">搜索</span></button></div></form>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="container-fluid" id="wh_topic_container">
|
||||
<div class="row">
|
||||
|
||||
<nav class="wh_tools d-print-none navbar-expand-md" aria-label="Tools">
|
||||
|
||||
<div data-tooltip-position="bottom" class=" wh_breadcrumb "></div>
|
||||
|
||||
|
||||
|
||||
<div class="wh_right_tools">
|
||||
<button class="wh_hide_highlight" aria-label="切换搜索突出显示" title="切换搜索突出显示"></button>
|
||||
<button class="webhelp_expand_collapse_sections" data-next-state="collapsed" aria-label="折叠截面" title="折叠截面"></button>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class=" wh_print_link print d-none d-md-inline-block "><button onClick="window.print()" title="打印此页" aria-label="打印此页"></button></div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="wh_content_area">
|
||||
<div class="row">
|
||||
|
||||
|
||||
<div class="col-lg-10 col-md-10 col-sm-10 col-xs-12" id="wh_topic_body">
|
||||
|
||||
<button id="wh_close_topic_toc_button" class="close-toc-button d-none" aria-label="Toggle topic table of content" aria-controls="wh_topic_toc" aria-expanded="true">
|
||||
<span class="close-toc-icon-container">
|
||||
<span class="close-toc-icon"></span>
|
||||
</span>
|
||||
</button>
|
||||
|
||||
<div class=" wh_topic_content body "><main role="main"><article class="- topic/topic concept/concept topic concept" role="article" aria-labelledby="ariaid-title1"><span class="edit-link" style="font-size:12px; opacity:0.6; text-align:right; vertical-align:middle"><a target="_blank" href="http://172.16.35.88/tasks/jdssno1uvvbf2mltu9kb9v3if05d5gopuakboe8hlud18rma/edit/F:/aicdita/aicdita-cn/topics/sdk/cir/cir_config.dita">Edit online</a></span><h1 class="- topic/title title topictitle1" id="ariaid-title1">CIR 配置</h1><div class="date inPage">10 Dec 2024</div><div style="color: gray;">
|
||||
Read time: 1 minute(s)
|
||||
</div><div class="- topic/body concept/conbody body conbody"><section class="- topic/section section" id="cir_configuration__section_jhn_vr3_pdc" data-ofbid="cir_configuration__section_jhn_vr3_pdc"><h2 class="- topic/title title sectiontitle">内核配置</h2>
|
||||
|
||||
<pre class="+ topic/pre pr-d/codeblock pre codeblock language-c" id="cir_configuration__codeblock_m2n_rdn_d1c" data-ofbid="cir_configuration__codeblock_m2n_rdn_d1c">Device Drivers
|
||||
<*> Remote Controller support--->
|
||||
[*] LIRC user interface
|
||||
[*] Remote controller decoders--->
|
||||
<*> Enable IR raw decoder <strong class="hl-keyword">for</strong> the NEC protocol
|
||||
< > Enable IR raw decoder <strong class="hl-keyword">for</strong> the RC-<span class="hl-number">5</span> protocol
|
||||
< > Enable IR raw decoder <strong class="hl-keyword">for</strong> the RC-<span class="hl-number">6</span> protocol
|
||||
< > Enable IR raw decoder <strong class="hl-keyword">for</strong> the Sony protocol
|
||||
< > Enable IR raw decoder <strong class="hl-keyword">for</strong> the Sanyo protocol
|
||||
[*] Remote Controller devices--->
|
||||
<*> ArtInChip IR remote control
|
||||
</pre>
|
||||
<p class="- topic/p p" data-ofbid="d80668e30__20250121171525">上图只是说明需要选择相应的红外协议,实际使用中可根据需要选择相应协议,CIR 模块驱动可支持的协议包括 NEC、RC5、RC6、Sony、Sanyo。</p>
|
||||
</section><section class="- topic/section section" id="cir_configuration__section_wzj_5r3_pdc" data-ofbid="cir_configuration__section_wzj_5r3_pdc"><h2 class="- topic/title title sectiontitle">DTS 配置</h2>
|
||||
|
||||
<div class="- topic/p p" data-ofbid="d80668e38__20250121171525">
|
||||
<ul class="- topic/ul ul" id="cir_configuration__ul_cmx_vm3_pdc" data-ofbid="cir_configuration__ul_cmx_vm3_pdc"><li class="- topic/li li" data-ofbid="d80668e41__20250121171525">
|
||||
<p class="- topic/p p" data-ofbid="d80668e43__20250121171525">D211 配置</p>
|
||||
<div class="- topic/p p" data-ofbid="d80668e46__20250121171525">CIR
|
||||
模块基本配置<pre class="+ topic/pre pr-d/codeblock pre codeblock language-c" id="cir_configuration__codeblock_o2n_rdn_d1c" data-ofbid="cir_configuration__codeblock_o2n_rdn_d1c">cir: cir@<span class="hl-number">19260000</span> {
|
||||
compatible = <span class="hl-string">"artinchip,aic-cir-v1.0"</span>;
|
||||
reg = <<span class="hl-number">0x0</span> <span class="hl-number">0x19260000</span> <span class="hl-number">0x0</span> <span class="hl-number">0x400</span>>;
|
||||
interrupts-extended = <&plic0 <span class="hl-number">95</span> IRQ_TYPE_LEVEL_HIGH>;
|
||||
clocks = <&cmu CLK_CIR>;
|
||||
resets = <&rst RESET_CIR>;
|
||||
};
|
||||
</pre></div>
|
||||
</li><li class="- topic/li li" data-ofbid="d80668e51__20250121171525">
|
||||
<p class="- topic/p p" data-ofbid="d80668e53__20250121171525"><span class="+ topic/ph sw-d/filepath ph filepath">xxx/board.dts</span> 配置</p>
|
||||
<pre class="+ topic/pre pr-d/codeblock pre codeblock language-c" id="cir_configuration__codeblock_p2n_rdn_d1c" data-ofbid="cir_configuration__codeblock_p2n_rdn_d1c">&cir {
|
||||
pinctrl-names = <span class="hl-string">"default"</span>;
|
||||
pinctrl-<span class="hl-number">0</span> = <&cir_pins_a>;
|
||||
rx-level = <<span class="hl-number">1</span>>;
|
||||
linux,rc-map-name = <span class="hl-string">"rc-empty"</span>;
|
||||
status = <span class="hl-string">"okay"</span>;
|
||||
};
|
||||
</pre>
|
||||
<dl class="- topic/dl dl" id="cir_configuration__dl_sfm_xm3_pdc" data-ofbid="cir_configuration__dl_sfm_xm3_pdc"><dt class="- topic/dt dt dlterm" data-ofbid="d80668e63__20250121171525">参数</dt><dd class="- topic/dd dd"><span class="+ topic/keyword pr-d/parmname keyword parmname">rx-level</span><div class="- topic/p p" data-ofbid="d80668e68__20250121171525">配置值与 PCB 板的硬件电路设计相关:<ul class="- topic/ul ul" id="cir_configuration__ol_q2n_rdn_d1c" data-ofbid="cir_configuration__ol_q2n_rdn_d1c"><li class="- topic/li li" data-ofbid="d80668e71__20250121171525">
|
||||
<p class="- topic/p p" data-ofbid="d80668e73__20250121171525">1,表示在空闲状态下,RX 为高电平,激活状态下为低电平。</p>
|
||||
</li><li class="- topic/li li" data-ofbid="d80668e76__20250121171525">
|
||||
<p class="- topic/p p" data-ofbid="d80668e78__20250121171525">0,表示在空闲状态下,RX 为低电平,激活状态下为高电平。</p>
|
||||
</li></ul></div></dd><dd class="- topic/dd dd ddexpand"><span class="+ topic/keyword pr-d/parmname keyword parmname">linux,rc-map-name</span></dd><dd class="- topic/dd dd ddexpand">红外模块使用的<span class="+ topic/keyword pr-d/parmname keyword parmname">“keycode-scancode”</span>映射表,默认使用内核中的空表,该属性可设置的值可参考
|
||||
<span class="+ topic/ph sw-d/filepath ph filepath">rc-map.h</span></dd></dl>
|
||||
<p class="- topic/p p" data-ofbid="d80668e92__20250121171525"> </p>
|
||||
</li></ul>
|
||||
</div>
|
||||
</section></div></article></main></div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<nav role="navigation" id="wh_topic_toc" aria-label="On this page" class="col-lg-2 d-none d-lg-block navbar d-print-none">
|
||||
<div id="wh_topic_toc_content">
|
||||
|
||||
<div class=" wh_topic_toc "><div class="wh_topic_label">在本页上</div><ul><li class="section-item"><div class="section-title"><a href="#cir_configuration__section_jhn_vr3_pdc" data-tocid="cir_configuration__section_jhn_vr3_pdc">内核配置</a></div></li><li class="section-item"><div class="section-title"><a href="#cir_configuration__section_wzj_5r3_pdc" data-tocid="cir_configuration__section_wzj_5r3_pdc">DTS 配置</a></div></li></ul></div>
|
||||
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<footer class="navbar navbar-default wh_footer">
|
||||
<div class=" footer-container mx-auto ">
|
||||
<title>footer def</title>
|
||||
<style><!--
|
||||
|
||||
.p1 {
|
||||
font-family: FangZhengShuSong, Times, serif;
|
||||
}
|
||||
.p2 {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
}
|
||||
.p3 {
|
||||
font-family: "Lucida Console", "Courier New", monospace;
|
||||
}
|
||||
|
||||
--></style>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="webhelp.fragment.footer">
|
||||
<p class="p1">Copyright © 2019-2024 广东匠芯创科技有限公司. All rights reserved.</p>
|
||||
</div><div>
|
||||
<div class="generation_time">
|
||||
Update Time: 2025-01-21
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<div id="go2top" class="d-print-none">
|
||||
<span class="oxy-icon oxy-icon-up"></span>
|
||||
</div>
|
||||
|
||||
<div id="modal_img_large" class="modal">
|
||||
<span class="close oxy-icon oxy-icon-remove"></span>
|
||||
<div id="modal_img_container"></div>
|
||||
<div id="caption"></div>
|
||||
</div>
|
||||
|
||||
|
||||
<script src="${pd}/publishing/publishing-styles-AIC-template/js/custom.js" defer="defer"></script>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
188
doc/topics/sdk/cir/cir_config_lite.html
Normal file
188
doc/topics/sdk/cir/cir_config_lite.html
Normal file
File diff suppressed because one or more lines are too long
208
doc/topics/sdk/cir/cir_data_struct.html
Normal file
208
doc/topics/sdk/cir/cir_data_struct.html
Normal file
@@ -0,0 +1,208 @@
|
||||
<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-cn" lang="zh-cn" data-whc_version="26.0">
|
||||
<head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="description" content="Driver 层数据结构 typedef struct aic_cir { struct rt_device dev; aic_cir_ctrl_t aic_cir_ctrl; cir_config_t config; } aic_cir_t; HAL 层数据结构 typedef enum { CIR_EVENT_RECEIVE_COMPLETE, CIR_EVENT_ERROR, } ..."/><meta name="DC.rights.owner" content="(C) 版权 2025"/><meta name="copyright" content="(C) 版权 2025"/><meta name="generator" content="DITA-OT"/><meta name="DC.type" content="concept"/><meta name="DC.contributor" content="yan.wang"/><meta name="DC.date.modified" content="2024-12-02"/><meta name="DC.format" content="HTML5"/><meta name="DC.identifier" content="cir_data_structure_design"/><meta name="DC.language" content="zh-CN"/><title>数据结构设计</title><!-- Build number 2023110923. --><meta name="wh-path2root" content="../../../"/><meta name="wh-toc-id" content=""/><meta name="wh-source-relpath" content="topics/sdk/cir/cir_data_struct.dita"/><meta name="wh-out-relpath" content="topics/sdk/cir/cir_data_struct.html"/>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="../../../webhelp/app/commons.css?buildId=2023110923"/>
|
||||
<link rel="stylesheet" type="text/css" href="../../../webhelp/app/topic.css?buildId=2023110923"/>
|
||||
|
||||
<script src="../../../webhelp/app/options/properties.js?buildId=20250121171154"></script>
|
||||
<script src="../../../webhelp/app/localization/strings.js?buildId=2023110923"></script>
|
||||
<script src="../../../webhelp/app/search/index/keywords.js?buildId=20250121171154"></script>
|
||||
<script defer="defer" src="../../../webhelp/app/commons.js?buildId=2023110923"></script>
|
||||
<script defer="defer" src="../../../webhelp/app/topic.js?buildId=2023110923"></script>
|
||||
<link rel="stylesheet" type="text/css" href="../../../webhelp/template/aic-styles-web.css?buildId=2023110923"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/notes.css?buildId=2023110923"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/aic-common.css?buildId=2023110923"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/aic-images.css?buildId=2023110923"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/footnote.css?buildId=2023110923"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/aic-web-watermark.css?buildId=2023110923"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/topic-body-list.css?buildId=2023110923"/></head>
|
||||
|
||||
<body id="cir_data_structure_design" class="wh_topic_page frmBody">
|
||||
<a href="#wh_topic_body" class="sr-only sr-only-focusable">
|
||||
跳转到主要内容
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
<header class="navbar navbar-default wh_header">
|
||||
<div class="container-fluid">
|
||||
<div class="wh_header_flex_container navbar-nav navbar-expand-md navbar-dark">
|
||||
<div class="wh_logo_and_publication_title_container">
|
||||
<div class="wh_logo_and_publication_title">
|
||||
|
||||
<a href="http://www.artinchip.com" class=" wh_logo d-none d-sm-block "><img src="../../../company-logo-white.png" alt="RTOS SDK 使用指南SDK 指南文件"/></a>
|
||||
<div class=" wh_publication_title "><a href="../../../index.html"><span class="booktitle"><span class="ph mainbooktitle">RTOS SDK 使用指南</span><span class="ph booktitlealt">SDK 指南文件</span></span></a></div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="wh_top_menu_and_indexterms_link collapse navbar-collapse" id="wh_top_menu_and_indexterms_link">
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class=" wh_search_input navbar-form wh_topic_page_search search " role="form">
|
||||
|
||||
|
||||
|
||||
<form id="searchForm" method="get" role="search" action="../../../search.html"><div><input type="search" placeholder="搜索 " class="wh_search_textfield" id="textToSearch" name="searchQuery" aria-label="搜索查询" required="required"/><button type="submit" class="wh_search_button" aria-label="搜索"><span class="search_input_text">搜索</span></button></div></form>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="container-fluid" id="wh_topic_container">
|
||||
<div class="row">
|
||||
|
||||
<nav class="wh_tools d-print-none navbar-expand-md" aria-label="Tools">
|
||||
|
||||
<div data-tooltip-position="bottom" class=" wh_breadcrumb "></div>
|
||||
|
||||
|
||||
|
||||
<div class="wh_right_tools">
|
||||
<button class="wh_hide_highlight" aria-label="切换搜索突出显示" title="切换搜索突出显示"></button>
|
||||
<button class="webhelp_expand_collapse_sections" data-next-state="collapsed" aria-label="折叠截面" title="折叠截面"></button>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class=" wh_print_link print d-none d-md-inline-block "><button onClick="window.print()" title="打印此页" aria-label="打印此页"></button></div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="wh_content_area">
|
||||
<div class="row">
|
||||
|
||||
|
||||
<div class="col-lg-10 col-md-10 col-sm-10 col-xs-12" id="wh_topic_body">
|
||||
|
||||
<button id="wh_close_topic_toc_button" class="close-toc-button d-none" aria-label="Toggle topic table of content" aria-controls="wh_topic_toc" aria-expanded="true">
|
||||
<span class="close-toc-icon-container">
|
||||
<span class="close-toc-icon"></span>
|
||||
</span>
|
||||
</button>
|
||||
|
||||
<div class=" wh_topic_content body "><main role="main"><article class="- topic/topic concept/concept topic concept" role="article" aria-labelledby="ariaid-title1"><span class="edit-link" style="font-size:12px; opacity:0.6; text-align:right; vertical-align:middle"><a target="_blank" href="http://172.16.35.88/tasks/jdssno1uvvbf2mltu9kb9v3if05d5gopuakboe8hlud18rma/edit/F:/aicdita/aicdita-cn/topics/sdk/cir/cir_data_struct.dita">Edit online</a></span><h1 class="- topic/title title topictitle1" id="ariaid-title1">数据结构设计</h1><div class="date inPage">2 Dec 2024</div><div style="color: gray;">
|
||||
Read time: 1 minute(s)
|
||||
</div><div class="- topic/body concept/conbody body conbody"><section class="- topic/section section" id="cir_data_structure_design__section_ylp_t5k_g1c" data-ofbid="cir_data_structure_design__section_ylp_t5k_g1c"><h2 class="- topic/title title sectiontitle">Driver 层数据结构</h2>
|
||||
|
||||
<div class="- topic/p p" data-ofbid="d169016e27__20250121171620">
|
||||
<pre class="+ topic/pre pr-d/codeblock pre codeblock language-c" id="cir_data_structure_design__codeblock_azn_55k_g1c" data-ofbid="cir_data_structure_design__codeblock_azn_55k_g1c"><strong class="hl-keyword">typedef</strong> <strong class="hl-keyword">struct</strong> aic_cir
|
||||
{
|
||||
<strong class="hl-keyword">struct</strong> rt_device dev;
|
||||
aic_cir_ctrl_t aic_cir_ctrl;
|
||||
cir_config_t config;
|
||||
} aic_cir_t;</pre>
|
||||
</div>
|
||||
</section><section class="- topic/section section" id="cir_data_structure_design__section_azh_55k_g1c" data-ofbid="cir_data_structure_design__section_azh_55k_g1c"><h2 class="- topic/title title sectiontitle">HAL 层数据结构</h2>
|
||||
|
||||
<div class="- topic/p p" data-ofbid="d169016e38__20250121171620">
|
||||
<pre class="+ topic/pre pr-d/codeblock pre codeblock language-c" id="cir_data_structure_design__codeblock_pxg_d13_fdc" data-ofbid="cir_data_structure_design__codeblock_pxg_d13_fdc"><strong class="hl-keyword">typedef</strong> <strong class="hl-keyword">enum</strong> {
|
||||
CIR_EVENT_RECEIVE_COMPLETE,
|
||||
CIR_EVENT_ERROR,
|
||||
} cir_event_t;
|
||||
|
||||
<strong class="hl-keyword">typedef</strong> <strong class="hl-keyword">struct</strong> aic_cir_ctrl aic_cir_ctrl_t;
|
||||
<strong class="hl-keyword">struct</strong> aic_cir_ctrl {
|
||||
<strong class="hl-keyword">unsigned</strong> <strong class="hl-keyword">long</strong> cir_base;
|
||||
uint8_t irq_num;
|
||||
uint8_t clk_idx;
|
||||
<strong class="hl-keyword">void</strong> (*callback)(aic_cir_ctrl_t *aic_cir_ctrl, cir_event_t event,
|
||||
<strong class="hl-keyword">void</strong> *arg);
|
||||
<strong class="hl-keyword">void</strong> *arg;
|
||||
uint8_t tx_data[<span class="hl-number">128</span>];
|
||||
uint8_t rx_data[<span class="hl-number">128</span>];
|
||||
uint32_t rx_idx;
|
||||
uint8_t rx_level;
|
||||
uint8_t rx_flag; <em class="hl-comment">/* Indicates if rxfifo has received data */</em>
|
||||
};</pre>
|
||||
</div>
|
||||
</section></div></article></main></div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<nav role="navigation" id="wh_topic_toc" aria-label="On this page" class="col-lg-2 d-none d-lg-block navbar d-print-none">
|
||||
<div id="wh_topic_toc_content">
|
||||
|
||||
<div class=" wh_topic_toc "><div class="wh_topic_label">在本页上</div><ul><li class="section-item"><div class="section-title"><a href="#cir_data_structure_design__section_ylp_t5k_g1c" data-tocid="cir_data_structure_design__section_ylp_t5k_g1c">Driver 层数据结构</a></div></li><li class="section-item"><div class="section-title"><a href="#cir_data_structure_design__section_azh_55k_g1c" data-tocid="cir_data_structure_design__section_azh_55k_g1c">HAL 层数据结构</a></div></li></ul></div>
|
||||
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<footer class="navbar navbar-default wh_footer">
|
||||
<div class=" footer-container mx-auto ">
|
||||
<title>footer def</title>
|
||||
<style><!--
|
||||
|
||||
.p1 {
|
||||
font-family: FangZhengShuSong, Times, serif;
|
||||
}
|
||||
.p2 {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
}
|
||||
.p3 {
|
||||
font-family: "Lucida Console", "Courier New", monospace;
|
||||
}
|
||||
|
||||
--></style>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="webhelp.fragment.footer">
|
||||
<p class="p1">Copyright © 2019-2024 广东匠芯创科技有限公司. All rights reserved.</p>
|
||||
</div><div>
|
||||
<div class="generation_time">
|
||||
Update Time: 2025-01-21
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<div id="go2top" class="d-print-none">
|
||||
<span class="oxy-icon oxy-icon-up"></span>
|
||||
</div>
|
||||
|
||||
<div id="modal_img_large" class="modal">
|
||||
<span class="close oxy-icon oxy-icon-remove"></span>
|
||||
<div id="modal_img_container"></div>
|
||||
<div id="caption"></div>
|
||||
</div>
|
||||
|
||||
|
||||
<script src="${pd}/publishing/publishing-styles-AIC-template/js/custom.js" defer="defer"></script>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
225
doc/topics/sdk/cir/cir_data_struct_2.html
Normal file
225
doc/topics/sdk/cir/cir_data_struct_2.html
Normal file
File diff suppressed because one or more lines are too long
161
doc/topics/sdk/cir/cir_debug.html
Normal file
161
doc/topics/sdk/cir/cir_debug.html
Normal file
@@ -0,0 +1,161 @@
|
||||
<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-cn" lang="zh-cn" data-whc_version="26.0">
|
||||
<head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="description" content=""/><meta name="DC.rights.owner" content="(C) 版权 2025"/><meta name="copyright" content="(C) 版权 2025"/><meta name="generator" content="DITA-OT"/><meta name="DC.type" content="concept"/><meta name="DC.contributor" content="yan.wang"/><meta name="DC.date.modified" content="2024-12-10"/><meta name="DC.format" content="HTML5"/><meta name="DC.identifier" content="cir_debug_guide"/><meta name="DC.language" content="zh-CN"/><title>调试指南</title><!-- Build number 2023110923. --><meta name="wh-path2root" content="../../../"/><meta name="wh-toc-id" content=""/><meta name="wh-source-relpath" content="topics/sdk/cir/cir_debug.dita"/><meta name="wh-out-relpath" content="topics/sdk/cir/cir_debug.html"/>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="../../../webhelp/app/commons.css?buildId=2023110923"/>
|
||||
<link rel="stylesheet" type="text/css" href="../../../webhelp/app/topic.css?buildId=2023110923"/>
|
||||
|
||||
<script src="../../../webhelp/app/options/properties.js?buildId=20250121171154"></script>
|
||||
<script src="../../../webhelp/app/localization/strings.js?buildId=2023110923"></script>
|
||||
<script src="../../../webhelp/app/search/index/keywords.js?buildId=20250121171154"></script>
|
||||
<script defer="defer" src="../../../webhelp/app/commons.js?buildId=2023110923"></script>
|
||||
<script defer="defer" src="../../../webhelp/app/topic.js?buildId=2023110923"></script>
|
||||
<link rel="stylesheet" type="text/css" href="../../../webhelp/template/aic-styles-web.css?buildId=2023110923"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/notes.css?buildId=2023110923"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/aic-common.css?buildId=2023110923"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/aic-images.css?buildId=2023110923"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/footnote.css?buildId=2023110923"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/aic-web-watermark.css?buildId=2023110923"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/topic-body-list.css?buildId=2023110923"/></head>
|
||||
|
||||
<body id="cir_debug_guide" class="wh_topic_page frmBody">
|
||||
<a href="#wh_topic_body" class="sr-only sr-only-focusable">
|
||||
跳转到主要内容
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
<header class="navbar navbar-default wh_header">
|
||||
<div class="container-fluid">
|
||||
<div class="wh_header_flex_container navbar-nav navbar-expand-md navbar-dark">
|
||||
<div class="wh_logo_and_publication_title_container">
|
||||
<div class="wh_logo_and_publication_title">
|
||||
|
||||
<a href="http://www.artinchip.com" class=" wh_logo d-none d-sm-block "><img src="../../../company-logo-white.png" alt="RTOS SDK 使用指南SDK 指南文件"/></a>
|
||||
<div class=" wh_publication_title "><a href="../../../index.html"><span class="booktitle"><span class="ph mainbooktitle">RTOS SDK 使用指南</span><span class="ph booktitlealt">SDK 指南文件</span></span></a></div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="wh_top_menu_and_indexterms_link collapse navbar-collapse" id="wh_top_menu_and_indexterms_link">
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class=" wh_search_input navbar-form wh_topic_page_search search " role="form">
|
||||
|
||||
|
||||
|
||||
<form id="searchForm" method="get" role="search" action="../../../search.html"><div><input type="search" placeholder="搜索 " class="wh_search_textfield" id="textToSearch" name="searchQuery" aria-label="搜索查询" required="required"/><button type="submit" class="wh_search_button" aria-label="搜索"><span class="search_input_text">搜索</span></button></div></form>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="container-fluid" id="wh_topic_container">
|
||||
<div class="row">
|
||||
|
||||
<nav class="wh_tools d-print-none navbar-expand-md" aria-label="Tools">
|
||||
|
||||
<div data-tooltip-position="bottom" class=" wh_breadcrumb "></div>
|
||||
|
||||
|
||||
|
||||
<div class="wh_right_tools">
|
||||
<button class="wh_hide_highlight" aria-label="切换搜索突出显示" title="切换搜索突出显示"></button>
|
||||
<button class="webhelp_expand_collapse_sections" data-next-state="collapsed" aria-label="折叠截面" title="折叠截面"></button>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class=" wh_print_link print d-none d-md-inline-block "><button onClick="window.print()" title="打印此页" aria-label="打印此页"></button></div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="wh_content_area">
|
||||
<div class="row">
|
||||
|
||||
|
||||
<div class="col-12" id="wh_topic_body">
|
||||
|
||||
|
||||
|
||||
<div class=" wh_topic_content body "><main role="main"><article class="- topic/topic concept/concept topic concept" role="article" aria-labelledby="ariaid-title1"><span class="edit-link" style="font-size:12px; opacity:0.6; text-align:right; vertical-align:middle"><a target="_blank" href="http://172.16.35.88/tasks/jdssno1uvvbf2mltu9kb9v3if05d5gopuakboe8hlud18rma/edit/F:/aicdita/aicdita-cn/topics/sdk/cir/cir_debug.dita">Edit online</a></span><h1 class="- topic/title title topictitle1" id="ariaid-title1">调试指南</h1><div class="date inPage">10 Dec 2024</div><div style="color: gray;"></div><div class="- topic/body concept/conbody body conbody"></div></article></main></div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<footer class="navbar navbar-default wh_footer">
|
||||
<div class=" footer-container mx-auto ">
|
||||
<title>footer def</title>
|
||||
<style><!--
|
||||
|
||||
.p1 {
|
||||
font-family: FangZhengShuSong, Times, serif;
|
||||
}
|
||||
.p2 {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
}
|
||||
.p3 {
|
||||
font-family: "Lucida Console", "Courier New", monospace;
|
||||
}
|
||||
|
||||
--></style>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="webhelp.fragment.footer">
|
||||
<p class="p1">Copyright © 2019-2024 广东匠芯创科技有限公司. All rights reserved.</p>
|
||||
</div><div>
|
||||
<div class="generation_time">
|
||||
Update Time: 2025-01-21
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<div id="go2top" class="d-print-none">
|
||||
<span class="oxy-icon oxy-icon-up"></span>
|
||||
</div>
|
||||
|
||||
<div id="modal_img_large" class="modal">
|
||||
<span class="close oxy-icon oxy-icon-remove"></span>
|
||||
<div id="modal_img_container"></div>
|
||||
<div id="caption"></div>
|
||||
</div>
|
||||
|
||||
|
||||
<script src="${pd}/publishing/publishing-styles-AIC-template/js/custom.js" defer="defer"></script>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
178
doc/topics/sdk/cir/cir_debug_2.html
Normal file
178
doc/topics/sdk/cir/cir_debug_2.html
Normal file
File diff suppressed because one or more lines are too long
217
doc/topics/sdk/cir/cir_design.html
Normal file
217
doc/topics/sdk/cir/cir_design.html
Normal file
@@ -0,0 +1,217 @@
|
||||
<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-cn" lang="zh-cn" data-whc_version="26.0">
|
||||
<head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="description" content="源码说明 CIR 模块的源码位于 bsp/artinchip/ bsp/artinchip/drv/cir/drv_cir.c,cir driver 层接口实现 bsp/artinchip/include/drv/drv_cir.h,cir driver 层接口头文件 bsp/artinchip/drv/cir/nec_decoder.c,NEC 协议编解码实现 ..."/><meta name="DC.rights.owner" content="(C) 版权 2025"/><meta name="copyright" content="(C) 版权 2025"/><meta name="generator" content="DITA-OT"/><meta name="DC.type" content="concept"/><meta name="DC.contributor" content="yan.wang"/><meta name="DC.date.modified" content="2024-12-02"/><meta name="DC.format" content="HTML5"/><meta name="DC.identifier" content="cir_design_intro"/><meta name="DC.language" content="zh-CN"/><title>设计说明</title><!-- Build number 2023110923. --><meta name="wh-path2root" content="../../../"/><meta name="wh-toc-id" content=""/><meta name="wh-source-relpath" content="topics/sdk/cir/cir_design.dita"/><meta name="wh-out-relpath" content="topics/sdk/cir/cir_design.html"/>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="../../../webhelp/app/commons.css?buildId=2023110923"/>
|
||||
<link rel="stylesheet" type="text/css" href="../../../webhelp/app/topic.css?buildId=2023110923"/>
|
||||
|
||||
<script src="../../../webhelp/app/options/properties.js?buildId=20250121171154"></script>
|
||||
<script src="../../../webhelp/app/localization/strings.js?buildId=2023110923"></script>
|
||||
<script src="../../../webhelp/app/search/index/keywords.js?buildId=20250121171154"></script>
|
||||
<script defer="defer" src="../../../webhelp/app/commons.js?buildId=2023110923"></script>
|
||||
<script defer="defer" src="../../../webhelp/app/topic.js?buildId=2023110923"></script>
|
||||
<link rel="stylesheet" type="text/css" href="../../../webhelp/template/aic-styles-web.css?buildId=2023110923"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/notes.css?buildId=2023110923"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/aic-common.css?buildId=2023110923"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/aic-images.css?buildId=2023110923"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/footnote.css?buildId=2023110923"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/aic-web-watermark.css?buildId=2023110923"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/topic-body-list.css?buildId=2023110923"/></head>
|
||||
|
||||
<body id="cir_design_intro" class="wh_topic_page frmBody">
|
||||
<a href="#wh_topic_body" class="sr-only sr-only-focusable">
|
||||
跳转到主要内容
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
<header class="navbar navbar-default wh_header">
|
||||
<div class="container-fluid">
|
||||
<div class="wh_header_flex_container navbar-nav navbar-expand-md navbar-dark">
|
||||
<div class="wh_logo_and_publication_title_container">
|
||||
<div class="wh_logo_and_publication_title">
|
||||
|
||||
<a href="http://www.artinchip.com" class=" wh_logo d-none d-sm-block "><img src="../../../company-logo-white.png" alt="RTOS SDK 使用指南SDK 指南文件"/></a>
|
||||
<div class=" wh_publication_title "><a href="../../../index.html"><span class="booktitle"><span class="ph mainbooktitle">RTOS SDK 使用指南</span><span class="ph booktitlealt">SDK 指南文件</span></span></a></div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="wh_top_menu_and_indexterms_link collapse navbar-collapse" id="wh_top_menu_and_indexterms_link">
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class=" wh_search_input navbar-form wh_topic_page_search search " role="form">
|
||||
|
||||
|
||||
|
||||
<form id="searchForm" method="get" role="search" action="../../../search.html"><div><input type="search" placeholder="搜索 " class="wh_search_textfield" id="textToSearch" name="searchQuery" aria-label="搜索查询" required="required"/><button type="submit" class="wh_search_button" aria-label="搜索"><span class="search_input_text">搜索</span></button></div></form>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="container-fluid" id="wh_topic_container">
|
||||
<div class="row">
|
||||
|
||||
<nav class="wh_tools d-print-none navbar-expand-md" aria-label="Tools">
|
||||
|
||||
<div data-tooltip-position="bottom" class=" wh_breadcrumb "></div>
|
||||
|
||||
|
||||
|
||||
<div class="wh_right_tools">
|
||||
<button class="wh_hide_highlight" aria-label="切换搜索突出显示" title="切换搜索突出显示"></button>
|
||||
<button class="webhelp_expand_collapse_sections" data-next-state="collapsed" aria-label="折叠截面" title="折叠截面"></button>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class=" wh_print_link print d-none d-md-inline-block "><button onClick="window.print()" title="打印此页" aria-label="打印此页"></button></div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="wh_content_area">
|
||||
<div class="row">
|
||||
|
||||
|
||||
<div class="col-lg-10 col-md-10 col-sm-10 col-xs-12" id="wh_topic_body">
|
||||
|
||||
<button id="wh_close_topic_toc_button" class="close-toc-button d-none" aria-label="Toggle topic table of content" aria-controls="wh_topic_toc" aria-expanded="true">
|
||||
<span class="close-toc-icon-container">
|
||||
<span class="close-toc-icon"></span>
|
||||
</span>
|
||||
</button>
|
||||
|
||||
<div class=" wh_topic_content body "><main role="main"><article class="- topic/topic concept/concept topic concept" role="article" aria-labelledby="ariaid-title1"><span class="edit-link" style="font-size:12px; opacity:0.6; text-align:right; vertical-align:middle"><a target="_blank" href="http://172.16.35.88/tasks/jdssno1uvvbf2mltu9kb9v3if05d5gopuakboe8hlud18rma/edit/F:/aicdita/aicdita-cn/topics/sdk/cir/cir_design.dita">Edit online</a></span><h1 class="- topic/title title topictitle1" id="ariaid-title1">设计说明</h1><div class="date inPage">2 Dec 2024</div><div style="color: gray;">
|
||||
Read time: 1 minute(s)
|
||||
</div><div class="- topic/body concept/conbody body conbody"><section class="- topic/section section" id="cir_design_intro__section_cjj_4mn_4dc" data-ofbid="cir_design_intro__section_cjj_4mn_4dc"><h2 class="- topic/title title sectiontitle">源码说明</h2>
|
||||
|
||||
<div class="- topic/p p" data-ofbid="d112176e27__20250121171554">CIR 模块的源码位于<span class="+ topic/ph sw-d/filepath ph filepath">bsp/artinchip/</span><ul class="- topic/ul ul" id="cir_design_intro__ul_uth_b5k_g1c" data-ofbid="cir_design_intro__ul_uth_b5k_g1c"><li class="- topic/li li" data-ofbid="d112176e32__20250121171554">
|
||||
<p class="- topic/p p" data-ofbid="d112176e34__20250121171554">bsp/artinchip/drv/cir/drv_cir.c,cir driver 层接口实现</p>
|
||||
</li><li class="- topic/li li" data-ofbid="d112176e37__20250121171554">
|
||||
<p class="- topic/p p" data-ofbid="d112176e39__20250121171554">bsp/artinchip/include/drv/drv_cir.h,cir driver 层接口头文件</p>
|
||||
</li><li class="- topic/li li" data-ofbid="d112176e42__20250121171554">
|
||||
<p class="- topic/p p" data-ofbid="d112176e44__20250121171554">bsp/artinchip/drv/cir/nec_decoder.c,NEC 协议编解码实现</p>
|
||||
</li><li class="- topic/li li" data-ofbid="d112176e47__20250121171554">
|
||||
<p class="- topic/p p" data-ofbid="d112176e49__20250121171554">bsp/artinchip/drv/cir/rc5_decoder.c,RC5 协议编解码实现</p>
|
||||
</li><li class="- topic/li li" data-ofbid="d112176e52__20250121171554">
|
||||
<p class="- topic/p p" data-ofbid="d112176e54__20250121171554">bsp/artinchip/drv/cir/ir_raw.c,编解码调用及注册接口实现</p>
|
||||
</li><li class="- topic/li li" data-ofbid="d112176e57__20250121171554">
|
||||
<p class="- topic/p p" data-ofbid="d112176e59__20250121171554">bsp/artinchip/drv/cir/ir_raw.h,编解码调用及注册接口头文件</p>
|
||||
</li><li class="- topic/li li" data-ofbid="d112176e62__20250121171554">
|
||||
<p class="- topic/p p" data-ofbid="d112176e64__20250121171554">bsp/artinchip/hal/cir/hal_cir.c,cir hal 层接口实现</p>
|
||||
</li><li class="- topic/li li" data-ofbid="d112176e67__20250121171554">
|
||||
<p class="- topic/p p" data-ofbid="d112176e69__20250121171554">bsp/artinchip/include/hal/hal_cir.h,cir hal 层接口头文件及寄存器定义</p>
|
||||
</li></ul></div>
|
||||
</section><section class="- topic/section section" id="cir_design_intro__section_t52_pmn_4dc" data-ofbid="cir_design_intro__section_t52_pmn_4dc"><h2 class="- topic/title title sectiontitle">模块架构</h2>
|
||||
|
||||
<p class="- topic/p p" data-ofbid="d112176e78__20250121171554">linux 内核中 rc 的基本框架如下图所示:</p>
|
||||
<div class="- topic/p p" data-ofbid="d112176e81__20250121171554">
|
||||
|
||||
<br/><div class="imagecenter"><img class="- topic/image image imagecenter" id="cir_design_intro__image_d4h_d5k_g1c" src="../../../images/cir/rc_arch_lite.png" width="384" alt="rc_arch"/></div><br/>
|
||||
</div>
|
||||
<p class="- topic/p p" data-ofbid="d112176e88__20250121171554">红外信号的编码和解码工作由<span class="- topic/ph ph">CIR
|
||||
协议</span>负责完成。在完成编码后,应用层需要发送的信号被编码为一系列的带有宽度的高低电平(pulse/space),CIR driver
|
||||
在发送端就是需要将这一系列的 pulse/space 写入发送 FIFO,发送出去。在接收红外信号时,CIR driver 需要将接收到的一系列高低电平送入到<span class="- topic/ph ph">CIR 协议</span>进行解码,最终将解码得到的
|
||||
scancode到输入子系统,最终送给 app 程序完成红外信号的接收。所以,CIR
|
||||
驱动的主要任务有:</p>
|
||||
<ol class="- topic/ol ol" id="cir_design_intro__ol_ugz_2fn_d1c" data-ofbid="cir_design_intro__ol_ugz_2fn_d1c"><li class="- topic/li li" data-ofbid="d112176e98__20250121171554">
|
||||
<p class="- topic/p p" data-ofbid="d112176e100__20250121171554">将编码得到的高低电平信号以游码的形式写入 TX-FIFO,发送红外信号</p>
|
||||
</li><li class="- topic/li li" data-ofbid="d112176e103__20250121171554">
|
||||
<p class="- topic/p p" data-ofbid="d112176e105__20250121171554">将 CIR 模块接收的 RX-FIFO 中的游码正确表示为高低电平的形式,相邻的高电平或低电平需要进行合并。</p>
|
||||
</li><li class="- topic/li li" data-ofbid="d112176e108__20250121171554">
|
||||
<p class="- topic/p p" data-ofbid="d112176e110__20250121171554">根据用户空间传递的红外参数,对 CIR 的底层寄存器进行配置,如配置载波频率,配置占空比等</p>
|
||||
</li></ol>
|
||||
<p class="- topic/p p" data-ofbid="d112176e115__20250121171554">由于红外信号的数据量都很少,所以在红外信号的发送端,一般是利用循环将所有的数据一次性全部发送出去,而不会采用中断或 DMA
|
||||
的方式。在红外信号的接收端,一般是采用中断的方式进行数据的接收,在接收完成后,调用相应的解码函数进行解码。CIR
|
||||
模块可以支持任何的红外协议,对不同红外协议的支持可以通过对载波配置寄存器的设置来实现。<span class="- topic/ph ph">Luban-Lite
|
||||
中目前提供了 NEC 和 RC5 协议的编解码,</span>CIR 驱动中默认配置的是支持 NEC 协议。</p>
|
||||
</section></div></article></main></div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<nav role="navigation" id="wh_topic_toc" aria-label="On this page" class="col-lg-2 d-none d-lg-block navbar d-print-none">
|
||||
<div id="wh_topic_toc_content">
|
||||
|
||||
<div class=" wh_topic_toc "><div class="wh_topic_label">在本页上</div><ul><li class="section-item"><div class="section-title"><a href="#cir_design_intro__section_cjj_4mn_4dc" data-tocid="cir_design_intro__section_cjj_4mn_4dc">源码说明</a></div></li><li class="section-item"><div class="section-title"><a href="#cir_design_intro__section_t52_pmn_4dc" data-tocid="cir_design_intro__section_t52_pmn_4dc">模块架构</a></div></li></ul></div>
|
||||
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<footer class="navbar navbar-default wh_footer">
|
||||
<div class=" footer-container mx-auto ">
|
||||
<title>footer def</title>
|
||||
<style><!--
|
||||
|
||||
.p1 {
|
||||
font-family: FangZhengShuSong, Times, serif;
|
||||
}
|
||||
.p2 {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
}
|
||||
.p3 {
|
||||
font-family: "Lucida Console", "Courier New", monospace;
|
||||
}
|
||||
|
||||
--></style>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="webhelp.fragment.footer">
|
||||
<p class="p1">Copyright © 2019-2024 广东匠芯创科技有限公司. All rights reserved.</p>
|
||||
</div><div>
|
||||
<div class="generation_time">
|
||||
Update Time: 2025-01-21
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<div id="go2top" class="d-print-none">
|
||||
<span class="oxy-icon oxy-icon-up"></span>
|
||||
</div>
|
||||
|
||||
<div id="modal_img_large" class="modal">
|
||||
<span class="close oxy-icon oxy-icon-remove"></span>
|
||||
<div id="modal_img_container"></div>
|
||||
<div id="caption"></div>
|
||||
</div>
|
||||
|
||||
|
||||
<script src="${pd}/publishing/publishing-styles-AIC-template/js/custom.js" defer="defer"></script>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
234
doc/topics/sdk/cir/cir_design_2.html
Normal file
234
doc/topics/sdk/cir/cir_design_2.html
Normal file
File diff suppressed because one or more lines are too long
165
doc/topics/sdk/cir/cir_faq.html
Normal file
165
doc/topics/sdk/cir/cir_faq.html
Normal file
@@ -0,0 +1,165 @@
|
||||
<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-cn" lang="zh-cn" data-whc_version="26.0">
|
||||
<head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="description" content="已经确认 RX 或 TX 连接正确 驱动或协议是否正确配置"/><meta name="DC.rights.owner" content="(C) 版权 2025"/><meta name="copyright" content="(C) 版权 2025"/><meta name="generator" content="DITA-OT"/><meta name="DC.type" content="topic"/><meta name="DC.contributor" content="yan.wang"/><meta name="DC.date.modified" content="2024-12-02"/><meta name="DC.format" content="HTML5"/><meta name="DC.identifier" content="id"/><meta name="DC.language" content="zh-CN"/><title>常见问题</title><!-- Build number 2023110923. --><meta name="wh-path2root" content="../../../"/><meta name="wh-toc-id" content=""/><meta name="wh-source-relpath" content="topics/sdk/cir/cir_faq.dita"/><meta name="wh-out-relpath" content="topics/sdk/cir/cir_faq.html"/>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="../../../webhelp/app/commons.css?buildId=2023110923"/>
|
||||
<link rel="stylesheet" type="text/css" href="../../../webhelp/app/topic.css?buildId=2023110923"/>
|
||||
|
||||
<script src="../../../webhelp/app/options/properties.js?buildId=20250121171154"></script>
|
||||
<script src="../../../webhelp/app/localization/strings.js?buildId=2023110923"></script>
|
||||
<script src="../../../webhelp/app/search/index/keywords.js?buildId=20250121171154"></script>
|
||||
<script defer="defer" src="../../../webhelp/app/commons.js?buildId=2023110923"></script>
|
||||
<script defer="defer" src="../../../webhelp/app/topic.js?buildId=2023110923"></script>
|
||||
<link rel="stylesheet" type="text/css" href="../../../webhelp/template/aic-styles-web.css?buildId=2023110923"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/notes.css?buildId=2023110923"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/aic-common.css?buildId=2023110923"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/aic-images.css?buildId=2023110923"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/footnote.css?buildId=2023110923"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/aic-web-watermark.css?buildId=2023110923"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/topic-body-list.css?buildId=2023110923"/></head>
|
||||
|
||||
<body id="id" class="wh_topic_page frmBody">
|
||||
<a href="#wh_topic_body" class="sr-only sr-only-focusable">
|
||||
跳转到主要内容
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
<header class="navbar navbar-default wh_header">
|
||||
<div class="container-fluid">
|
||||
<div class="wh_header_flex_container navbar-nav navbar-expand-md navbar-dark">
|
||||
<div class="wh_logo_and_publication_title_container">
|
||||
<div class="wh_logo_and_publication_title">
|
||||
|
||||
<a href="http://www.artinchip.com" class=" wh_logo d-none d-sm-block "><img src="../../../company-logo-white.png" alt="RTOS SDK 使用指南SDK 指南文件"/></a>
|
||||
<div class=" wh_publication_title "><a href="../../../index.html"><span class="booktitle"><span class="ph mainbooktitle">RTOS SDK 使用指南</span><span class="ph booktitlealt">SDK 指南文件</span></span></a></div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="wh_top_menu_and_indexterms_link collapse navbar-collapse" id="wh_top_menu_and_indexterms_link">
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class=" wh_search_input navbar-form wh_topic_page_search search " role="form">
|
||||
|
||||
|
||||
|
||||
<form id="searchForm" method="get" role="search" action="../../../search.html"><div><input type="search" placeholder="搜索 " class="wh_search_textfield" id="textToSearch" name="searchQuery" aria-label="搜索查询" required="required"/><button type="submit" class="wh_search_button" aria-label="搜索"><span class="search_input_text">搜索</span></button></div></form>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="container-fluid" id="wh_topic_container">
|
||||
<div class="row">
|
||||
|
||||
<nav class="wh_tools d-print-none navbar-expand-md" aria-label="Tools">
|
||||
|
||||
<div data-tooltip-position="bottom" class=" wh_breadcrumb "></div>
|
||||
|
||||
|
||||
|
||||
<div class="wh_right_tools">
|
||||
<button class="wh_hide_highlight" aria-label="切换搜索突出显示" title="切换搜索突出显示"></button>
|
||||
<button class="webhelp_expand_collapse_sections" data-next-state="collapsed" aria-label="折叠截面" title="折叠截面"></button>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class=" wh_print_link print d-none d-md-inline-block "><button onClick="window.print()" title="打印此页" aria-label="打印此页"></button></div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="wh_content_area">
|
||||
<div class="row">
|
||||
|
||||
|
||||
<div class="col-12" id="wh_topic_body">
|
||||
|
||||
|
||||
|
||||
<div class=" wh_topic_content body "><main role="main"><article class="- topic/topic topic" role="article" aria-labelledby="ariaid-title1"><span class="edit-link" style="font-size:12px; opacity:0.6; text-align:right; vertical-align:middle"><a target="_blank" href="http://172.16.35.88/tasks/jdssno1uvvbf2mltu9kb9v3if05d5gopuakboe8hlud18rma/edit/F:/aicdita/aicdita-cn/topics/sdk/cir/cir_faq.dita">Edit online</a></span><h1 class="- topic/title title topictitle1" id="ariaid-title1">常见问题</h1><div class="date inPage">2 Dec 2024</div><div style="color: gray;"></div><div class="- topic/body body"><ol class="- topic/ol ol arabic simple" id="id__ol_s4h_l13_fdc" data-ofbid="id__ol_s4h_l13_fdc"><li class="- topic/li li" data-ofbid="d66511e18__20250121171522">
|
||||
<p class="- topic/p p" data-ofbid="d66511e20__20250121171522">已经确认 RX 或 TX 连接正确</p>
|
||||
</li><li class="- topic/li li" data-ofbid="d66511e23__20250121171522">
|
||||
<p class="- topic/p p" data-ofbid="d66511e25__20250121171522">驱动或协议是否正确配置</p>
|
||||
</li></ol></div></article></main></div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<footer class="navbar navbar-default wh_footer">
|
||||
<div class=" footer-container mx-auto ">
|
||||
<title>footer def</title>
|
||||
<style><!--
|
||||
|
||||
.p1 {
|
||||
font-family: FangZhengShuSong, Times, serif;
|
||||
}
|
||||
.p2 {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
}
|
||||
.p3 {
|
||||
font-family: "Lucida Console", "Courier New", monospace;
|
||||
}
|
||||
|
||||
--></style>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="webhelp.fragment.footer">
|
||||
<p class="p1">Copyright © 2019-2024 广东匠芯创科技有限公司. All rights reserved.</p>
|
||||
</div><div>
|
||||
<div class="generation_time">
|
||||
Update Time: 2025-01-21
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<div id="go2top" class="d-print-none">
|
||||
<span class="oxy-icon oxy-icon-up"></span>
|
||||
</div>
|
||||
|
||||
<div id="modal_img_large" class="modal">
|
||||
<span class="close oxy-icon oxy-icon-remove"></span>
|
||||
<div id="modal_img_container"></div>
|
||||
<div id="caption"></div>
|
||||
</div>
|
||||
|
||||
|
||||
<script src="${pd}/publishing/publishing-styles-AIC-template/js/custom.js" defer="defer"></script>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
182
doc/topics/sdk/cir/cir_faq_2.html
Normal file
182
doc/topics/sdk/cir/cir_faq_2.html
Normal file
File diff suppressed because one or more lines are too long
165
doc/topics/sdk/cir/cir_interface.html
Normal file
165
doc/topics/sdk/cir/cir_interface.html
Normal file
@@ -0,0 +1,165 @@
|
||||
<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-cn" lang="zh-cn" data-whc_version="26.0">
|
||||
<head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="description" content="表 1 . aic_set_rx_carrier_range 函数原型 static int aic_set_rx_carrier_range(struct rc_dev *rcdev, u32 min, u32 max) 功能说明 设置 CIR 模块接收器的采样频率 参数定义 rcdev:指向红外设备的指针 min:设置的采样频率最小值 max:设置的采样频率最大值 返回值 执行成功返回 0 ..."/><meta name="DC.rights.owner" content="(C) 版权 2025"/><meta name="copyright" content="(C) 版权 2025"/><meta name="generator" content="DITA-OT"/><meta name="DC.type" content="concept"/><meta name="DC.contributor" content="yan.wang"/><meta name="DC.date.modified" content="2024-01-19"/><meta name="DC.format" content="HTML5"/><meta name="DC.identifier" content="cir_interface_design"/><meta name="DC.language" content="zh-CN"/><title>接口设计</title><!-- Build number 2023110923. --><meta name="wh-path2root" content="../../../"/><meta name="wh-toc-id" content=""/><meta name="wh-source-relpath" content="topics/sdk/cir/cir_interface.dita"/><meta name="wh-out-relpath" content="topics/sdk/cir/cir_interface.html"/>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="../../../webhelp/app/commons.css?buildId=2023110923"/>
|
||||
<link rel="stylesheet" type="text/css" href="../../../webhelp/app/topic.css?buildId=2023110923"/>
|
||||
|
||||
<script src="../../../webhelp/app/options/properties.js?buildId=20250121171154"></script>
|
||||
<script src="../../../webhelp/app/localization/strings.js?buildId=2023110923"></script>
|
||||
<script src="../../../webhelp/app/search/index/keywords.js?buildId=20250121171154"></script>
|
||||
<script defer="defer" src="../../../webhelp/app/commons.js?buildId=2023110923"></script>
|
||||
<script defer="defer" src="../../../webhelp/app/topic.js?buildId=2023110923"></script>
|
||||
<link rel="stylesheet" type="text/css" href="../../../webhelp/template/aic-styles-web.css?buildId=2023110923"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/notes.css?buildId=2023110923"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/aic-common.css?buildId=2023110923"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/aic-images.css?buildId=2023110923"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/footnote.css?buildId=2023110923"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/aic-web-watermark.css?buildId=2023110923"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/topic-body-list.css?buildId=2023110923"/></head>
|
||||
|
||||
<body id="cir_interface_design" class="wh_topic_page frmBody">
|
||||
<a href="#wh_topic_body" class="sr-only sr-only-focusable">
|
||||
跳转到主要内容
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
<header class="navbar navbar-default wh_header">
|
||||
<div class="container-fluid">
|
||||
<div class="wh_header_flex_container navbar-nav navbar-expand-md navbar-dark">
|
||||
<div class="wh_logo_and_publication_title_container">
|
||||
<div class="wh_logo_and_publication_title">
|
||||
|
||||
<a href="http://www.artinchip.com" class=" wh_logo d-none d-sm-block "><img src="../../../company-logo-white.png" alt="RTOS SDK 使用指南SDK 指南文件"/></a>
|
||||
<div class=" wh_publication_title "><a href="../../../index.html"><span class="booktitle"><span class="ph mainbooktitle">RTOS SDK 使用指南</span><span class="ph booktitlealt">SDK 指南文件</span></span></a></div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="wh_top_menu_and_indexterms_link collapse navbar-collapse" id="wh_top_menu_and_indexterms_link">
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class=" wh_search_input navbar-form wh_topic_page_search search " role="form">
|
||||
|
||||
|
||||
|
||||
<form id="searchForm" method="get" role="search" action="../../../search.html"><div><input type="search" placeholder="搜索 " class="wh_search_textfield" id="textToSearch" name="searchQuery" aria-label="搜索查询" required="required"/><button type="submit" class="wh_search_button" aria-label="搜索"><span class="search_input_text">搜索</span></button></div></form>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="container-fluid" id="wh_topic_container">
|
||||
<div class="row">
|
||||
|
||||
<nav class="wh_tools d-print-none navbar-expand-md" aria-label="Tools">
|
||||
|
||||
<div data-tooltip-position="bottom" class=" wh_breadcrumb "></div>
|
||||
|
||||
|
||||
|
||||
<div class="wh_right_tools">
|
||||
<button class="wh_hide_highlight" aria-label="切换搜索突出显示" title="切换搜索突出显示"></button>
|
||||
<button class="webhelp_expand_collapse_sections" data-next-state="collapsed" aria-label="折叠截面" title="折叠截面"></button>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class=" wh_print_link print d-none d-md-inline-block "><button onClick="window.print()" title="打印此页" aria-label="打印此页"></button></div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="wh_content_area">
|
||||
<div class="row">
|
||||
|
||||
|
||||
<div class="col-12" id="wh_topic_body">
|
||||
|
||||
|
||||
|
||||
<div class=" wh_topic_content body "><main role="main"><article class="- topic/topic concept/concept topic concept" role="article" aria-labelledby="ariaid-title1"><span class="edit-link" style="font-size:12px; opacity:0.6; text-align:right; vertical-align:middle"><a target="_blank" href="http://172.16.35.88/tasks/jdssno1uvvbf2mltu9kb9v3if05d5gopuakboe8hlud18rma/edit/F:/aicdita/aicdita-cn/topics/sdk/cir/cir_interface.dita">Edit online</a></span><h1 class="- topic/title title topictitle1" id="ariaid-title1">接口设计</h1><div class="date inPage">19 Jan 2024</div><div style="color: gray;"></div><div class="- topic/body concept/conbody body conbody"><div class="table-container"><table class="- topic/table table frame-all" id="cir_interface_design__table_jzy_jfn_d1c" data-ofbid="cir_interface_design__table_jzy_jfn_d1c" data-cols="2"><caption class="- topic/title title tablecap" data-caption-side="top" data-is-repeated="true"><span class="table--title-label">表<span class="table--title-label-number"> 1</span><span class="table--title-label-punctuation">. </span></span><span class="table--title">aic_set_rx_carrier_range</span></caption><colgroup><col style="width:25%"/><col style="width:75%"/></colgroup><thead class="- topic/thead thead"><tr class="- topic/row"><th class="- topic/entry entry colsep-1 rowsep-1" id="cir_interface_design__table_jzy_jfn_d1c__entry__1">函数原型</th><th class="- topic/entry entry colsep-0 rowsep-1" id="cir_interface_design__table_jzy_jfn_d1c__entry__2">static int aic_set_rx_carrier_range(struct rc_dev *rcdev, u32
|
||||
min, u32 max)</th></tr></thead><tbody class="- topic/tbody tbody"><tr class="- topic/row"><td class="- topic/entry entry colsep-1 rowsep-1" headers="cir_interface_design__table_jzy_jfn_d1c__entry__1">功能说明</td><td class="- topic/entry entry colsep-0 rowsep-1" headers="cir_interface_design__table_jzy_jfn_d1c__entry__2">设置 CIR 模块接收器的采样频率</td></tr><tr class="- topic/row"><td class="- topic/entry entry colsep-1 rowsep-1" headers="cir_interface_design__table_jzy_jfn_d1c__entry__1">参数定义</td><td class="- topic/entry entry colsep-0 rowsep-1" headers="cir_interface_design__table_jzy_jfn_d1c__entry__2">rcdev:指向红外设备的指针 min:设置的采样频率最小值 max:设置的采样频率最大值</td></tr><tr class="- topic/row"><td class="- topic/entry entry colsep-1 rowsep-1" headers="cir_interface_design__table_jzy_jfn_d1c__entry__1">返回值</td><td class="- topic/entry entry colsep-0 rowsep-1" headers="cir_interface_design__table_jzy_jfn_d1c__entry__2">执行成功返回 0</td></tr><tr class="- topic/row"><td class="- topic/entry entry colsep-1 rowsep-0" headers="cir_interface_design__table_jzy_jfn_d1c__entry__1">注意事项</td><td class="- topic/entry entry colsep-0 rowsep-0" headers="cir_interface_design__table_jzy_jfn_d1c__entry__2">-</td></tr></tbody></table></div><div class="table-container"><table class="- topic/table table frame-all" id="cir_interface_design__table_kzy_jfn_d1c" data-ofbid="cir_interface_design__table_kzy_jfn_d1c" data-cols="2"><caption class="- topic/title title tablecap" data-caption-side="top" data-is-repeated="true"><span class="table--title-label">表<span class="table--title-label-number"> 2</span><span class="table--title-label-punctuation">. </span></span><span class="table--title">aic_set_tx_duty_cycle</span></caption><colgroup><col style="width:25%"/><col style="width:75%"/></colgroup><thead class="- topic/thead thead"><tr class="- topic/row"><th class="- topic/entry entry colsep-1 rowsep-1" id="cir_interface_design__table_kzy_jfn_d1c__entry__1">函数原型</th><th class="- topic/entry entry colsep-0 rowsep-1" id="cir_interface_design__table_kzy_jfn_d1c__entry__2">static int aic_set_tx_duty_cycle(struct rc_dev *rcdev, u32
|
||||
duty_cycle)</th></tr></thead><tbody class="- topic/tbody tbody"><tr class="- topic/row"><td class="- topic/entry entry colsep-1 rowsep-1" headers="cir_interface_design__table_kzy_jfn_d1c__entry__1">功能说明</td><td class="- topic/entry entry colsep-0 rowsep-1" headers="cir_interface_design__table_kzy_jfn_d1c__entry__2">设置 CIR 模块发送红外信号的占空比</td></tr><tr class="- topic/row"><td class="- topic/entry entry colsep-1 rowsep-1" headers="cir_interface_design__table_kzy_jfn_d1c__entry__1">参数定义</td><td class="- topic/entry entry colsep-0 rowsep-1" headers="cir_interface_design__table_kzy_jfn_d1c__entry__2">rcdev:指向红外设备的指针 cycle:需要设置的占空比</td></tr><tr class="- topic/row"><td class="- topic/entry entry colsep-1 rowsep-1" headers="cir_interface_design__table_kzy_jfn_d1c__entry__1">返回值</td><td class="- topic/entry entry colsep-0 rowsep-1" headers="cir_interface_design__table_kzy_jfn_d1c__entry__2">执行成功返回 0</td></tr><tr class="- topic/row"><td class="- topic/entry entry colsep-1 rowsep-0" headers="cir_interface_design__table_kzy_jfn_d1c__entry__1">注意事项</td><td class="- topic/entry entry colsep-0 rowsep-0" headers="cir_interface_design__table_kzy_jfn_d1c__entry__2">-</td></tr></tbody></table></div><div class="table-container"><table class="- topic/table table frame-all" id="cir_interface_design__table_lzy_jfn_d1c" data-ofbid="cir_interface_design__table_lzy_jfn_d1c" data-cols="2"><caption class="- topic/title title tablecap" data-caption-side="top" data-is-repeated="true"><span class="table--title-label">表<span class="table--title-label-number"> 3</span><span class="table--title-label-punctuation">. </span></span><span class="table--title">aic_set_tx_carrier</span></caption><colgroup><col style="width:25%"/><col style="width:75%"/></colgroup><thead class="- topic/thead thead"><tr class="- topic/row"><th class="- topic/entry entry colsep-1 rowsep-1" id="cir_interface_design__table_lzy_jfn_d1c__entry__1">函数原型</th><th class="- topic/entry entry colsep-0 rowsep-1" id="cir_interface_design__table_lzy_jfn_d1c__entry__2">static int aic_set_tx_carrier(struct rc_dev *rcdev, u32
|
||||
carrier)</th></tr></thead><tbody class="- topic/tbody tbody"><tr class="- topic/row"><td class="- topic/entry entry colsep-1 rowsep-1" headers="cir_interface_design__table_lzy_jfn_d1c__entry__1">功能说明</td><td class="- topic/entry entry colsep-0 rowsep-1" headers="cir_interface_design__table_lzy_jfn_d1c__entry__2">设置 CIR 模块发送信号的载波频率</td></tr><tr class="- topic/row"><td class="- topic/entry entry colsep-1 rowsep-1" headers="cir_interface_design__table_lzy_jfn_d1c__entry__1">参数定义</td><td class="- topic/entry entry colsep-0 rowsep-1" headers="cir_interface_design__table_lzy_jfn_d1c__entry__2">rcdev:指向红外设备的指针 carrier:需要设置的载波频率大小</td></tr><tr class="- topic/row"><td class="- topic/entry entry colsep-1 rowsep-1" headers="cir_interface_design__table_lzy_jfn_d1c__entry__1">返回值</td><td class="- topic/entry entry colsep-0 rowsep-1" headers="cir_interface_design__table_lzy_jfn_d1c__entry__2">执行成功返回 0</td></tr><tr class="- topic/row"><td class="- topic/entry entry colsep-1 rowsep-0" headers="cir_interface_design__table_lzy_jfn_d1c__entry__1">注意事项</td><td class="- topic/entry entry colsep-0 rowsep-0" headers="cir_interface_design__table_lzy_jfn_d1c__entry__2">-</td></tr></tbody></table></div><div class="table-container"><table class="- topic/table table frame-all" id="cir_interface_design__table_mzy_jfn_d1c" data-ofbid="cir_interface_design__table_mzy_jfn_d1c" data-cols="2"><caption class="- topic/title title tablecap" data-caption-side="top" data-is-repeated="true"><span class="table--title-label">表<span class="table--title-label-number"> 4</span><span class="table--title-label-punctuation">. </span></span><span class="table--title">aic_tx_ir</span></caption><colgroup><col style="width:25%"/><col style="width:75%"/></colgroup><thead class="- topic/thead thead"><tr class="- topic/row"><th class="- topic/entry entry colsep-1 rowsep-1" id="cir_interface_design__table_mzy_jfn_d1c__entry__1">函数原型</th><th class="- topic/entry entry colsep-0 rowsep-1" id="cir_interface_design__table_mzy_jfn_d1c__entry__2">static int aic_tx_ir(struct rc_dev *rcdev, unsigned int *txbuf,
|
||||
unsigned int count)</th></tr></thead><tbody class="- topic/tbody tbody"><tr class="- topic/row"><td class="- topic/entry entry colsep-1 rowsep-1" headers="cir_interface_design__table_mzy_jfn_d1c__entry__1">功能说明</td><td class="- topic/entry entry colsep-0 rowsep-1" headers="cir_interface_design__table_mzy_jfn_d1c__entry__2">CIR 模块发送红外信号的函数</td></tr><tr class="- topic/row"><td class="- topic/entry entry colsep-1 rowsep-1" headers="cir_interface_design__table_mzy_jfn_d1c__entry__1">参数定义</td><td class="- topic/entry entry colsep-0 rowsep-1" headers="cir_interface_design__table_mzy_jfn_d1c__entry__2">rcdev:指向红外设备的指针 txbuf:需要发送的红外信号的缓存 count:需要发送的红外信号在缓存中的个数</td></tr><tr class="- topic/row"><td class="- topic/entry entry colsep-1 rowsep-1" headers="cir_interface_design__table_mzy_jfn_d1c__entry__1">返回值</td><td class="- topic/entry entry colsep-0 rowsep-1" headers="cir_interface_design__table_mzy_jfn_d1c__entry__2">执行成功返回 0</td></tr><tr class="- topic/row"><td class="- topic/entry entry colsep-1 rowsep-0" headers="cir_interface_design__table_mzy_jfn_d1c__entry__1">注意事项</td><td class="- topic/entry entry colsep-0 rowsep-0" headers="cir_interface_design__table_mzy_jfn_d1c__entry__2">-</td></tr></tbody></table></div></div></article></main></div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<footer class="navbar navbar-default wh_footer">
|
||||
<div class=" footer-container mx-auto ">
|
||||
<title>footer def</title>
|
||||
<style><!--
|
||||
|
||||
.p1 {
|
||||
font-family: FangZhengShuSong, Times, serif;
|
||||
}
|
||||
.p2 {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
}
|
||||
.p3 {
|
||||
font-family: "Lucida Console", "Courier New", monospace;
|
||||
}
|
||||
|
||||
--></style>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="webhelp.fragment.footer">
|
||||
<p class="p1">Copyright © 2019-2024 广东匠芯创科技有限公司. All rights reserved.</p>
|
||||
</div><div>
|
||||
<div class="generation_time">
|
||||
Update Time: 2025-01-21
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<div id="go2top" class="d-print-none">
|
||||
<span class="oxy-icon oxy-icon-up"></span>
|
||||
</div>
|
||||
|
||||
<div id="modal_img_large" class="modal">
|
||||
<span class="close oxy-icon oxy-icon-remove"></span>
|
||||
<div id="modal_img_container"></div>
|
||||
<div id="caption"></div>
|
||||
</div>
|
||||
|
||||
|
||||
<script src="${pd}/publishing/publishing-styles-AIC-template/js/custom.js" defer="defer"></script>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
257
doc/topics/sdk/cir/cir_interface_lite.html
Normal file
257
doc/topics/sdk/cir/cir_interface_lite.html
Normal file
File diff suppressed because one or more lines are too long
197
doc/topics/sdk/cir/cir_key_procedures.html
Normal file
197
doc/topics/sdk/cir/cir_key_procedures.html
Normal file
@@ -0,0 +1,197 @@
|
||||
<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-cn" lang="zh-cn" data-whc_version="26.0">
|
||||
<head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="description" content="初始化流程 CIR 模块的初始化流程如下: 释放 clock 和 reset 信号 设置噪声阈值,激活阈值,空闲阈值等底层配置 设置 TX-FIFO 和 RX-FIFO 的阈值 将所选择的 CIR 协议注册到 cir_raw_handler_list 链表 中断处理流程 CIR 模块使能 RX 的溢出中断、RXFIFO 可用中断、接收完成中断。 中断执行流程如下: 图 1 . 中断执行流程 CIR ..."/><meta name="DC.rights.owner" content="(C) 版权 2025"/><meta name="copyright" content="(C) 版权 2025"/><meta name="generator" content="DITA-OT"/><meta name="DC.type" content="concept"/><meta name="DC.contributor" content="yan.wang"/><meta name="DC.date.modified" content="2024-12-04"/><meta name="DC.format" content="HTML5"/><meta name="DC.identifier" content="cir_key_procedures"/><meta name="DC.language" content="zh-CN"/><title>关键流程设计</title><!-- Build number 2023110923. --><meta name="wh-path2root" content="../../../"/><meta name="wh-toc-id" content=""/><meta name="wh-source-relpath" content="topics/sdk/cir/cir_key_procedures.dita"/><meta name="wh-out-relpath" content="topics/sdk/cir/cir_key_procedures.html"/>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="../../../webhelp/app/commons.css?buildId=2023110923"/>
|
||||
<link rel="stylesheet" type="text/css" href="../../../webhelp/app/topic.css?buildId=2023110923"/>
|
||||
|
||||
<script src="../../../webhelp/app/options/properties.js?buildId=20250121171154"></script>
|
||||
<script src="../../../webhelp/app/localization/strings.js?buildId=2023110923"></script>
|
||||
<script src="../../../webhelp/app/search/index/keywords.js?buildId=20250121171154"></script>
|
||||
<script defer="defer" src="../../../webhelp/app/commons.js?buildId=2023110923"></script>
|
||||
<script defer="defer" src="../../../webhelp/app/topic.js?buildId=2023110923"></script>
|
||||
<link rel="stylesheet" type="text/css" href="../../../webhelp/template/aic-styles-web.css?buildId=2023110923"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/notes.css?buildId=2023110923"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/aic-common.css?buildId=2023110923"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/aic-images.css?buildId=2023110923"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/footnote.css?buildId=2023110923"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/aic-web-watermark.css?buildId=2023110923"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/topic-body-list.css?buildId=2023110923"/></head>
|
||||
|
||||
<body id="cir_key_procedures" class="wh_topic_page frmBody">
|
||||
<a href="#wh_topic_body" class="sr-only sr-only-focusable">
|
||||
跳转到主要内容
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
<header class="navbar navbar-default wh_header">
|
||||
<div class="container-fluid">
|
||||
<div class="wh_header_flex_container navbar-nav navbar-expand-md navbar-dark">
|
||||
<div class="wh_logo_and_publication_title_container">
|
||||
<div class="wh_logo_and_publication_title">
|
||||
|
||||
<a href="http://www.artinchip.com" class=" wh_logo d-none d-sm-block "><img src="../../../company-logo-white.png" alt="RTOS SDK 使用指南SDK 指南文件"/></a>
|
||||
<div class=" wh_publication_title "><a href="../../../index.html"><span class="booktitle"><span class="ph mainbooktitle">RTOS SDK 使用指南</span><span class="ph booktitlealt">SDK 指南文件</span></span></a></div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="wh_top_menu_and_indexterms_link collapse navbar-collapse" id="wh_top_menu_and_indexterms_link">
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class=" wh_search_input navbar-form wh_topic_page_search search " role="form">
|
||||
|
||||
|
||||
|
||||
<form id="searchForm" method="get" role="search" action="../../../search.html"><div><input type="search" placeholder="搜索 " class="wh_search_textfield" id="textToSearch" name="searchQuery" aria-label="搜索查询" required="required"/><button type="submit" class="wh_search_button" aria-label="搜索"><span class="search_input_text">搜索</span></button></div></form>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="container-fluid" id="wh_topic_container">
|
||||
<div class="row">
|
||||
|
||||
<nav class="wh_tools d-print-none navbar-expand-md" aria-label="Tools">
|
||||
|
||||
<div data-tooltip-position="bottom" class=" wh_breadcrumb "></div>
|
||||
|
||||
|
||||
|
||||
<div class="wh_right_tools">
|
||||
<button class="wh_hide_highlight" aria-label="切换搜索突出显示" title="切换搜索突出显示"></button>
|
||||
<button class="webhelp_expand_collapse_sections" data-next-state="collapsed" aria-label="折叠截面" title="折叠截面"></button>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class=" wh_print_link print d-none d-md-inline-block "><button onClick="window.print()" title="打印此页" aria-label="打印此页"></button></div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="wh_content_area">
|
||||
<div class="row">
|
||||
|
||||
|
||||
<div class="col-lg-10 col-md-10 col-sm-10 col-xs-12" id="wh_topic_body">
|
||||
|
||||
<button id="wh_close_topic_toc_button" class="close-toc-button d-none" aria-label="Toggle topic table of content" aria-controls="wh_topic_toc" aria-expanded="true">
|
||||
<span class="close-toc-icon-container">
|
||||
<span class="close-toc-icon"></span>
|
||||
</span>
|
||||
</button>
|
||||
|
||||
<div class=" wh_topic_content body "><main role="main"><article class="- topic/topic concept/concept topic concept" role="article" aria-labelledby="ariaid-title1"><span class="edit-link" style="font-size:12px; opacity:0.6; text-align:right; vertical-align:middle"><a target="_blank" href="http://172.16.35.88/tasks/jdssno1uvvbf2mltu9kb9v3if05d5gopuakboe8hlud18rma/edit/F:/aicdita/aicdita-cn/topics/sdk/cir/cir_key_procedures.dita">Edit online</a></span><h1 class="- topic/title title topictitle1" id="ariaid-title1">关键流程设计</h1><div class="date inPage">4 Dec 2024</div><div style="color: gray;"></div><div class="- topic/body concept/conbody body conbody"><section class="- topic/section section" id="cir_key_procedures__section_wvb_hfn_d1c" data-ofbid="cir_key_procedures__section_wvb_hfn_d1c"><h2 class="- topic/title title sectiontitle">初始化流程</h2>
|
||||
|
||||
<p class="- topic/p p" data-ofbid="d140793e27__20250121171608">CIR 模块的初始化流程如下:</p>
|
||||
<ol class="- topic/ol ol" id="cir_key_procedures__ol_xvb_hfn_d1c" data-ofbid="cir_key_procedures__ol_xvb_hfn_d1c"><li class="- topic/li li" data-ofbid="d140793e31__20250121171608">
|
||||
<p class="- topic/p p" data-ofbid="d140793e33__20250121171608">释放 clock 和 reset 信号</p>
|
||||
</li><li class="- topic/li li" data-ofbid="d140793e36__20250121171608">
|
||||
<p class="- topic/p p" data-ofbid="d140793e38__20250121171608">设置噪声阈值,激活阈值,空闲阈值等底层配置</p>
|
||||
</li><li class="- topic/li li" data-ofbid="d140793e41__20250121171608">
|
||||
<p class="- topic/p p" data-ofbid="d140793e43__20250121171608">设置 TX-FIFO 和 RX-FIFO 的阈值</p>
|
||||
</li><li class="- topic/li li" data-ofbid="d140793e46__20250121171608">
|
||||
<p class="- topic/p p" data-ofbid="d140793e48__20250121171608">将所选择的 CIR 协议注册到 cir_raw_handler_list 链表</p>
|
||||
</li></ol>
|
||||
</section><section class="- topic/section section" id="cir_key_procedures__section_yvb_hfn_d1c" data-ofbid="cir_key_procedures__section_yvb_hfn_d1c"><h2 class="- topic/title title sectiontitle">中断处理流程</h2>
|
||||
|
||||
<p class="- topic/p p" data-ofbid="d140793e57__20250121171608">CIR 模块使能 RX 的溢出中断、RXFIFO 可用中断、接收完成中断。</p>
|
||||
<p class="- topic/p p" data-ofbid="d140793e60__20250121171608">中断执行流程如下:</p>
|
||||
|
||||
<figure class="- topic/fig fig fignone" id="cir_key_procedures__fig_v2j_q5k_g1c" data-ofbid="cir_key_procedures__fig_v2j_q5k_g1c"><br/><div class="imagecenter"><img class="- topic/image image imagecenter" id="cir_key_procedures__image_zgs_q5k_g1c" src="../../../images/cir/cir_interrupt_flow.png" alt="interrupt_flow1"/></div><br/><figcaption data-caption-side="bottom" class="- topic/title title figcapcenter"><span class="figtitleprefix fig--title-label">图<span class="fig--title-label-number"> 1</span><span class="fig--title-label-punctuation">. </span></span><span class="fig--title">中断执行流程</span></figcaption></figure>
|
||||
</section><section class="- topic/section section" id="cir_key_procedures__section_xps_kc4_ybc" data-ofbid="cir_key_procedures__section_xps_kc4_ybc"><h2 class="- topic/title title sectiontitle">CIR 协议注册</h2>
|
||||
|
||||
<p class="- topic/p p" data-ofbid="d140793e75__20250121171608">CIR
|
||||
的 driver 层驱动定义了一个全局链表 cir_raw_handler_list,在系统启动时,会根据 menuconfig 中所选择的红外协议进行注册,实际就是将红外协议添加到链表 cir_raw_handler_list,可将 NEC 和 RC5 协议同时注册到链表。应用层的代码通过
|
||||
<span class="+ topic/keyword pr-d/parmname keyword parmname">rt_device_control</span>
|
||||
设置将要使用的红外协议。在对数据进行编解码时,会查找 cir_raw_handler_list 链表上是否已注册要使用的红外协议,如已注册,则调用协议的编解码函数。</p>
|
||||
</section></div></article></main></div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<nav role="navigation" id="wh_topic_toc" aria-label="On this page" class="col-lg-2 d-none d-lg-block navbar d-print-none">
|
||||
<div id="wh_topic_toc_content">
|
||||
|
||||
<div class=" wh_topic_toc "><div class="wh_topic_label">在本页上</div><ul><li class="section-item"><div class="section-title"><a href="#cir_key_procedures__section_wvb_hfn_d1c" data-tocid="cir_key_procedures__section_wvb_hfn_d1c">初始化流程</a></div></li><li class="section-item"><div class="section-title"><a href="#cir_key_procedures__section_yvb_hfn_d1c" data-tocid="cir_key_procedures__section_yvb_hfn_d1c">中断处理流程</a></div></li><li class="section-item"><div class="section-title"><a href="#cir_key_procedures__section_xps_kc4_ybc" data-tocid="cir_key_procedures__section_xps_kc4_ybc">CIR 协议注册</a></div></li></ul></div>
|
||||
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<footer class="navbar navbar-default wh_footer">
|
||||
<div class=" footer-container mx-auto ">
|
||||
<title>footer def</title>
|
||||
<style><!--
|
||||
|
||||
.p1 {
|
||||
font-family: FangZhengShuSong, Times, serif;
|
||||
}
|
||||
.p2 {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
}
|
||||
.p3 {
|
||||
font-family: "Lucida Console", "Courier New", monospace;
|
||||
}
|
||||
|
||||
--></style>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="webhelp.fragment.footer">
|
||||
<p class="p1">Copyright © 2019-2024 广东匠芯创科技有限公司. All rights reserved.</p>
|
||||
</div><div>
|
||||
<div class="generation_time">
|
||||
Update Time: 2025-01-21
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<div id="go2top" class="d-print-none">
|
||||
<span class="oxy-icon oxy-icon-up"></span>
|
||||
</div>
|
||||
|
||||
<div id="modal_img_large" class="modal">
|
||||
<span class="close oxy-icon oxy-icon-remove"></span>
|
||||
<div id="modal_img_container"></div>
|
||||
<div id="caption"></div>
|
||||
</div>
|
||||
|
||||
|
||||
<script src="${pd}/publishing/publishing-styles-AIC-template/js/custom.js" defer="defer"></script>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
214
doc/topics/sdk/cir/cir_key_procedures_2.html
Normal file
214
doc/topics/sdk/cir/cir_key_procedures_2.html
Normal file
File diff suppressed because one or more lines are too long
161
doc/topics/sdk/cir/cir_test.html
Normal file
161
doc/topics/sdk/cir/cir_test.html
Normal file
@@ -0,0 +1,161 @@
|
||||
<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-cn" lang="zh-cn" data-whc_version="26.0">
|
||||
<head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="description" content=""/><meta name="DC.rights.owner" content="(C) 版权 2025"/><meta name="copyright" content="(C) 版权 2025"/><meta name="generator" content="DITA-OT"/><meta name="DC.type" content="concept"/><meta name="DC.contributor" content="yan.wang"/><meta name="DC.date.modified" content="2024-12-10"/><meta name="DC.format" content="HTML5"/><meta name="DC.identifier" content="cir_test_guide"/><meta name="DC.language" content="zh-CN"/><title>测试指南</title><!-- Build number 2023110923. --><meta name="wh-path2root" content="../../../"/><meta name="wh-toc-id" content=""/><meta name="wh-source-relpath" content="topics/sdk/cir/cir_test.dita"/><meta name="wh-out-relpath" content="topics/sdk/cir/cir_test.html"/>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="../../../webhelp/app/commons.css?buildId=2023110923"/>
|
||||
<link rel="stylesheet" type="text/css" href="../../../webhelp/app/topic.css?buildId=2023110923"/>
|
||||
|
||||
<script src="../../../webhelp/app/options/properties.js?buildId=20250121171154"></script>
|
||||
<script src="../../../webhelp/app/localization/strings.js?buildId=2023110923"></script>
|
||||
<script src="../../../webhelp/app/search/index/keywords.js?buildId=20250121171154"></script>
|
||||
<script defer="defer" src="../../../webhelp/app/commons.js?buildId=2023110923"></script>
|
||||
<script defer="defer" src="../../../webhelp/app/topic.js?buildId=2023110923"></script>
|
||||
<link rel="stylesheet" type="text/css" href="../../../webhelp/template/aic-styles-web.css?buildId=2023110923"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/notes.css?buildId=2023110923"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/aic-common.css?buildId=2023110923"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/aic-images.css?buildId=2023110923"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/footnote.css?buildId=2023110923"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/aic-web-watermark.css?buildId=2023110923"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/topic-body-list.css?buildId=2023110923"/></head>
|
||||
|
||||
<body id="cir_test_guide" class="wh_topic_page frmBody">
|
||||
<a href="#wh_topic_body" class="sr-only sr-only-focusable">
|
||||
跳转到主要内容
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
<header class="navbar navbar-default wh_header">
|
||||
<div class="container-fluid">
|
||||
<div class="wh_header_flex_container navbar-nav navbar-expand-md navbar-dark">
|
||||
<div class="wh_logo_and_publication_title_container">
|
||||
<div class="wh_logo_and_publication_title">
|
||||
|
||||
<a href="http://www.artinchip.com" class=" wh_logo d-none d-sm-block "><img src="../../../company-logo-white.png" alt="RTOS SDK 使用指南SDK 指南文件"/></a>
|
||||
<div class=" wh_publication_title "><a href="../../../index.html"><span class="booktitle"><span class="ph mainbooktitle">RTOS SDK 使用指南</span><span class="ph booktitlealt">SDK 指南文件</span></span></a></div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="wh_top_menu_and_indexterms_link collapse navbar-collapse" id="wh_top_menu_and_indexterms_link">
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class=" wh_search_input navbar-form wh_topic_page_search search " role="form">
|
||||
|
||||
|
||||
|
||||
<form id="searchForm" method="get" role="search" action="../../../search.html"><div><input type="search" placeholder="搜索 " class="wh_search_textfield" id="textToSearch" name="searchQuery" aria-label="搜索查询" required="required"/><button type="submit" class="wh_search_button" aria-label="搜索"><span class="search_input_text">搜索</span></button></div></form>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="container-fluid" id="wh_topic_container">
|
||||
<div class="row">
|
||||
|
||||
<nav class="wh_tools d-print-none navbar-expand-md" aria-label="Tools">
|
||||
|
||||
<div data-tooltip-position="bottom" class=" wh_breadcrumb "></div>
|
||||
|
||||
|
||||
|
||||
<div class="wh_right_tools">
|
||||
<button class="wh_hide_highlight" aria-label="切换搜索突出显示" title="切换搜索突出显示"></button>
|
||||
<button class="webhelp_expand_collapse_sections" data-next-state="collapsed" aria-label="折叠截面" title="折叠截面"></button>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class=" wh_print_link print d-none d-md-inline-block "><button onClick="window.print()" title="打印此页" aria-label="打印此页"></button></div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="wh_content_area">
|
||||
<div class="row">
|
||||
|
||||
|
||||
<div class="col-12" id="wh_topic_body">
|
||||
|
||||
|
||||
|
||||
<div class=" wh_topic_content body "><main role="main"><article class="- topic/topic concept/concept topic concept" role="article" aria-labelledby="ariaid-title1"><span class="edit-link" style="font-size:12px; opacity:0.6; text-align:right; vertical-align:middle"><a target="_blank" href="http://172.16.35.88/tasks/jdssno1uvvbf2mltu9kb9v3if05d5gopuakboe8hlud18rma/edit/F:/aicdita/aicdita-cn/topics/sdk/cir/cir_test.dita">Edit online</a></span><h1 class="- topic/title title topictitle1" id="ariaid-title1">测试指南</h1><div class="date inPage">10 Dec 2024</div><div style="color: gray;"></div><div class="- topic/body concept/conbody body conbody"></div></article></main></div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<footer class="navbar navbar-default wh_footer">
|
||||
<div class=" footer-container mx-auto ">
|
||||
<title>footer def</title>
|
||||
<style><!--
|
||||
|
||||
.p1 {
|
||||
font-family: FangZhengShuSong, Times, serif;
|
||||
}
|
||||
.p2 {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
}
|
||||
.p3 {
|
||||
font-family: "Lucida Console", "Courier New", monospace;
|
||||
}
|
||||
|
||||
--></style>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="webhelp.fragment.footer">
|
||||
<p class="p1">Copyright © 2019-2024 广东匠芯创科技有限公司. All rights reserved.</p>
|
||||
</div><div>
|
||||
<div class="generation_time">
|
||||
Update Time: 2025-01-21
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<div id="go2top" class="d-print-none">
|
||||
<span class="oxy-icon oxy-icon-up"></span>
|
||||
</div>
|
||||
|
||||
<div id="modal_img_large" class="modal">
|
||||
<span class="close oxy-icon oxy-icon-remove"></span>
|
||||
<div id="modal_img_container"></div>
|
||||
<div id="caption"></div>
|
||||
</div>
|
||||
|
||||
|
||||
<script src="${pd}/publishing/publishing-styles-AIC-template/js/custom.js" defer="defer"></script>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
193
doc/topics/sdk/cir/cir_test_lite.html
Normal file
193
doc/topics/sdk/cir/cir_test_lite.html
Normal file
File diff suppressed because one or more lines are too long
175
doc/topics/sdk/cir/cir_user_guide.html
Normal file
175
doc/topics/sdk/cir/cir_user_guide.html
Normal file
@@ -0,0 +1,175 @@
|
||||
<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-cn" lang="zh-cn" data-whc_version="26.0">
|
||||
<head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="description" content="Consumer IR (CIR) 模块包含发送器和接收器,其特殊设计支持生成或捕获各类数字脉冲信号。模块使用游程编码 (RLC,Run-Length Code) 方式编码数字脉冲信号,以 Byte 为单位记录编码数据,其中: MSB 位表示信号电平: 1:高电平 0:低电平 其余 7 位表示信号宽度,以采样时钟为单位。 最大宽度为 128,假如某一电平宽度大于 128,则使用另一字节存储。 表 ..."/><meta name="DC.rights.owner" content="(C) 版权 2025"/><meta name="copyright" content="(C) 版权 2025"/><meta name="generator" content="DITA-OT"/><meta name="DC.type" content="concept"/><meta name="DC.contributor" content="yan.wang"/><meta name="DC.date.modified" content="2024-12-02"/><meta name="DC.format" content="HTML5"/><meta name="DC.identifier" content="cir"/><meta name="DC.language" content="zh-CN"/><title>CIR 使用指南</title><!-- Build number 2023110923. --><meta name="wh-path2root" content="../../../"/><meta name="wh-toc-id" content=""/><meta name="wh-source-relpath" content="topics/sdk/cir/cir_user_guide.dita"/><meta name="wh-out-relpath" content="topics/sdk/cir/cir_user_guide.html"/>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="../../../webhelp/app/commons.css?buildId=2023110923"/>
|
||||
<link rel="stylesheet" type="text/css" href="../../../webhelp/app/topic.css?buildId=2023110923"/>
|
||||
|
||||
<script src="../../../webhelp/app/options/properties.js?buildId=20250121171154"></script>
|
||||
<script src="../../../webhelp/app/localization/strings.js?buildId=2023110923"></script>
|
||||
<script src="../../../webhelp/app/search/index/keywords.js?buildId=20250121171154"></script>
|
||||
<script defer="defer" src="../../../webhelp/app/commons.js?buildId=2023110923"></script>
|
||||
<script defer="defer" src="../../../webhelp/app/topic.js?buildId=2023110923"></script>
|
||||
<link rel="stylesheet" type="text/css" href="../../../webhelp/template/aic-styles-web.css?buildId=2023110923"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/notes.css?buildId=2023110923"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/aic-common.css?buildId=2023110923"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/aic-images.css?buildId=2023110923"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/footnote.css?buildId=2023110923"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/aic-web-watermark.css?buildId=2023110923"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/topic-body-list.css?buildId=2023110923"/></head>
|
||||
|
||||
<body id="cir" class="wh_topic_page frmBody">
|
||||
<a href="#wh_topic_body" class="sr-only sr-only-focusable">
|
||||
跳转到主要内容
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
<header class="navbar navbar-default wh_header">
|
||||
<div class="container-fluid">
|
||||
<div class="wh_header_flex_container navbar-nav navbar-expand-md navbar-dark">
|
||||
<div class="wh_logo_and_publication_title_container">
|
||||
<div class="wh_logo_and_publication_title">
|
||||
|
||||
<a href="http://www.artinchip.com" class=" wh_logo d-none d-sm-block "><img src="../../../company-logo-white.png" alt="RTOS SDK 使用指南SDK 指南文件"/></a>
|
||||
<div class=" wh_publication_title "><a href="../../../index.html"><span class="booktitle"><span class="ph mainbooktitle">RTOS SDK 使用指南</span><span class="ph booktitlealt">SDK 指南文件</span></span></a></div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="wh_top_menu_and_indexterms_link collapse navbar-collapse" id="wh_top_menu_and_indexterms_link">
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class=" wh_search_input navbar-form wh_topic_page_search search " role="form">
|
||||
|
||||
|
||||
|
||||
<form id="searchForm" method="get" role="search" action="../../../search.html"><div><input type="search" placeholder="搜索 " class="wh_search_textfield" id="textToSearch" name="searchQuery" aria-label="搜索查询" required="required"/><button type="submit" class="wh_search_button" aria-label="搜索"><span class="search_input_text">搜索</span></button></div></form>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="container-fluid" id="wh_topic_container">
|
||||
<div class="row">
|
||||
|
||||
<nav class="wh_tools d-print-none navbar-expand-md" aria-label="Tools">
|
||||
|
||||
<div data-tooltip-position="bottom" class=" wh_breadcrumb "></div>
|
||||
|
||||
|
||||
|
||||
<div class="wh_right_tools">
|
||||
<button class="wh_hide_highlight" aria-label="切换搜索突出显示" title="切换搜索突出显示"></button>
|
||||
<button class="webhelp_expand_collapse_sections" data-next-state="collapsed" aria-label="折叠截面" title="折叠截面"></button>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class=" wh_print_link print d-none d-md-inline-block "><button onClick="window.print()" title="打印此页" aria-label="打印此页"></button></div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="wh_content_area">
|
||||
<div class="row">
|
||||
|
||||
|
||||
<div class="col-12" id="wh_topic_body">
|
||||
|
||||
|
||||
|
||||
<div class=" wh_topic_content body "><main role="main"><article class="- topic/topic concept/concept topic concept" role="article" aria-labelledby="ariaid-title1"><span class="edit-link" style="font-size:12px; opacity:0.6; text-align:right; vertical-align:middle"><a target="_blank" href="http://172.16.35.88/tasks/jdssno1uvvbf2mltu9kb9v3if05d5gopuakboe8hlud18rma/edit/F:/aicdita/aicdita-cn/topics/sdk/cir/cir_user_guide.dita">Edit online</a></span><h1 class="- topic/title title topictitle1" id="ariaid-title1">CIR 使用指南</h1><div class="date inPage">2 Dec 2024</div><div style="color: gray;"></div><div class="- topic/body concept/conbody body conbody"><div class="- topic/p p" data-ofbid="d236793e22__20250121171656">Consumer IR (CIR) 模块包含发送器和接收器,其特殊设计支持生成或捕获各类数字脉冲信号。模块使用游程编码
|
||||
(RLC,Run-Length Code) 方式编码数字脉冲信号,以 Byte 为单位记录编码数据,其中:<ul class="- topic/ul ul" id="cir__ul_mlr_45v_bzb" data-ofbid="cir__ul_mlr_45v_bzb"><li class="- topic/li li" data-ofbid="d236793e25__20250121171656">MSB 位表示信号电平:<ul class="- topic/ul ul" id="cir__ul_rjp_drv_5zb" data-ofbid="cir__ul_rjp_drv_5zb"><li class="- topic/li li" data-ofbid="d236793e28__20250121171656">1:高电平</li><li class="- topic/li li" data-ofbid="d236793e30__20250121171656">0:低电平</li></ul></li><li class="- topic/li li" data-ofbid="d236793e32__20250121171656">其余 7 位表示信号宽度,以采样时钟为单位。<p class="- topic/p p" data-ofbid="d236793e34__20250121171656">最大宽度为 128,假如某一电平宽度大于 128,则使用另一字节存储。</p></li></ul></div><div class="table-container"><table class="- topic/table table frame-all" id="cir__table_ks4_jdn_d1c" data-ofbid="cir__table_ks4_jdn_d1c" data-cols="3"><caption class="- topic/title title tablecap" data-caption-side="top" data-is-repeated="true"><span class="table--title-label">表<span class="table--title-label-number"> 1</span><span class="table--title-label-punctuation">. </span></span><span class="table--title">术语定义</span></caption><colgroup><col style="width:33.33333333333333%"/><col style="width:33.33333333333333%"/><col style="width:33.33333333333333%"/></colgroup><thead class="- topic/thead thead"><tr class="- topic/row"><th class="- topic/entry entry colsep-1 rowsep-1" id="cir__table_ks4_jdn_d1c__entry__1">术语</th><th class="- topic/entry entry colsep-1 rowsep-1" id="cir__table_ks4_jdn_d1c__entry__2">定义</th><th class="- topic/entry entry colsep-0 rowsep-1" id="cir__table_ks4_jdn_d1c__entry__3">注释说明</th></tr></thead><tbody class="- topic/tbody tbody"><tr class="- topic/row"><td class="- topic/entry entry colsep-1 rowsep-1" headers="cir__table_ks4_jdn_d1c__entry__1">CIR</td><td class="- topic/entry entry colsep-1 rowsep-1" headers="cir__table_ks4_jdn_d1c__entry__2">consumer IR</td><td class="- topic/entry entry colsep-0 rowsep-1" headers="cir__table_ks4_jdn_d1c__entry__3">消费者红外</td></tr><tr class="- topic/row"><td class="- topic/entry entry colsep-1 rowsep-1" headers="cir__table_ks4_jdn_d1c__entry__1">RLC</td><td class="- topic/entry entry colsep-1 rowsep-1" headers="cir__table_ks4_jdn_d1c__entry__2">Run-Length Code</td><td class="- topic/entry entry colsep-0 rowsep-1" headers="cir__table_ks4_jdn_d1c__entry__3">游程编码</td></tr><tr class="- topic/row"><td class="- topic/entry entry colsep-1 rowsep-1" headers="cir__table_ks4_jdn_d1c__entry__1">NEC</td><td class="- topic/entry entry colsep-1 rowsep-1" headers="cir__table_ks4_jdn_d1c__entry__2">-</td><td class="- topic/entry entry colsep-0 rowsep-1" headers="cir__table_ks4_jdn_d1c__entry__3">一种红外编码协议</td></tr><tr class="- topic/row"><td class="- topic/entry entry colsep-1 rowsep-0" headers="cir__table_ks4_jdn_d1c__entry__1">RC5</td><td class="- topic/entry entry colsep-1 rowsep-0" headers="cir__table_ks4_jdn_d1c__entry__2">-</td><td class="- topic/entry entry colsep-0 rowsep-0" headers="cir__table_ks4_jdn_d1c__entry__3">一种红外编码协议</td></tr></tbody></table></div><section class="- topic/section section" id="cir__section_dvm_rln_4dc" data-ofbid="cir__section_dvm_rln_4dc"><h2 class="- topic/title title sectiontitle">模块特性</h2>
|
||||
|
||||
<ul class="- topic/ul ul" id="cir__ul_fdt_ndn_d1c" data-ofbid="cir__ul_fdt_ndn_d1c"><li class="- topic/li li" data-ofbid="d236793e86__20250121171656">
|
||||
<p class="- topic/p p" data-ofbid="d236793e88__20250121171656">全物理层执行</p>
|
||||
</li><li class="- topic/li li" data-ofbid="d236793e91__20250121171656">
|
||||
<p class="- topic/p p" data-ofbid="d236793e93__20250121171656">支持 CIR 远程控制或无线键盘</p>
|
||||
</li><li class="- topic/li li" data-ofbid="d236793e96__20250121171656">
|
||||
<p class="- topic/p p" data-ofbid="d236793e98__20250121171656">64 levels*8bits FIFO 接收缓存,可编程 FIFO 阈值</p>
|
||||
</li><li class="- topic/li li" data-ofbid="d236793e101__20250121171656">
|
||||
<p class="- topic/p p" data-ofbid="d236793e103__20250121171656">128 bytes FIFO 发送缓存,可编程载波频率及占空比,支持任意波形发生</p>
|
||||
</li><li class="- topic/li li" data-ofbid="d236793e106__20250121171656">
|
||||
<p class="- topic/p p" data-ofbid="d236793e108__20250121171656">支持中断</p>
|
||||
</li></ul>
|
||||
</section></div></article></main></div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<footer class="navbar navbar-default wh_footer">
|
||||
<div class=" footer-container mx-auto ">
|
||||
<title>footer def</title>
|
||||
<style><!--
|
||||
|
||||
.p1 {
|
||||
font-family: FangZhengShuSong, Times, serif;
|
||||
}
|
||||
.p2 {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
}
|
||||
.p3 {
|
||||
font-family: "Lucida Console", "Courier New", monospace;
|
||||
}
|
||||
|
||||
--></style>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="webhelp.fragment.footer">
|
||||
<p class="p1">Copyright © 2019-2024 广东匠芯创科技有限公司. All rights reserved.</p>
|
||||
</div><div>
|
||||
<div class="generation_time">
|
||||
Update Time: 2025-01-21
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<div id="go2top" class="d-print-none">
|
||||
<span class="oxy-icon oxy-icon-up"></span>
|
||||
</div>
|
||||
|
||||
<div id="modal_img_large" class="modal">
|
||||
<span class="close oxy-icon oxy-icon-remove"></span>
|
||||
<div id="modal_img_container"></div>
|
||||
<div id="caption"></div>
|
||||
</div>
|
||||
|
||||
|
||||
<script src="${pd}/publishing/publishing-styles-AIC-template/js/custom.js" defer="defer"></script>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
192
doc/topics/sdk/cir/cir_user_guide_2.html
Normal file
192
doc/topics/sdk/cir/cir_user_guide_2.html
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user