zigbee 协议栈数据类型及转换
zigbee数据类型转换
数字->字符串:
uint8 str[6];
shortAddr=19233;
_itoa(shortAddr,str,10);//str="19232",10进制
字符串->数字:
本地数据类型定义:
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;