zigbee 协议栈数据类型及转换

来源:互联网 发布:手机photoshop软件 编辑:程序博客网 时间:2024/05/16 01:49
zigbee数据类型转换
数字->字符串:
uint8 str[6];
shortAddr=19233;
_itoa(shortAddr,str,10);//str="19232",10进制

字符串->数字:


本地数据类型定义:
[cpp] view plaincopy
  1. hal_types.c  
  2. typedef signed   char   int8;  
  3. typedef unsigned char   uint8;  
  4.   
  5. typedef signed   short  int16;  
  6. typedef unsigned short  uint16;  
  7.   
  8. typedef signed   long   int32;  
  9. typedef unsigned long   uint32;  
  10.   
  11. typedef unsigned char   bool;  
uint16 panId;
uint16 shortAddress;
uint8  ieeeAddr[8];
uint8  endpoint;
uint16 profileID;
原创粉丝点击