AFBR-S50 API Reference Manual  v1.6.5
AFBR-S50 Time-of-Flight Sensor SDK for Embedded Software
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  *****************************************************************************/
66 status_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 #if EXPLORER_API_PRO
96 /*!***************************************************************************
97  * @brief Resets the device configuration to the factory default values.
98  * @param explorer The AFBR-Explorer control block.
99  * @return Returns the \link #status_t status\endlink (#STATUS_OK on success).
100  *****************************************************************************/
101 status_t ExplorerApp_ResetDeviceConfiguration(explorer_t * explorer);
102 #endif
103 
104 /*!***************************************************************************
105  * @brief Sets the device measurement mode and load default values.
106  * @details The measurement mode is set to the specified mode and factory
107  * default configuration and calibration values are loaded.
108  * @param explorer The AFBR-Explorer control block.
109  * @param mode The new measurement mode to be set.
110  * @return Returns the \link #status_t status\endlink (#STATUS_OK on success).
111  *****************************************************************************/
113 
114 /*!***************************************************************************
115  * @brief Resets the device measurement mode and load default values.
116  * @details The measurement mode is reset to the factory default configuration
117  * and calibration values.
118  * @param explorer The AFBR-Explorer control block.
119  * @return Returns the \link #status_t status\endlink (#STATUS_OK on success).
120  *****************************************************************************/
122 
123 /*!***************************************************************************
124  * @brief Gets the current data output mode.
125  * @param explorer The AFBR-Explorer control block.
126  * @return Returns the current data output mode.
127  *****************************************************************************/
129 
130 /*!***************************************************************************
131  * @brief Reset the Argus device to the default data streaming mode.
132  * @param explorer The Explorer handle.
133  *****************************************************************************/
135 
137 #endif /* CORE_CFG_H */
argus_mode_t
argus_mode_t
The measurement modes.
Definition: argus_def.h:275
ExplorerApp_ResetDeviceMeasurementMode
status_t ExplorerApp_ResetDeviceMeasurementMode(explorer_t *explorer)
Resets the device measurement mode and load default values.
Definition: core_cfg.c:213
ExplorerApp_GetDataOutputMode
data_output_mode_t ExplorerApp_GetDataOutputMode(explorer_t *explorer)
Gets the current data output mode.
Definition: core_cfg.c:228
explorer_t
Definition: explorer_types.h:282
data_output_mode_t
data_output_mode_t
Definition: explorer_types.h:245
explorer_types.h
This file is part of the AFBR-S50 Explorer Demo Application.
ExplorerApp_SetConfiguration
status_t ExplorerApp_SetConfiguration(explorer_t *explorer, explorer_cfg_t *cfg)
Setter for the software configuration.
Definition: core_cfg.c:115
explorer_cfg_t
Definition: explorer_types.h:268
ExplorerApp_SetDeviceMeasurementMode
status_t ExplorerApp_SetDeviceMeasurementMode(explorer_t *explorer, argus_mode_t mode)
Sets the device measurement mode and load default values.
Definition: core_cfg.c:195
ExplorerApp_ResetDefaultDataStreamingMode
void ExplorerApp_ResetDefaultDataStreamingMode(explorer_t *explorer)
Reset the Argus device to the default data streaming mode.
Definition: core_cfg.c:234
ExplorerApp_GetConfiguration
void ExplorerApp_GetConfiguration(explorer_t *explorer, explorer_cfg_t *cfg)
Getter for the software configuration.
Definition: core_cfg.c:106
ExplorerApp_GetDebugModeEnabled
bool ExplorerApp_GetDebugModeEnabled(explorer_t *explorer)
Gets whether the debug mode is currently enabled.
Definition: core_cfg.c:72
status_t
int32_t status_t
Type used for all status and error return values.
Definition: argus_status.h:70
ExplorerApp_SetDebugMode
status_t ExplorerApp_SetDebugMode(explorer_t *explorer, bool debugMode)
Sets the debug mode to the device.
Definition: core_cfg.c:77
ExplorerApp_GetDefaultConfiguration
void ExplorerApp_GetDefaultConfiguration(explorer_cfg_t *cfg)
Getter for the default software configuration.
Definition: core_cfg.c:92