예제 #1
0
        /// <summary>
        /// Get the string for log output.
        /// </summary>
        /// <param name="obj">Structure that you want to convert to a string</param>
        /// <returns>String for log output</returns>
        public static StringBuilder ConvertToLogString(LJV7IF_STORAGE_INFO storageInfo)
        {
            StringBuilder sb = new StringBuilder();

            string status = string.Empty;

            switch (storageInfo.byStatus)
            {
            case STORAGE_INFO_STATUS_EMPTY:
                status = @"EMPTY";
                break;

            case STORAGE_INFO_STATUS_STORING:
                status = @"STORING";
                break;

            case STORAGE_INFO_STATUS_FINISHED:
                status = @"FINISHED";
                break;

            default:
                status = @"UNEXPECTED";
                break;
            }
            sb.AppendLine(string.Format(@"  Status		: {0}", status));
            sb.AppendLine(string.Format(@"  ProgNo		: {0}", storageInfo.byProgramNo));
            string target = string.Empty;;

            switch (storageInfo.byTarget)
            {
            case STORAGE_INFO_TARGET_DATA:
                target = @"DATA";
                break;

            case STORAGE_INFO_TARGET_PROFILE:
                target = @"PROFILE";
                break;

            case STORAGE_INFO_TARGET_BATCH:
                target = @"BATCH PROFILE";
                break;

            default:
                target = @"UNEXPECTED";
                break;
            }
            sb.AppendLine(string.Format(@"  Target		: {0}", target));
            sb.Append(string.Format(@"  StorageCnt	: {0}", storageInfo.dwStorageCnt));

            return(sb);
        }
예제 #2
0
 internal static extern int LJV7IF_GetStorageBatchProfile(int lDeviceId,
                                                          ref LJV7IF_GET_BATCH_PROFILE_STORAGE_REQ pReq, ref LJV7IF_STORAGE_INFO pStorageInfo,
                                                          ref LJV7IF_GET_BATCH_PROFILE_STORAGE_RSP pRes, ref LJV7IF_PROFILE_INFO pProfileInfo,
                                                          IntPtr pdwData, uint dwDataSize, ref uint pTimeOffset, [Out] LJV7IF_MEASURE_DATA[] pMeasureData);
예제 #3
0
 internal static extern int LJV7IF_GetStorageProfile(int lDeviceId, ref LJV7IF_GET_STORAGE_REQ pReq,
                                                     ref LJV7IF_STORAGE_INFO pStorageInfo, ref LJV7IF_GET_STORAGE_RSP pRes,
                                                     ref LJV7IF_PROFILE_INFO pProfileInfo, IntPtr pdwData, uint dwDataSize);
예제 #4
0
 internal static extern int LJV7IF_GetStorageData(int lDeviceId, ref LJV7IF_GET_STORAGE_REQ pReq,
                                                  ref LJV7IF_STORAGE_INFO pStorageInfo, ref LJV7IF_GET_STORAGE_RSP pRsp, IntPtr pdwData, uint dwDataSize);
예제 #5
0
 internal static extern int LJV7IF_GetStorageStatus(int lDeviceId, ref LJV7IF_GET_STRAGE_STATUS_REQ pReq,
                                                    ref LJV7IF_GET_STRAGE_STATUS_RSP pRsp, ref LJV7IF_STORAGE_INFO pStorageInfo);