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;

posted on 2013-03-16 03:26  _song  阅读(798)  评论(0编辑  收藏  举报