AFBR-S50 API Reference Manual v1.5.6
AFBR-S50 Time-of-Flight Sensor SDK for Embedded Software
Loading...
Searching...
No Matches
core_cfg.h
Go to the documentation of this file.
1/*************************************************************************/
37#ifndef CORE_CFG_H
38#define CORE_CFG_H
39
40/*!***************************************************************************
41 * @defgroup core_cfg AFBR-S50 Explorer - Explorer configuration functions
42 * @ingroup explorer_app
43 * @brief AFBR-S50 Explorer - Explorer configuration functions
44 * @details Util functions for handling the configuration and modes of the
45 * Explorer devices.
46 * @addtogroup core_cfg
47 * @{
48 *****************************************************************************/
49
50#include "explorer_types.h"
51
52
53/*!***************************************************************************
54 * @brief Gets whether the debug mode is currently enabled.
55 * @param explorer The AFBR-Explorer control block.
56 * @return Returns true if the debug mode is currently enabled.
57 *****************************************************************************/
59
60/*!***************************************************************************
61 * @brief Sets the debug mode to the device.
62 * @param explorer The AFBR-Explorer control block.
63 * @param debugMode The new debug mode enabled state.
64 * @return Returns the \link #status_t status\endlink (#STATUS_OK on success).
65 *****************************************************************************/
66status_t ExplorerApp_SetDebugMode(explorer_t * explorer, bool debugMode);
67
68/*!***************************************************************************
69 * @brief Getter for the default software configuration.
70 * @param cfg A pointer to the \link #explorer_cfg_t software
71 * configuration\endlink data structure that will be filled with
72 * the current configuration data.
73 *****************************************************************************/
75
76/*!***************************************************************************
77 * @brief Getter for the software configuration.
78 * @param explorer The AFBR-Explorer control block.
79 * @param cfg A pointer to the \link #explorer_cfg_t software
80 * configuration\endlink data structure that will be filled with
81 * the current configuration data.
82 *****************************************************************************/
84
85/*!***************************************************************************
86 * @brief Setter for the software configuration.
87 * @param explorer The AFBR-Explorer control block.
88 * @param cfg A pointer to the \link #explorer_cfg_t software
89 * configuration\endlink data structure that contains the new
90 * configuration data.
91 * @return Returns the \link #status_t status\endlink (#STATUS_OK on success).
92 *****************************************************************************/
94
95/*!***************************************************************************
96 * @brief Sets the device measurement mode and load default values.
97 * @details The measurement mode is set to the specified mode and factory
98 * default configuration and calibration values are loaded.
99 * @param explorer The AFBR-Explorer control block.
100 * @param mode The new measurement mode to be set.
101 * @return Returns the \link #status_t status\endlink (#STATUS_OK on success).
102 *****************************************************************************/
104
105/*!***************************************************************************
106 * @brief Resets the device measurement mode and load default values.
107 * @details The measurement mode is reset to the factory default configuration
108 * and calibration values.
109 * @param explorer The AFBR-Explorer control block.
110 * @return Returns the \link #status_t status\endlink (#STATUS_OK on success).
111 *****************************************************************************/
113
114/*!***************************************************************************
115 * @brief Gets the current data output mode.
116 * @param explorer The AFBR-Explorer control block.
117 * @return Returns the current data output mode.
118 *****************************************************************************/
120
121/*!***************************************************************************
122 * @brief Reset the Argus device to the default data streaming mode.
123 * @param explorer The Explorer handle.
124 *****************************************************************************/
126
128#endif /* CORE_CFG_H */
This file is part of the AFBR-S50 Explorer Demo Application.
argus_mode_t
The measurement modes.
Definition argus_def.h:264
int32_t status_t
Type used for all status and error return values.
Definition argus_status.h:70
status_t ExplorerApp_SetConfiguration(explorer_t *explorer, explorer_cfg_t *cfg)
Setter for the software configuration.
Definition core_cfg.c:104
void ExplorerApp_GetConfiguration(explorer_t *explorer, explorer_cfg_t *cfg)
Getter for the software configuration.
Definition core_cfg.c:95
void ExplorerApp_ResetDefaultDataStreamingMode(explorer_t *explorer)
Reset the Argus device to the default data streaming mode.
Definition core_cfg.c:199
status_t ExplorerApp_SetDebugMode(explorer_t *explorer, bool debugMode)
Sets the debug mode to the device.
Definition core_cfg.c:73
bool ExplorerApp_GetDebugModeEnabled(explorer_t *explorer)
Gets whether the debug mode is currently enabled.
Definition core_cfg.c:68
void ExplorerApp_GetDefaultConfiguration(explorer_cfg_t *cfg)
Getter for the default software configuration.
Definition core_cfg.c:81
status_t ExplorerApp_SetDeviceMeasurementMode(explorer_t *explorer, argus_mode_t mode)
Sets the device measurement mode and load default values.
Definition core_cfg.c:160
status_t ExplorerApp_ResetDeviceMeasurementMode(explorer_t *explorer)
Resets the device measurement mode and load default values.
Definition core_cfg.c:178
data_output_mode_t ExplorerApp_GetDataOutputMode(explorer_t *explorer)
Gets the current data output mode.
Definition core_cfg.c:193
data_output_mode_t
Definition explorer_types.h:169
Definition explorer_types.h:192
Definition explorer_types.h:206