You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
896 B
33 lines
896 B
/*
|
|
* challenge_nvs.h
|
|
*
|
|
* Created on: 08.12.2022
|
|
* Author: jonas
|
|
*/
|
|
|
|
#ifndef MAIN_CHALLENGE_NVS_H_
|
|
#define MAIN_CHALLENGE_NVS_H_
|
|
|
|
#include <stdbool.h>
|
|
|
|
/*! \brief Initialize the NVS storage. */
|
|
void Challenge_Nvs_Init(void);
|
|
|
|
/*! \brief Deinitialize the NVS storage. */
|
|
void Challenge_Nvs_Deinit(void);
|
|
|
|
/*!
|
|
* \brief Stores the passed robot mode in NVS.
|
|
* \param modeStationary Mode to store. True = stationary mode, False = mobile mode
|
|
* \return true on success
|
|
*/
|
|
bool Challenge_Nvs_StoreRobotModeToNVS(bool mode);
|
|
|
|
/*!
|
|
* \brief Retrieve the robot mode stored in NVS. If the robot mode is not yet stored in NVS, it will be initially stored as false.
|
|
* \param mode Pointer to the location where to retrieve the mode to. True = stationary mode, False = mobile mode
|
|
* \return true on success
|
|
*/
|
|
bool Challenge_Nvs_GetRobotModeFromNVS(bool *mode);
|
|
|
|
#endif /* MAIN_CHALLENGE_NVS_H_ */
|
|
|