/// <summary> /// Get the number of data bytes associated with the command /// </summary> /// <param name="command"></param> /// <returns></returns> static internal CompletionCode GetNumberOfDataBytesForCommand(PmBusCommand command, out byte numDataBytes) { numDataBytes = 0; TransactionType trType; if (commandTable.ContainsKey(command)) { trType = commandTable[command]; numDataBytes = GetNumberfOfDataBytesFromTransactionType(trType); return(CompletionCode.Success); } return(CompletionCode.InvalidCommand); }
/// <summary> /// Get the number of data bytes associated with the command /// </summary> /// <param name="command"></param> /// <returns></returns> internal static CompletionCode GetNumberOfDataBytesForCommand(PmBusCommand command, out byte numDataBytes) { numDataBytes = 0; TransactionType trType; if (commandTable.ContainsKey(command)) { trType = commandTable[command]; numDataBytes = GetNumberfOfDataBytesFromTransactionType(trType); return CompletionCode.Success; } return CompletionCode.InvalidCommand; }