/// <summary> /// Packs this <see cref="PlaybackOp"/> 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 PlaybackOp op) { return(ChannelOp((byte)op)); }
/// <summary> /// Creates a playback command over this controller's channel. /// </summary> /// <param name="op">The playback op code for this command.</param> /// <param name="modeFlag">Optional mode flag (off by default).</param> /// <returns>A <see cref="PlaybackCommand" /> with this controller's channel and the given op and mode flag.</returns> private PlaybackCommand PlaybackCommand(PlaybackOp op, bool modeFlag = false) { return(new PlaybackCommand(op, _channelId, modeFlag)); }