zigbee 协议栈数据类型及转换
生活随笔
收集整理的這篇文章主要介紹了
zigbee 协议栈数据类型及转换
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
zigbee數據類型轉換
數字->字符串:
uint8 str[6];
shortAddr=19233;
_itoa(shortAddr,str,10);//str="19232",10進制
字符串->數字:
本地數據類型定義:
hal_types.c typedef signed char int8; typedef unsigned char uint8;typedef signed short int16; typedef unsigned short uint16;typedef signed long int32; typedef unsigned long uint32;typedef unsigned char bool;uint16 panId;
uint16 shortAddress;
uint8 ?ieeeAddr[8];
uint8 ?endpoint;
uint16 profileID;
數字->字符串:
uint8 str[6];
shortAddr=19233;
_itoa(shortAddr,str,10);//str="19232",10進制
字符串->數字:
本地數據類型定義:
hal_types.c typedef signed char int8; typedef unsigned char uint8;typedef signed short int16; typedef unsigned short uint16;typedef signed long int32; typedef unsigned long uint32;typedef unsigned char bool;uint16 panId;
uint16 shortAddress;
uint8 ?ieeeAddr[8];
uint8 ?endpoint;
uint16 profileID;
轉載于:https://www.cnblogs.com/-song/archive/2013/03/16/3331819.html
總結
以上是生活随笔為你收集整理的zigbee 协议栈数据类型及转换的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 使用ILmerge合并Exe、Dll文件
- 下一篇: Example3_3(if-else语句