SegmentLcd#

Modules#

sl_segment_lcd_char_t

sl_segment_lcd_number_t

sl_segment_lcd_em_t

sl_segment_lcd_aring_t

sl_segment_lcd_battery_t

sl_segment_lcd_array_t

sl_segment_lcd_block_t

Functions#

void

Defines prototype for all segments in display.

void

Enable all segments.

void

Turn all segments on alpha characters in display off.

void
sl_segment_lcd_init(bool use_boost)

Segment LCD Initialization routine for EFM32 STK display.

void

Write number on numeric part on Segment LCD display.

void
sl_segment_lcd_temp_display(int32_t temp_data)

Write temperature on Segment LCD display.

void

Turn all segments on numeric digits in display off.

void
sl_segment_lcd_symbol(sl_segment_lcd_symbol_t s, int on)

Light up or shut off various symbols on Segment LCD.

void

Write hexadecimal number on numeric part on Segment LCD display.

Function Documentation#

sl_segment_lcd_all_off#

void sl_segment_lcd_all_off (void )

Defines prototype for all segments in display.

Parameters
N/A

ENUMS ************************************

Defines segment lcd block modes FUNCTIONS ***********************************

Disable all segments


Definition at line 278 of file hardware/driver/segment_lcd/inc/sl_segmentlcd.h

sl_segment_lcd_all_on#

void sl_segment_lcd_all_on (void )

Enable all segments.

Parameters
N/A

Definition at line 283 of file hardware/driver/segment_lcd/inc/sl_segmentlcd.h

sl_segment_lcd_disable#

void sl_segment_lcd_disable (void )

Turn all segments on alpha characters in display off.

Parameters
N/A

Disables LCD controller


Definition at line 295 of file hardware/driver/segment_lcd/inc/sl_segmentlcd.h

sl_segment_lcd_init#

void sl_segment_lcd_init (bool use_boost)

Segment LCD Initialization routine for EFM32 STK display.

Parameters
[in]use_boost

Set to use voltage boost


Definition at line 302 of file hardware/driver/segment_lcd/inc/sl_segmentlcd.h

sl_segment_lcd_number#

void sl_segment_lcd_number (int value)

Write number on numeric part on Segment LCD display.

Parameters
[in]value

Numeric value to put on display, in range -999 to +9999


Definition at line 327 of file hardware/driver/segment_lcd/inc/sl_segmentlcd.h

sl_segment_lcd_temp_display#

void sl_segment_lcd_temp_display (int32_t temp_data)

Write temperature on Segment LCD display.

Parameters
[in]temp_data

value to put on display, in range -40000 to +125000

The following function are written to handle the cases when the sensor measures negative temperature values, three digit temperature values, and temperature values from 0-100 degrees Celsius. Keep in mind, the Si7021 part has an operating temperature range of -40 to +125 degrees Celsius. The temp_data variable stores a temperature read by the Si7021 that is multiplied by a factor of 1000. In order to display the temperature correctly in the negative and three digit cases, the temp_data variable must be divided by 10 to remove one digit from the variable. Without this, the value of temp_data passed to the SegmentLCD_Number() function may be higher than the max value the Segment LCD could display.


Definition at line 343 of file hardware/driver/segment_lcd/inc/sl_segmentlcd.h

sl_segment_lcd_number_off#

void sl_segment_lcd_number_off (void )

Turn all segments on numeric digits in display off.

Parameters
N/A

Definition at line 348 of file hardware/driver/segment_lcd/inc/sl_segmentlcd.h

sl_segment_lcd_symbol#

void sl_segment_lcd_symbol (sl_segment_lcd_symbol_t s, int on)

Light up or shut off various symbols on Segment LCD.

Parameters
[in]s

Which symbol to turn on or off

[in]on

Zero is off, non-zero is on


Definition at line 356 of file hardware/driver/segment_lcd/inc/sl_segmentlcd.h

sl_segment_lcd_unsigned_hex#

void sl_segment_lcd_unsigned_hex (uint32_t value)

Write hexadecimal number on numeric part on Segment LCD display.

Parameters
[in]value

Numeric value to put on display


Definition at line 363 of file hardware/driver/segment_lcd/inc/sl_segmentlcd.h