/* * END OF COMMDND REQUESTS */ private void SetCmdType(byte[] buf, CC2540_HDC.CommandType type) { buf[0] = (byte) type; }
private void SetProfileRole(byte[] buf, CC2540_HDC.GAPProfileRole role) { buf[4] = (byte) role; }
private void SetCmd(byte[] buf, CC2540_HDC.Cmd cmd) { buf[1] = (byte) (((ushort) cmd) & 0xFF); buf[2] = (byte) ((((ushort) cmd) >> 8) & 0xFF); }