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

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

#include "explorer_api_data.h"
#include "api/argus_map.h"
#include "utility/fp_rnd.h"
#include "utility/int_math.h"
#include "assert.h"
Include dependency graph for explorer_api_data.c:

Macros

#define PARSE_RANGE(r)   (((r) == ARGUS_RANGE_MAX) ? (ARGUS_RANGE_MAX >> 8) : fp_rnds((r), 8))
 

Functions

static void Serialize_MeasurementData_Generic (sci_frame_t *frame, argus_results_t const *res, sci_cmd_t type)
 
static void Serialize_MeasurementData_FrameConfig (sci_frame_t *frame, argus_results_t const *res, sci_cmd_t type)
 
static void Serialize_MeasurementData_RawData (sci_frame_t *frame, argus_results_t const *res, sci_cmd_t type)
 
static void Serialize_MeasurementData_3D (sci_frame_t *frame, argus_results_t const *res, sci_cmd_t type)
 
static void Serialize_MeasurementData_1D (sci_frame_t *frame, argus_results_t const *res, sci_cmd_t type)
 
static void Serialize_MeasurementData_Aux (sci_frame_t *frame, argus_results_t const *res, sci_cmd_t type)
 
static void Serialize_MeasurementData_Debug (sci_frame_t *frame, argus_results_t const *res, sci_cmd_t type)
 
static void Serialize_MeasurementData (sci_frame_t *frame, argus_results_t const *res, sci_cmd_t type)
 
static status_t TxCmd_MeasurementDataFullDebug (sci_device_t deviceID, sci_frame_t *frame, sci_param_t param, sci_data_t data)
 
static status_t TxCmd_MeasurementDataFull (sci_device_t deviceID, sci_frame_t *frame, sci_param_t param, sci_data_t data)
 
static status_t TxCmd_MeasurementData3DDebug (sci_device_t deviceID, sci_frame_t *frame, sci_param_t param, sci_data_t data)
 
static status_t TxCmd_MeasurementData3D (sci_device_t deviceID, sci_frame_t *frame, sci_param_t param, sci_data_t data)
 
static status_t TxCmd_MeasurementData1DDebug (sci_device_t deviceID, sci_frame_t *frame, sci_param_t param, sci_data_t data)
 
static status_t TxCmd_MeasurementData1D (sci_device_t deviceID, sci_frame_t *frame, sci_param_t param, sci_data_t data)
 
status_t ExplorerAPI_InitData (void)
 Initialize the measurement data API.
 

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.

Macro Definition Documentation

◆ PARSE_RANGE

#define PARSE_RANGE (   r)    (((r) == ARGUS_RANGE_MAX) ? (ARGUS_RANGE_MAX >> 8) : fp_rnds((r), 8))

Parses a 32-bit range value to a 24-bit value that can be sent over SCI.

Function Documentation

◆ Serialize_MeasurementData()

static void Serialize_MeasurementData ( sci_frame_t frame,
argus_results_t const *  res,
sci_cmd_t  type 
)
static

◆ Serialize_MeasurementData_1D()

static void Serialize_MeasurementData_1D ( sci_frame_t frame,
argus_results_t const *  res,
sci_cmd_t  type 
)
static

◆ Serialize_MeasurementData_3D()

static void Serialize_MeasurementData_3D ( sci_frame_t frame,
argus_results_t const *  res,
sci_cmd_t  type 
)
static

◆ Serialize_MeasurementData_Aux()

static void Serialize_MeasurementData_Aux ( sci_frame_t frame,
argus_results_t const *  res,
sci_cmd_t  type 
)
static

◆ Serialize_MeasurementData_Debug()

static void Serialize_MeasurementData_Debug ( sci_frame_t frame,
argus_results_t const *  res,
sci_cmd_t  type 
)
static

◆ Serialize_MeasurementData_FrameConfig()

static void Serialize_MeasurementData_FrameConfig ( sci_frame_t frame,
argus_results_t const *  res,
sci_cmd_t  type 
)
static

◆ Serialize_MeasurementData_Generic()

static void Serialize_MeasurementData_Generic ( sci_frame_t frame,
argus_results_t const *  res,
sci_cmd_t  type 
)
static

◆ Serialize_MeasurementData_RawData()

static void Serialize_MeasurementData_RawData ( sci_frame_t frame,
argus_results_t const *  res,
sci_cmd_t  type 
)
static

◆ TxCmd_MeasurementData1D()

static status_t TxCmd_MeasurementData1D ( sci_device_t  deviceID,
sci_frame_t frame,
sci_param_t  param,
sci_data_t  data 
)
static

◆ TxCmd_MeasurementData1DDebug()

static status_t TxCmd_MeasurementData1DDebug ( sci_device_t  deviceID,
sci_frame_t frame,
sci_param_t  param,
sci_data_t  data 
)
static

◆ TxCmd_MeasurementData3D()

static status_t TxCmd_MeasurementData3D ( sci_device_t  deviceID,
sci_frame_t frame,
sci_param_t  param,
sci_data_t  data 
)
static

◆ TxCmd_MeasurementData3DDebug()

static status_t TxCmd_MeasurementData3DDebug ( sci_device_t  deviceID,
sci_frame_t frame,
sci_param_t  param,
sci_data_t  data 
)
static

◆ TxCmd_MeasurementDataFull()

static status_t TxCmd_MeasurementDataFull ( sci_device_t  deviceID,
sci_frame_t frame,
sci_param_t  param,
sci_data_t  data 
)
static

◆ TxCmd_MeasurementDataFullDebug()

static status_t TxCmd_MeasurementDataFullDebug ( sci_device_t  deviceID,
sci_frame_t frame,
sci_param_t  param,
sci_data_t  data 
)
static