![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
SmartMesh QSL for STM32F4 version
Fork of COG-AD4050_QSL by
sm_clib/dn_common.h@1:b909b8399252, 2018-07-12 (annotated)
- Committer:
- APS_Lab
- Date:
- Thu Jul 12 09:19:12 2018 +0000
- Revision:
- 1:b909b8399252
- Parent:
- 0:8ca1e814a851
SmartMesh for STM32F4 version
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
APS_Lab | 0:8ca1e814a851 | 1 | /* |
APS_Lab | 0:8ca1e814a851 | 2 | Copyright (c) 2014, Dust Networks. All rights reserved. |
APS_Lab | 0:8ca1e814a851 | 3 | |
APS_Lab | 0:8ca1e814a851 | 4 | Commmon definitions. |
APS_Lab | 0:8ca1e814a851 | 5 | |
APS_Lab | 0:8ca1e814a851 | 6 | \license See attached DN_LICENSE.txt. |
APS_Lab | 0:8ca1e814a851 | 7 | */ |
APS_Lab | 0:8ca1e814a851 | 8 | |
APS_Lab | 0:8ca1e814a851 | 9 | #ifndef DN_COMMON_H |
APS_Lab | 0:8ca1e814a851 | 10 | #define DN_COMMON_H |
APS_Lab | 0:8ca1e814a851 | 11 | |
APS_Lab | 0:8ca1e814a851 | 12 | #include "inttypes.h" |
APS_Lab | 0:8ca1e814a851 | 13 | #include <stdbool.h> |
APS_Lab | 0:8ca1e814a851 | 14 | #include <string.h> |
APS_Lab | 0:8ca1e814a851 | 15 | |
APS_Lab | 0:8ca1e814a851 | 16 | //=========================== defines ========================================= |
APS_Lab | 0:8ca1e814a851 | 17 | |
APS_Lab | 0:8ca1e814a851 | 18 | #ifndef TRUE |
APS_Lab | 0:8ca1e814a851 | 19 | #define TRUE 1 |
APS_Lab | 0:8ca1e814a851 | 20 | #endif |
APS_Lab | 0:8ca1e814a851 | 21 | |
APS_Lab | 0:8ca1e814a851 | 22 | #ifndef FALSE |
APS_Lab | 0:8ca1e814a851 | 23 | #define FALSE 0 |
APS_Lab | 0:8ca1e814a851 | 24 | #endif |
APS_Lab | 0:8ca1e814a851 | 25 | |
APS_Lab | 0:8ca1e814a851 | 26 | // error codes |
APS_Lab | 0:8ca1e814a851 | 27 | typedef enum { |
APS_Lab | 0:8ca1e814a851 | 28 | DN_ERR_NONE = 0, |
APS_Lab | 0:8ca1e814a851 | 29 | DN_ERR_BUSY, |
APS_Lab | 0:8ca1e814a851 | 30 | DN_ERR_NOT_CONNECTED, // only used in SmartMesh IP Manager |
APS_Lab | 0:8ca1e814a851 | 31 | DN_ERR_ALREADY, |
APS_Lab | 0:8ca1e814a851 | 32 | DN_ERR_MALFORMED |
APS_Lab | 0:8ca1e814a851 | 33 | } dn_err_t; |
APS_Lab | 0:8ca1e814a851 | 34 | |
APS_Lab | 0:8ca1e814a851 | 35 | //=== API return type |
APS_Lab | 0:8ca1e814a851 | 36 | |
APS_Lab | 0:8ca1e814a851 | 37 | //=========================== typedef ========================================= |
APS_Lab | 0:8ca1e814a851 | 38 | |
APS_Lab | 0:8ca1e814a851 | 39 | #endif |
APS_Lab | 0:8ca1e814a851 | 40 |