Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
b0a006e
Added toolkit and acconeer files
MadisonC-SparkFun Dec 22, 2023
0199627
General file function outline added
MadisonC-SparkFun Dec 28, 2023
bd03912
Updates to repo; keywords added
MadisonC-SparkFun Dec 29, 2023
27d7efe
Update README.md
MadisonC-SparkFun Dec 29, 2023
8fa1bf4
Fixed distance and presence functions
MadisonC-SparkFun Jan 3, 2024
ec5c569
Adjustments made to devices i2c functions
MadisonC-SparkFun Jan 4, 2024
b77308c
Renamed files; added structs for regsitesr
MadisonC-SparkFun Jan 9, 2024
a42f178
Updated register files
MadisonC-SparkFun Jan 10, 2024
0154363
All functions and registers added
MadisonC-SparkFun Jan 15, 2024
abb8d19
Functions added to .cpp file
MadisonC-SparkFun Jan 15, 2024
aa5b999
Completed distance functionality; added arduino_library functionality
MadisonC-SparkFun Jan 15, 2024
c08fed7
Presence functionality mostly completed; fixed distance function calls
MadisonC-SparkFun Jan 16, 2024
6e3dfea
Restructured repo
MadisonC-SparkFun Jan 17, 2024
97a13e5
Worked on errors
MadisonC-SparkFun Jan 18, 2024
2a668cb
Added Arduino Example templates; corrected code for no more errors
MadisonC-SparkFun Jan 18, 2024
586d856
Fixed keywords and library.prop files; small adjustments
MadisonC-SparkFun Jan 22, 2024
50179d9
Begin function completed
MadisonC-SparkFun Jan 22, 2024
80dfefa
Updated arduino example folder structure, names, examples
MadisonC-SparkFun Jan 22, 2024
700fac3
I2C Bus Functionality Added
MadisonC-SparkFun Jan 26, 2024
67de9f2
Now contains functional writeRegister code
MadisonC-SparkFun Jan 29, 2024
971e0e1
Incorrect code as per Kirk comments
MadisonC-SparkFun Jan 30, 2024
06fee38
Errors resolved as per Kirk's request
MadisonC-SparkFun Jan 31, 2024
908c905
Changed name of 16 bit regsiter regions
MadisonC-SparkFun Jan 31, 2024
5c6af60
No errors; distance begin() completed
MadisonC-SparkFun Feb 1, 2024
a3a0a5f
Magic numbers removed from library
MadisonC-SparkFun Feb 2, 2024
ebac59d
Functional presence data code! Needs to cleanup
MadisonC-SparkFun Feb 9, 2024
30fe729
Functional Distance Sensor Code
MadisonC-SparkFun Feb 13, 2024
a5278ef
Switched around example numbers; finished library
MadisonC-SparkFun Feb 21, 2024
d00bb95
Updated example numbers; updated keywords
MadisonC-SparkFun Feb 21, 2024
75aec5a
Cleaned up distance examples and comments
MadisonC-SparkFun Feb 22, 2024
030922f
Updates as per Kirk's request
MadisonC-SparkFun Feb 26, 2024
47f5765
Functional presence begin example
MadisonC-SparkFun Feb 27, 2024
2ed880a
Updated basic distance readings with correct code
MadisonC-SparkFun Feb 28, 2024
48ac444
Changed the flipByte functionality to a c-standard function
MadisonC-SparkFun Feb 28, 2024
8ba1b5f
Removed all magic numbers from file
MadisonC-SparkFun Feb 29, 2024
32f3d01
Examples are cleaned up and funcitonal
MadisonC-SparkFun Feb 29, 2024
852bbc7
Deleted byteswap
MadisonC-SparkFun Mar 5, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
29 changes: 20 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,34 @@
# SparkFun_Template_Arduino_Library
SparkFun XM125 A121 Arduino Library
========================================

<table class="table table-hover table-striped table-bordered">
<p> TODO: Add product photos and links </p>
</table>

TODO: Add description of product and library
This is the SparkFun library for the Acconeer Entry+ Module XM125 with the A121 60GHz Pulsed Coherent Radar sensor and I<sup>2</sup>C interface. (insert link here).


Repository Contents
-------------------

* **/documents** - Data sheets, additional product information
* **/examples** - Example code
* **/src** - Source code
* **/examples** - Example sketches for the library (.ino). Run these from the Arduino IDE.
* **/src** - Source files for the library (.cpp, .h).
* **/Documentation** - Datasheet and application note for the XM125 and A121.
* **keywords.txt** - Keywords from this library that will be highlighted in the Arduino IDE.
* **library.properties** - General library properties for the Arduino package manager.
* **[CONTRIBUTING.md](./CONTRIBUTING.md)** - guidance on how to contribute to this library.


Documentation
--------------
* **[GitHub Repo](https://github.com/sparkfun/TODO)** - TODO: Update URL and description

* **[Installing an Arduino Library Guide](https://learn.sparkfun.com/tutorials/installing-an-arduino-library)** - Basic information on how to install an Arduino library.
* **[Hookup Guide](http://docs.sparkfun.com/TODO/)** - TODO: Update URL and description
* **[Product Repository](https://github.com/sparkfun/SparkFun_Qwiic_Pulsed_Radar_Sensor_XM125)** - Main repository for the SparkFun Qwiic XM125 (including hardware files)


Products that use this Library
---------------------------------

* [*SEN-_____*](insert link here)


License Information
-------------------
Expand Down
Binary file added documents/A121 Assembly Test User Guide.pdf
Binary file not shown.
Binary file not shown.
Binary file added documents/A121 Distance Detector User Guide.pdf
Binary file not shown.
Binary file added documents/A121 Presence Detector User Guide.pdf
Binary file not shown.
Binary file added documents/A121 STM32CubeIDE User Guide.pdf
Binary file not shown.
Binary file added documents/A121 SW Integration User Guide.pdf
Binary file not shown.
Binary file not shown.
Binary file added documents/A121 Sparse IQ Service User Guide.pdf
Binary file not shown.
Binary file not shown.
11 changes: 11 additions & 0 deletions documents/BUILDINFO.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

The libraries in this package was built with the following configuration:

Compiler version:
arm-none-eabi-gcc (GNU Arm Embedded Toolchain 9-2020-q2-update) 9.3.1 20200408 (release)

Compiler flags:
-mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -DTARGET_ARCH_cm4 -DFLOAT_ABI_HARD
-std=c99 -pedantic -Wall -Werror -Wextra -Wdouble-promotion -Wstrict-prototypes -Wcast-qual
-Wmissing-prototypes -Winit-self -Wpointer-arith -Wshadow -MMD -MP -O2 -g -fno-math-errno
-ffunction-sections -fdata-sections -flto=auto -ffat-lto-objects
Binary file added documents/Handbook.pdf
Binary file not shown.
Binary file added documents/I2C Distance Detector User Guide.pdf
Binary file not shown.
Binary file added documents/I2C Presence Detector User Guide.pdf
Binary file not shown.
Binary file added documents/XM125 Software User Guide.pdf
Binary file not shown.
Binary file added documents/html/AcconeerLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
400 changes: 400 additions & 0 deletions documents/html/acc__alg__basic__utils_8h.html

Large diffs are not rendered by default.

185 changes: 185 additions & 0 deletions documents/html/acc__alg__basic__utils_8h_source.html

Large diffs are not rendered by default.

3,171 changes: 3,171 additions & 0 deletions documents/html/acc__algorithm_8c.html

Large diffs are not rendered by default.

1,821 changes: 1,821 additions & 0 deletions documents/html/acc__algorithm_8c_source.html

Large diffs are not rendered by default.

2,461 changes: 2,461 additions & 0 deletions documents/html/acc__algorithm_8h.html

Large diffs are not rendered by default.

696 changes: 696 additions & 0 deletions documents/html/acc__algorithm_8h_source.html

Large diffs are not rendered by default.

226 changes: 226 additions & 0 deletions documents/html/acc__config_8h.html

Large diffs are not rendered by default.

619 changes: 619 additions & 0 deletions documents/html/acc__config_8h_source.html

Large diffs are not rendered by default.

174 changes: 174 additions & 0 deletions documents/html/acc__config__subsweep_8h.html

Large diffs are not rendered by default.

408 changes: 408 additions & 0 deletions documents/html/acc__config__subsweep_8h_source.html

Large diffs are not rendered by default.

341 changes: 341 additions & 0 deletions documents/html/acc__control__helper_8c.html

Large diffs are not rendered by default.

323 changes: 323 additions & 0 deletions documents/html/acc__control__helper_8c_source.html

Large diffs are not rendered by default.

268 changes: 268 additions & 0 deletions documents/html/acc__control__helper_8h.html

Large diffs are not rendered by default.

211 changes: 211 additions & 0 deletions documents/html/acc__control__helper_8h_source.html

Large diffs are not rendered by default.

293 changes: 293 additions & 0 deletions documents/html/acc__definitions__a121_8h.html

Large diffs are not rendered by default.

238 changes: 238 additions & 0 deletions documents/html/acc__definitions__a121_8h_source.html

Large diffs are not rendered by default.

208 changes: 208 additions & 0 deletions documents/html/acc__definitions__common_8h.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,208 @@
<!-- HTML header for doxygen 1.8.13-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Acconeer SDK: Inc/acc_definitions_common.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="style.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 66px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('acc__definitions__common_8h.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
<div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#define-members">Macros</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#enum-members">Enumerations</a> </div>
<div class="headertitle">
<div class="title">acc_definitions_common.h File Reference</div> </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;inttypes.h&gt;</code><br />
<code>#include &lt;stdint.h&gt;</code><br />
</div>
<p><a href="acc__definitions__common_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structacc__int16__complex__t.html">acc_int16_complex_t</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Data type for interger-based representation of complex numbers. <a href="structacc__int16__complex__t.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:ae2ddc82b4481619b79cd8cafe9e43836"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="acc__definitions__common_8h.html#ae2ddc82b4481619b79cd8cafe9e43836">PRIsensor_id</a>&#160;&#160;&#160;PRIu32</td></tr>
<tr class="memdesc:ae2ddc82b4481619b79cd8cafe9e43836"><td class="mdescLeft">&#160;</td><td class="mdescRight">Macro for printing sensor id. <a href="acc__definitions__common_8h.html#ae2ddc82b4481619b79cd8cafe9e43836">More...</a><br /></td></tr>
<tr class="separator:ae2ddc82b4481619b79cd8cafe9e43836"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:a7af0e4bb3660c7c6843354709751178b"><td class="memItemLeft" align="right" valign="top">typedef uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="acc__definitions__common_8h.html#a7af0e4bb3660c7c6843354709751178b">acc_sensor_id_t</a></td></tr>
<tr class="memdesc:a7af0e4bb3660c7c6843354709751178b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Type representing a sensor ID. <a href="acc__definitions__common_8h.html#a7af0e4bb3660c7c6843354709751178b">More...</a><br /></td></tr>
<tr class="separator:a7af0e4bb3660c7c6843354709751178b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:a2a574f003da6440aa63faaaf9dc6a906"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="acc__definitions__common_8h.html#a2a574f003da6440aa63faaaf9dc6a906">acc_log_level_t</a> { <br />
&#160;&#160;<a class="el" href="acc__definitions__common_8h.html#a2a574f003da6440aa63faaaf9dc6a906a4d3bfb21ceea033ad27e5713dca4cf38">ACC_LOG_LEVEL_ERROR</a>,
<a class="el" href="acc__definitions__common_8h.html#a2a574f003da6440aa63faaaf9dc6a906a6d7c13a9dae368a1ccc5d46774631ac7">ACC_LOG_LEVEL_WARNING</a>,
<a class="el" href="acc__definitions__common_8h.html#a2a574f003da6440aa63faaaf9dc6a906a041f0b15b66773dd5ca02e3a5dff5278">ACC_LOG_LEVEL_INFO</a>,
<a class="el" href="acc__definitions__common_8h.html#a2a574f003da6440aa63faaaf9dc6a906a3d38353a57c62d4ee3d8553ab4e4cb71">ACC_LOG_LEVEL_VERBOSE</a>,
<br />
&#160;&#160;<a class="el" href="acc__definitions__common_8h.html#a2a574f003da6440aa63faaaf9dc6a906af804954572982b7789f6d47e9c347b93">ACC_LOG_LEVEL_DEBUG</a>
<br />
}</td></tr>
<tr class="memdesc:a2a574f003da6440aa63faaaf9dc6a906"><td class="mdescLeft">&#160;</td><td class="mdescRight">This enum represents the different log levels for RSS. <a href="acc__definitions__common_8h.html#a2a574f003da6440aa63faaaf9dc6a906">More...</a><br /></td></tr>
<tr class="separator:a2a574f003da6440aa63faaaf9dc6a906"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a id="ae2ddc82b4481619b79cd8cafe9e43836"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae2ddc82b4481619b79cd8cafe9e43836">&#9670;&nbsp;</a></span>PRIsensor_id</h2>

<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define PRIsensor_id&#160;&#160;&#160;PRIu32</td>
</tr>
</table>
</div><div class="memdoc">

<p>Macro for printing sensor id. </p>

<p class="definition">Definition at line <a class="el" href="acc__definitions__common_8h_source.html#l00019">19</a> of file <a class="el" href="acc__definitions__common_8h_source.html">acc_definitions_common.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Typedef Documentation</h2>
<a id="a7af0e4bb3660c7c6843354709751178b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7af0e4bb3660c7c6843354709751178b">&#9670;&nbsp;</a></span>acc_sensor_id_t</h2>

<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef uint32_t <a class="el" href="acc__definitions__common_8h.html#a7af0e4bb3660c7c6843354709751178b">acc_sensor_id_t</a></td>
</tr>
</table>
</div><div class="memdoc">

<p>Type representing a sensor ID. </p>

<p class="definition">Definition at line <a class="el" href="acc__definitions__common_8h_source.html#l00014">14</a> of file <a class="el" href="acc__definitions__common_8h_source.html">acc_definitions_common.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Enumeration Type Documentation</h2>
<a id="a2a574f003da6440aa63faaaf9dc6a906"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2a574f003da6440aa63faaaf9dc6a906">&#9670;&nbsp;</a></span>acc_log_level_t</h2>

<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="acc__definitions__common_8h.html#a2a574f003da6440aa63faaaf9dc6a906">acc_log_level_t</a></td>
</tr>
</table>
</div><div class="memdoc">

<p>This enum represents the different log levels for RSS. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a2a574f003da6440aa63faaaf9dc6a906a4d3bfb21ceea033ad27e5713dca4cf38"></a>ACC_LOG_LEVEL_ERROR&#160;</td><td class="fielddoc"><p>ERROR log level. </p>
</td></tr>
<tr><td class="fieldname"><a id="a2a574f003da6440aa63faaaf9dc6a906a6d7c13a9dae368a1ccc5d46774631ac7"></a>ACC_LOG_LEVEL_WARNING&#160;</td><td class="fielddoc"><p>WARNING log level. </p>
</td></tr>
<tr><td class="fieldname"><a id="a2a574f003da6440aa63faaaf9dc6a906a041f0b15b66773dd5ca02e3a5dff5278"></a>ACC_LOG_LEVEL_INFO&#160;</td><td class="fielddoc"><p>INFO log level. </p>
</td></tr>
<tr><td class="fieldname"><a id="a2a574f003da6440aa63faaaf9dc6a906a3d38353a57c62d4ee3d8553ab4e4cb71"></a>ACC_LOG_LEVEL_VERBOSE&#160;</td><td class="fielddoc"><p>VERBOSE log level. </p>
</td></tr>
<tr><td class="fieldname"><a id="a2a574f003da6440aa63faaaf9dc6a906af804954572982b7789f6d47e9c347b93"></a>ACC_LOG_LEVEL_DEBUG&#160;</td><td class="fielddoc"><p>DEBUG log level. </p>
</td></tr>
</table>

<p class="definition">Definition at line <a class="el" href="acc__definitions__common_8h_source.html#l00025">25</a> of file <a class="el" href="acc__definitions__common_8h_source.html">acc_definitions_common.h</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.8.13-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
</div>
</body>
</html>
Loading