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.
Fork of EFM32_SegmentLCD by
segmentlcd.h
00001 /**************************************************************************//** 00002 * @file 00003 * @brief EFM32 Segment LCD Display driver, header file 00004 * @version 3.20.9 00005 ****************************************************************************** 00006 * @section License 00007 * <b>(C) Copyright 2014 Silicon Labs, http://www.silabs.com</b> 00008 ******************************************************************************* 00009 * 00010 * This file is licensensed under the Silabs License Agreement. See the file 00011 * "Silabs_License_Agreement.txt" for details. Before using this software for 00012 * any purpose, you must agree to the terms of that agreement. 00013 * 00014 ******************************************************************************/ 00015 00016 00017 #ifndef __SEGMENTLCD_H 00018 #define __SEGMENTLCD_H 00019 00020 #include <stdint.h> 00021 #include <stdbool.h> 00022 00023 #if defined( TARGET_EFM32GG_STK3700 ) 00024 #include "segmentlcdconfig_stk_gg.h" 00025 #elif defined( TARGET_EFM32_G8XX_STK ) 00026 #include "segmentlcdconfig_stk_g.h" 00027 #elif defined( TARGET_EFM32LG_STK3600 ) 00028 #include "segmentlcdconfig_stk_lg.h" 00029 #elif defined( TARGET_EFM32TG_STK3300 ) 00030 #include "segmentlcdconfig_stk_tg.h" 00031 #elif defined( TARGET_EFM32WG_STK3800 ) 00032 #include "segmentlcdconfig_stk_wg.h" 00033 #elif defined( TARGET_EFM32ZG_STK3200 ) 00034 #error "No segment LCD available on the Zero Gecko STK." 00035 #elif defined( TARGET_EFM32HG_STK3400 ) 00036 #error "No segment LCD available on the Happy Gecko STK." 00037 #else 00038 #error "No EFM32 target STK defined." 00039 #endif 00040 00041 /***************************************************************************//** 00042 * @addtogroup Drivers 00043 * @{ 00044 ******************************************************************************/ 00045 00046 /***************************************************************************//** 00047 * @addtogroup SegmentLcd 00048 * @{ 00049 ******************************************************************************/ 00050 00051 #ifdef __cplusplus 00052 extern "C" { 00053 #endif 00054 00055 /* Regular functions */ 00056 void SegmentLCD_AllOff(void); 00057 void SegmentLCD_AllOn(void); 00058 void SegmentLCD_AlphaNumberOff(void); 00059 void SegmentLCD_ARing(int anum, int on); 00060 void SegmentLCD_Battery(int batteryLevel); 00061 void SegmentLCD_Disable(void); 00062 void SegmentLCD_EnergyMode(int em, int on); 00063 void SegmentLCD_Init(bool useBoost); 00064 void SegmentLCD_LowerHex( uint32_t num ); 00065 void SegmentLCD_LowerNumber( int num ); 00066 void SegmentLCD_Number(int value); 00067 void SegmentLCD_NumberOff(void); 00068 void SegmentLCD_Symbol(lcdSymbol s, int on); 00069 void SegmentLCD_UnsignedHex(uint16_t value); 00070 void SegmentLCD_Write(char *string); 00071 00072 #ifdef __cplusplus 00073 } 00074 #endif 00075 00076 /** @} (end group SegmentLcd) */ 00077 /** @} (end group Drivers) */ 00078 00079 #endif
Generated on Tue Jul 19 2022 15:26:32 by
1.7.2