EFR32 Mighty Gecko 1 Software Documentation  efr32mg1-doc-5.1.2
segmentlcd.h
Go to the documentation of this file.
1 /**************************************************************************/
17 #ifndef SEGMENTLCD_H
18 #define SEGMENTLCD_H
19 
20 #include "segmentlcdconfig.h"
21 
22 /***************************************************************************/
27 /***************************************************************************/
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
36 /*******************************************************************************
37  ******************************* DEFINES ***********************************
38  ******************************************************************************/
39 
40 #define SEGMENT_LCD_BLOCK_MODE_BLANK 0
41 #define SEGMENT_LCD_BLOCK_MODE_FILL 1
42 #define SEGMENT_LCD_BLOCK_MODE_OUTLINE 2
43 #define SEGMENT_LCD_BLOCK_MODE_OUTLINE_FILL 3
44 
45 #define SEGMENT_LCD_NUM_BLOCK_COLUMNS 7
46 
47 /*******************************************************************************
48  ******************************** ENUMS ************************************
49  ******************************************************************************/
50 
51 typedef enum
52 {
53  segmentLCDBlockModeBlank = SEGMENT_LCD_BLOCK_MODE_BLANK,
54  segmentLCDBlockModeFill = SEGMENT_LCD_BLOCK_MODE_FILL,
55  segmentLCDBlockModeOutline = SEGMENT_LCD_BLOCK_MODE_OUTLINE,
56  segmentLCDBlockModeOutlineFill = SEGMENT_LCD_BLOCK_MODE_OUTLINE_FILL,
59 
60 /*******************************************************************************
61  ******************************* FUNCTIONS ***********************************
62  ******************************************************************************/
63 
64 /* Regular functions */
65 void SegmentLCD_AllOff(void);
66 void SegmentLCD_AllOn(void);
67 void SegmentLCD_AlphaNumberOff(void);
68 void SegmentLCD_ARing(int anum, int on);
69 void SegmentLCD_Battery(int batteryLevel);
70 void SegmentLCD_Block(
71  SegmentLCD_BlockMode_TypeDef topMode[SEGMENT_LCD_NUM_BLOCK_COLUMNS],
72  SegmentLCD_BlockMode_TypeDef botMode[SEGMENT_LCD_NUM_BLOCK_COLUMNS]);
73 void SegmentLCD_Disable(void);
74 void SegmentLCD_EnergyMode(int em, int on);
75 void SegmentLCD_Init(bool useBoost);
76 void SegmentLCD_LowerHex( uint32_t num );
77 void SegmentLCD_LowerNumber( int num );
78 void SegmentLCD_Number(int value);
79 void SegmentLCD_NumberOff(void);
80 void SegmentLCD_Symbol(lcdSymbol s, int on);
81 void SegmentLCD_UnsignedHex(uint16_t value);
82 void SegmentLCD_Write(const char *string);
83 
84 #ifdef __cplusplus
85 }
86 #endif
87 
91 #endif
void SegmentLCD_LowerNumber(int num)
Write number on lower alphanumeric part of Segment LCD display.
Definition: segmentlcd.c:557
void SegmentLCD_Write(const char *string)
Write text on LCD display.
Definition: segmentlcd.c:843
SegmentLCD_BlockMode_TypeDef
Definition: segmentlcd.h:51
void SegmentLCD_Symbol(lcdSymbol s, int on)
Light up or shut off various symbols on Segment LCD.
Definition: segmentlcd.c:671
void SegmentLCD_NumberOff(void)
Turn all segments on numeric digits in display off.
Definition: segmentlcd.c:658
void SegmentLCD_AllOff(void)
Disable all segments.
Definition: segmentlcd.c:318
void SegmentLCD_AllOn(void)
Enable all segments.
Definition: segmentlcd.c:328
void SegmentLCD_EnergyMode(int em, int on)
Light up or shut off Energy Mode indicator.
Definition: segmentlcd.c:454
void SegmentLCD_ARing(int anum, int on)
Light up or shut off Ring of Indicators.
Definition: segmentlcd.c:349
void SegmentLCD_AlphaNumberOff(void)
Turn all segments on alpha characters in display off.
Definition: segmentlcd.c:337
void SegmentLCD_LowerHex(uint32_t num)
Write a hexadecimal number on lower alphanumeric part of Segment LCD display.
Definition: segmentlcd.c:526
void SegmentLCD_Battery(int batteryLevel)
Light up or shut off Battery Indicator.
Definition: segmentlcd.c:371
void SegmentLCD_Number(int value)
Write number on numeric part on Segment LCD display.
Definition: segmentlcd.c:597
void SegmentLCD_Init(bool useBoost)
Segment LCD Initialization routine for EFM32 STK display.
Definition: segmentlcd.c:476
void SegmentLCD_UnsignedHex(uint16_t value)
Write hexadecimal number on numeric part on Segment LCD display.
Definition: segmentlcd.c:799
void SegmentLCD_Disable(void)
Disables LCD controller.
Definition: segmentlcd.c:433