| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- /*!
- * \file NvmCtxMgmt.h
- *
- * \brief NVM context management implementation
- *
- * \copyright Revised BSD License, see section \ref LICENSE.
- *
- * \code
- * ______ _
- * / _____) _ | |
- * ( (____ _____ ____ _| |_ _____ ____| |__
- * \____ \| ___ | (_ _) ___ |/ ___) _ \
- * _____) ) ____| | | || |_| ____( (___| | | |
- * (______/|_____)_|_|_| \__)_____)\____)_| |_|
- * (C)2013-2017 Semtech
- *
- * ___ _____ _ ___ _ _____ ___ ___ ___ ___
- * / __|_ _/_\ / __| |/ / __/ _ \| _ \/ __| __|
- * \__ \ | |/ _ \ (__| ' <| _| (_) | / (__| _|
- * |___/ |_/_/ \_\___|_|\_\_| \___/|_|_\\___|___|
- * embedded.connectivity.solutions===============
- *
- * \endcode
- *
- * \author Miguel Luis ( Semtech )
- *
- * \author Gregory Cristian ( Semtech )
- *
- * \author Daniel Jaeckle ( STACKFORCE )
- *
- * \author Johannes Bruder ( STACKFORCE )
- *
- * \defgroup NVMCTXMGMT NVM context management implementation
- * This module implements the NVM context handling
- * \{
- */
- #ifndef __NVMCTXMGMT_H__
- #define __NVMCTXMGMT_H__
- #include "LoRaMac.h"
- /*!
- * Data structure containing the status of a operation
- */
- typedef enum NvmCtxMgmtStatus_e
- {
- /*!
- * Operation was successful
- */
- NVMCTXMGMT_STATUS_SUCCESS,
- /*!
- * Operation was not successful
- */
- NVMCTXMGMT_STATUS_FAIL
- }NvmCtxMgmtStatus_t;
- /*!
- * \brief Calculates the next datarate to set, when ADR is on or off.
- *
- * \param [IN] adrNext Pointer to the function parameters.
- *
- */
- void NvmCtxMgmtEvent( LoRaMacNvmCtxModule_t module );
- NvmCtxMgmtStatus_t NvmCtxMgmtStore( void );
- NvmCtxMgmtStatus_t NvmCtxMgmtRestore(void );
- #endif // __NVMCTXMGMT_H__
|