Ejemplo n.º 1
0
 /// <summary>
 ///     Packs this <see cref="PlaylistOp"/> into its BapsNet representation
 /// </summary>
 /// <param name="op">The opcode to pack.</param>
 /// <returns>
 ///     The bit-pattern of <see cref="op"/> in a packed BapsNet command word,
 ///     less its group code.
 /// </returns>
 public static ushort ToWordBits(this PlaylistOp op)
 {
     return(ChannelOp((byte)op));
 }
Ejemplo n.º 2
0
 /// <summary>
 ///     Creates a playlist command over this controller's channel.
 /// </summary>
 /// <param name="op">The playlist op code for this command.</param>
 /// <param name="modeFlag">Optional mode flag (off by default).</param>
 /// <returns>A <see cref="PlaylistCommand" /> with this controller's channel and the given op and mode flag.</returns>
 private PlaylistCommand PlaylistCommand(PlaylistOp op, bool modeFlag = false)
 {
     return(new PlaylistCommand(op, _channelId, modeFlag));
 }