Skip to content
This repository has been archived by the owner on Mar 20, 2023. It is now read-only.

Commit

Permalink
Added more comments
Browse files Browse the repository at this point in the history
  • Loading branch information
nefarius committed Aug 8, 2015
1 parent a957ed3 commit 206b5ab
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions ScpControl/BthConnection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,13 @@ public virtual byte[] Set(L2CAP.PSM connectionType, byte[] handle)
return Set(connectionType, handle[0], handle[1]);
}

/// <summary>
/// Destination Channel Identifier.
/// </summary>
/// <remarks>Used as the device local end point for an L2CAP transmission. It represents the channel endpoint on the device receiving the message. It is a device local name only. See also SCID.</remarks>
/// <param name="lsb"></param>
/// <param name="msb"></param>
/// <returns></returns>
public virtual byte[] Get_DCID(byte lsb, byte msb)
{
if (m_L2CAP_Cmd_Handle[0].Equals(lsb, msb))
Expand All @@ -156,6 +163,12 @@ public virtual byte[] Get_DCID(byte lsb, byte msb)
throw new Exception("L2CAP DCID Not Found");
}

/// <summary>
/// Destination Channel Identifier.
/// </summary>
/// <remarks>Used as the device local end point for an L2CAP transmission. It represents the channel endpoint on the device receiving the message. It is a device local name only. See also SCID.</remarks>
/// <param name="connectionType"></param>
/// <returns></returns>
public virtual byte[] Get_DCID(L2CAP.PSM connectionType)
{
switch (connectionType)
Expand All @@ -176,6 +189,13 @@ public virtual byte[] Get_DCID(L2CAP.PSM connectionType)
throw new Exception("Invalid L2CAP Connection Type");
}

/// <summary>
/// Source Channel Identifier.
/// </summary>
/// <remarks>Used in the L2CAP layer to indicate the channel endpoint on the device sending the L2CAP message. It is a device local name only.</remarks>
/// <param name="lsb"></param>
/// <param name="msb"></param>
/// <returns></returns>
public virtual byte[] Get_SCID(byte lsb, byte msb)
{
try
Expand Down Expand Up @@ -217,6 +237,12 @@ public virtual byte[] Get_SCID(byte lsb, byte msb)
throw new Exception("L2CAP SCID Not Found");
}

/// <summary>
/// Source Channel Identifier.
/// </summary>
/// <remarks>Used in the L2CAP layer to indicate the channel endpoint on the device sending the L2CAP message. It is a device local name only.</remarks>
/// <param name="connectionType"></param>
/// <returns>Source Channel Identifier.</returns>
public virtual byte[] Get_SCID(L2CAP.PSM connectionType)
{
switch (connectionType)
Expand Down

0 comments on commit 206b5ab

Please sign in to comment.