示例#1
0
文件: CC2540.cs 项目: mihazet/smartag
 /*
  * END OF COMMDND REQUESTS
  */
 private void SetCmdType(byte[] buf, CC2540_HDC.CommandType type)
 {
     buf[0] = (byte) type;
 }
示例#2
0
文件: CC2540.cs 项目: mihazet/smartag
 private void SetProfileRole(byte[] buf, CC2540_HDC.GAPProfileRole role)
 {
     buf[4] = (byte) role;
 }
示例#3
0
文件: CC2540.cs 项目: mihazet/smartag
 private void SetCmd(byte[] buf, CC2540_HDC.Cmd cmd)
 {
     buf[1] = (byte) (((ushort) cmd) & 0xFF);
     buf[2] = (byte) ((((ushort) cmd) >> 8) & 0xFF);
 }