The AFBR-S50 API is the appertaining software for the AFBR-S50 Time-of-Flight Sensor family by Broadcom Inc.
The repository consists of the AFBR-S50 Core Library, a static ANSI-C library, and its accompanied header files and documentation. Additionally, example and demo projects are provided for certain processors and evaluation boards.
The API Reference Manual can be viewed here.
The repository is structured in the following way:
-
/AFBR-S50
: Contains the AFBR-S50 API.-
/Include
: Contains the AFBR-S50 API as ANSI-C header files. -
/Lib
: Contains the static AFBR-S50 Core Libraries for multiple Cortex-Mx architectures. -
/Test
: The HAL-Self Test suite that can be used to verify the ported HAL.
-
-
/Doxygen
: Contains additional documentation files that can be used with Doxygen to generate the API Reference Manual. -
/Projects
: Project files for several IDEs.-
/e2Studio
: Project files for the Renesas e² Studio IDE for all Renesas processors. -
/MCUXpressoIDE
: Project files for the NXP MCUXpresso IDE for all NXP processors. -
/STM32CubeIDE
: Project files for the STM32Cube IDE for all STM32 processors.
-
-
/Sources
: Contains all source files.-
/CANApp
: A CAN-Bus interface application running on the AFBR-S50 Reference Board by MikroElektronika. It listens to commands and streams 1D range values on the CAN-bus. -
/ExampleApp
: A collection of basic example applications that demonstrate the usage of the AFBR-S50 API and stream measurement data via an UART connection. -
/ExplorerApp
: A more sophisticated example application that implements a serial communication interface via USB or UART to connect to the corresponding AFBR-S50 Explorer GUI (download via the Software Development Kit from the official Broadcom webpage). -
/Platform
: The platform specific code like peripheral drivers or hardware abstraction layers (HAL).-
/NXP_MKLxxZ
: The platform code for the NXP Kinetis L-Series processors (e.g. MKL46z which is used by the AFBR-S50 Evaluation Kits). -
/Renesas_RA4M2
: The platform code for the Renesas RA4M2 series which is used for the AFBR-S50 Reference Board by MikroElektronika. -
/STM32F4xx
: The platform code for the STM32F4 Series (e.g. STM32F401RE).
-
-
All projects are located under /Projects/<IDE>/<PROJECT>
. The following
projects are available:
AFBR_S50_Example_<MCU>
: A simple example application that streams measurement data via an UART connection.AFBR_S50_ExplorerApp_<MCU>
: A more sophisticated example application that implements a serial communication interface via USB or UART to connect to the corresponding AFBR-S50 Explorer GUI (download from the official Broadcom webpage).AFBR_S50_CANApp_<MCU>
: A CAN interface application running on the AFBR-S50 Reference Board by MikroElektronika. listens to commands and streams 1D range values on the CAN bus.
Before you get started, you require some hardware. For an easy start, it is recommended to use one of the following:
Creating the documentation is generally not required since it is already hosted via GitHub Pages.
However, if an updated documentation needs to be created, the following tools are required and must be installed and setup correctly. Please refer the tools documentation on how to setup.
After successful setup, the documentation can be created by invoking doxygen
from the root directory:
$ doxygen
Now, the index.html
can be found at /Documentation/html/index.html
.
Please refer the Getting Started in the API Reference Manual for a detailed guide on how to setup the projects.
Please also refer the Demo Applications in the API Reference Manual for an overview of existing projects.
In order to use the AFBR-S50 API on another MCU platform, refer to the generic Porting Guide in the API Reference Manual.
Also refer to the special Porting Guide based on a port of the AFBR-S50 API to the STM32F401RE Evaluation Kit with a Cortex-M4 MCU. The guide can be found on the Broadcom homepage.
If you have used the previous version of the AFBR-S50 API, please read the Migration guide to get an overview of the changes in the API as well as the HAL compared to the current version.
In order to get support, please make sure the issue is related to the AFBR-S50
API. If the issue is related to the AFBR-S50 Hardware, contact the
corresponding support via support.tof[at]broadcom.com
.
If your issue relates to the AFBR-S50 API, please make sure you have read and understood the API Reference Manual (especially the Troubleshooting section). If your issue is still there, please see if you can find an related issue in the Issue Section of the repository. Finally, feel free to open a new ticked describing your problem.
We highly appreciate any contribution to the AFBR-S50 API project.
Ideas for contributions could be:
- documentation work,
- fixing/updating platform or example code or project files,
- porting the platform code to new processors,
- adding additional examples/demo projects,
- and much more...
Please make sure your work fits well into the existing structure and coding style. Also, before you start your work, check if your planned contribution will be accepted by opening a new issue that describes your planned changes. This will also help to gather information about the implementation.
The AFBR-S50 API is based developed using the following tools:
- NXP MCUXpresso IDE
- ST STM32Cube IDE
- Renesas e² Studio IDE
- printf library by mpaland and eyalroz
- Doxygen and Graphviz
The AFBR-S50-API is published under the BSD 3-Clause License:
Copyright (c) 2023, Broadcom Inc All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.