Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
ITemperatureView.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 System.Windows.Forms; 00043 using HealthSensorPlatform; 00044 00045 namespace MAX30205EVKit.View 00046 { 00047 interface ITemperatureView 00048 { 00049 bool UnitsCelsius { get; } 00050 00051 int RefreshRate { get; set; } 00052 00053 event EventHandler<EventArgs> ReadAll; 00054 event EventHandler<EventArgs> UnitsChanged; 00055 event EventHandler<TemperatureEventArgs> OverTemperatureChanged; 00056 event EventHandler<TemperatureEventArgs> HystersisChanged; 00057 event EventHandler<DataFormatEventArgs> DataFormatChanged; 00058 event EventHandler<WriteRegisterEventArgs> WriteRegister; 00059 event EventHandler<EventArgs> RequestReadTemperature; 00060 00061 void DisplayTemperature(int index, TemperatureValue temperature); 00062 void DisplayOverTemperature(int index, TemperatureValue temperature); 00063 void DisplayHysteresis(int index, TemperatureValue temperature); 00064 void DisplayConfigurationRegister(int index, int hex); 00065 00066 void DisplayError(Control control, string message); 00067 } 00068 00069 public class WriteRegisterEventArgs : EventArgs 00070 { 00071 public int Index; 00072 public int Register; 00073 public int Data; 00074 } 00075 00076 public class TemperatureEventArgs : EventArgs 00077 { 00078 public int Index; 00079 public double Temperature; 00080 public TextBox Control; 00081 } 00082 }
Generated on Tue Jul 12 2022 21:52:39 by
1.7.2