1 /* 2 * Percepio DFM v2.0.0 3 * Copyright 2023 Percepio AB 4 * www.percepio.com 5 * 6 * SPDX-License-Identifier: Apache-2.0 7 */ 8 9 /** 10 * @file 11 * 12 * @brief DFM Defines 13 */ 14 15 /** 16 * @defgroup dfm_defines DFM Defines 17 * @ingroup dfm_apis 18 * @{ 19 */ 20 21 #ifndef DFM_DEFINES_H 22 #define DFM_DEFINES_H 23 24 #define DFM_SESSION_ID_MAX_LEN (32) 25 26 #define DFM_PAYLOAD_DESCRIPTION_MAX_LEN (16) 27 28 #define DFM_SUCCESS (0u) 29 #define DFM_FAIL (1u) 30 31 #define DFM_ENABLED (0x15152725UL) 32 #define DFM_DISABLED (0x71289203UL) 33 34 /* DFM Status Codes */ 35 #define DFM_STATUS_CODE_NOT_INITIALIZED (0u) 36 #define DFM_STATUS_CODE_OK (1u) 37 #define DFM_STATUS_CODE_TOO_SMALL_PAYLOAD_SIZE (2u) 38 #define DFM_STATUS_CODE_TOO_SMALL_FIRMWARE_VERSION_BUFFER (3u) 39 #define DFM_STATUS_CODE_MAX_SYMPTOMS_EXCEEDED (4u) 40 #define DFM_STATUS_CODE_NONVOLATILE_DATA_ALREADY_PRESENT (5u) 41 #define DFM_STATUS_CODE_GET_UNIQUE_SESSION_ID_FAILED (6u) 42 43 /** @} */ 44 45 #endif 46