ThingPlug GMMP library for mbed
Dependents: ThingPlug_WiFi_Example
Util/GMMP_Util.h@4:bb6c1ee1d5f0, 2015-08-13 (annotated)
- Committer:
- lesmin
- Date:
- Thu Aug 13 07:04:29 2015 +0000
- Revision:
- 4:bb6c1ee1d5f0
- Parent:
- 0:32c20cfb2b30
added NTP error return
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
lesmin | 0:32c20cfb2b30 | 1 | /** GMMP에 사용되는 Util 함수 |
lesmin | 0:32c20cfb2b30 | 2 | * @file GMMP_Util.h |
lesmin | 0:32c20cfb2b30 | 3 | * @date 2013/11/21 |
lesmin | 0:32c20cfb2b30 | 4 | * @version 0.0.0.1 |
lesmin | 0:32c20cfb2b30 | 5 | **/ |
lesmin | 0:32c20cfb2b30 | 6 | #ifndef GMMP_UTIL_H_ |
lesmin | 0:32c20cfb2b30 | 7 | #define GMMP_UTIL_H_ |
lesmin | 0:32c20cfb2b30 | 8 | /** |
lesmin | 0:32c20cfb2b30 | 9 | *@brief 라이브러리를 사용중인 플랫폼 시스템이 big-endian, little-endian인지 확인한다. |
lesmin | 0:32c20cfb2b30 | 10 | * @return big-endian : 0, little-endian : 1 |
lesmin | 0:32c20cfb2b30 | 11 | */ |
lesmin | 0:32c20cfb2b30 | 12 | int IsBigEndianSystem(void); //big endian system check |
lesmin | 0:32c20cfb2b30 | 13 | |
lesmin | 0:32c20cfb2b30 | 14 | /** |
lesmin | 0:32c20cfb2b30 | 15 | * @brief short형 변수의 정보를 리틀엔디언 에서 빅엔디언으로 변경 |
lesmin | 0:32c20cfb2b30 | 16 | * @param nShort |
lesmin | 0:32c20cfb2b30 | 17 | */ |
lesmin | 0:32c20cfb2b30 | 18 | short ltobs(const short nShort); //little endian to big endian for short |
lesmin | 0:32c20cfb2b30 | 19 | |
lesmin | 0:32c20cfb2b30 | 20 | /** |
lesmin | 0:32c20cfb2b30 | 21 | * @brief short형 변수의 정보를 빅엔디언에서 리틀엔디언으로 변경 |
lesmin | 0:32c20cfb2b30 | 22 | * @param nShort |
lesmin | 0:32c20cfb2b30 | 23 | */ |
lesmin | 0:32c20cfb2b30 | 24 | short btols(const short nShort); |
lesmin | 0:32c20cfb2b30 | 25 | |
lesmin | 0:32c20cfb2b30 | 26 | /** |
lesmin | 0:32c20cfb2b30 | 27 | * @brief short형 변수의 정보 변환 내부 함수 |
lesmin | 0:32c20cfb2b30 | 28 | * @param nShort |
lesmin | 0:32c20cfb2b30 | 29 | */ |
lesmin | 0:32c20cfb2b30 | 30 | short _btols(const short nShort); |
lesmin | 0:32c20cfb2b30 | 31 | |
lesmin | 0:32c20cfb2b30 | 32 | /** |
lesmin | 0:32c20cfb2b30 | 33 | * @brief int형 변수의 정보를 리틀엔디언 에서 빅엔디언으로 변경 |
lesmin | 0:32c20cfb2b30 | 34 | * @param nInt |
lesmin | 0:32c20cfb2b30 | 35 | * @return |
lesmin | 0:32c20cfb2b30 | 36 | */ |
lesmin | 0:32c20cfb2b30 | 37 | long ltobi(const long nInt); |
lesmin | 0:32c20cfb2b30 | 38 | |
lesmin | 0:32c20cfb2b30 | 39 | /** |
lesmin | 0:32c20cfb2b30 | 40 | * @brief int형 변수의 정보를 빅엔디언에서 리틀엔디언으로 변경 |
lesmin | 0:32c20cfb2b30 | 41 | * @param nInt |
lesmin | 0:32c20cfb2b30 | 42 | * @return |
lesmin | 0:32c20cfb2b30 | 43 | */ |
lesmin | 0:32c20cfb2b30 | 44 | long btoli(const long nInt); |
lesmin | 0:32c20cfb2b30 | 45 | |
lesmin | 0:32c20cfb2b30 | 46 | /** |
lesmin | 0:32c20cfb2b30 | 47 | * @brief int형 변수의 정보 변환 내부 함수 |
lesmin | 0:32c20cfb2b30 | 48 | * @param nInt |
lesmin | 0:32c20cfb2b30 | 49 | * @return |
lesmin | 0:32c20cfb2b30 | 50 | */ |
lesmin | 0:32c20cfb2b30 | 51 | long _ltobi(const long nInt); |
lesmin | 0:32c20cfb2b30 | 52 | |
lesmin | 0:32c20cfb2b30 | 53 | int freeRam(); |
lesmin | 0:32c20cfb2b30 | 54 | |
lesmin | 0:32c20cfb2b30 | 55 | #endif /* GMMP_UTIL_H_ */ |