Darien Figueroa / Mbed 2 deprecated repo3

Dependencies:   mbed MAX14720 MAX30205 USBDevice

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers IFileLogView.cs Source File

IFileLogView.cs

00001 /*******************************************************************************
00002 * Copyright (C) 2016 Maxim Integrated Products, Inc., All rights Reserved.
00003 * 
00004 * This software is protected by copyright laws of the United States and
00005 * of foreign countries. This material may also be protected by patent laws
00006 * and technology transfer regulations of the United States and of foreign
00007 * countries. This software is furnished under a license agreement and/or a
00008 * nondisclosure agreement and may only be used or reproduced in accordance
00009 * with the terms of those agreements. Dissemination of this information to
00010 * any party or parties not specified in the license agreement and/or
00011 * nondisclosure agreement is expressly prohibited.
00012 *
00013 * The above copyright notice and this permission notice shall be included
00014 * in all copies or substantial portions of the Software.
00015 *
00016 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
00017 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
00018 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
00019 * IN NO EVENT SHALL MAXIM INTEGRATED BE LIABLE FOR ANY CLAIM, DAMAGES
00020 * OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
00021 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
00022 * OTHER DEALINGS IN THE SOFTWARE.
00023 *
00024 * Except as contained in this notice, the name of Maxim Integrated
00025 * Products, Inc. shall not be used except as stated in the Maxim Integrated
00026 * Products, Inc. Branding Policy.
00027 *
00028 * The mere transfer of this software does not imply any licenses
00029 * of trade secrets, proprietary technology, copyrights, patents,
00030 * trademarks, maskwork rights, or any other form of intellectual
00031 * property whatsoever. Maxim Integrated Products, Inc. retains all
00032 * ownership rights.
00033 *******************************************************************************
00034 */
00035 
00036 using System;
00037 using System.Collections.Generic;
00038 using System.Linq;
00039 using System.Text;
00040 using System.Threading.Tasks;
00041 
00042 //using Maxim.Global;
00043 
00044 namespace MAX30205EVKit.View
00045 {
00046     //public delegate void StartStopHandler(object sender, EventArgs e);
00047 
00048     /// <summary>
00049     /// View Interface which supports streaming data
00050     /// </summary>
00051     public interface IFileLogView
00052     {
00053         bool Enable { get; set; } // Some views can be disabled such as file
00054 
00055         /// <summary>
00056         /// Set start time for data
00057         /// </summary>
00058         DateTime StartTime { set; }
00059 
00060         /// <summary>
00061         /// Occurs when error from hardware
00062         /// </summary>
00063 //        event EventHandler<ErrorEventArgs> Error;
00064 
00065         //event EventHandler<PartialArrayIntAvailableEventArgs> PartialArrayIntAvailable;
00066 
00067         bool SelectCSVFile(string fileName);
00068 
00069         bool SelectCSVFile(string fileName, DateTime time);
00070 
00071         /// <summary>
00072         /// Notify the start or stop of streaming
00073         /// </summary>
00074         void StreamStartStop(int channelCount);
00075 
00076         /// <summary>
00077         /// Write string to file
00078         /// </summary>
00079         /// <param name="str"></param>
00080         void WriteLine(string str);
00081 
00082         /// <summary>
00083         /// Write Temperature Data to CSV file
00084         /// </summary>
00085         void WriteTemp(double time, double tempr);
00086     }
00087 }