AFBR-S50 API Reference Manual v1.5.6
AFBR-S50 Time-of-Flight Sensor SDK for Embedded Software
Loading...
Searching...
No Matches
core_utils.c File Reference

This file is part of the AFBR-S50 Explorer Demo Application. More...

#include "core_utils.h"
#include <assert.h>
#include "driver/s2pi.h"
#include "debug.h"
#include "explorer_tasks.h"
Include dependency graph for core_utils.c:

Functions

status_t MeasurementReadyCallback (status_t status, argus_hnd_t *argus)
 
bool ExplorerApp_SuspendTimerMeasurement (argus_hnd_t *argus)
 Suspends the current active measurement on the device.
 
status_t ExplorerApp_StartTimerMeasurement (argus_hnd_t *argus)
 Starts the measurements.
 
status_t ExplorerApp_StopTimerMeasurement (argus_hnd_t *argus)
 Stops the measurements and goes to idle state.
 
status_t ExplorerApp_SingleMeasurement (argus_hnd_t *argus)
 Triggers a single measurement and goes to idle afterwards.
 
status_t ExplorerApp_DeviceAbort (argus_hnd_t *argus)
 Aborts all device activity immediately.
 
void ExplorerApp_DisplayUnambiguousRange (argus_hnd_t *argus)
 Displays the unambiguous range in meter on the SLCD display.
 

Detailed Description

This file is part of the AFBR-S50 Explorer Demo Application.

This file contains the hardware API of the Explorer Application.

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:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. 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.
  3. 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.

Function Documentation

◆ MeasurementReadyCallback()

status_t MeasurementReadyCallback ( status_t  status,
argus_hnd_t argus 
)
extern

Callback function after measurement cycle was finished.

Examples
02_advanced_example.c, 02_advanced_example_with_hal_self_test.c, 03_high_speed_example.c, and 04_multi_device_example.c.