38 #if defined(LCD_COUNT) && (LCD_COUNT > 0)
71 #if defined(LCD_DISPCTRL_MUXE_MUXE)
88 #if defined(LCD_DISPCTRL_BIAS_ONEFOURTH)
90 lcdBiasOneFourth = LCD_DISPCTRL_BIAS_ONEFOURTH,
162 #if defined(_LCD_SEGD0L_MASK) && (_LCD_SEGD0L_MASK == 0x00FFFFFFUL)
230 #if defined(LCD_BACTRL_ALOC)
265 #define LCD_INIT_DEFAULT \
288 #if defined(_LCD_SEGD0H_MASK)
294 #if defined(LCD_CTRL_DSC)
295 void LCD_BiasSegmentSet(
int segment,
int biasLevel);
296 void LCD_BiasComSet(
int com,
int biasLevel);
457 return LCD->SYNCBUSY;
470 while (
LCD->SYNCBUSY & flags)
516 return LCD->IF & ien;
580 #if defined(LCD_CTRL_DSC)
590 __STATIC_INLINE
void LCD_DSCEnable(
bool enable)
594 LCD->CTRL |= LCD_CTRL_DSC;
598 LCD->CTRL &= ~LCD_CTRL_DSC;
__STATIC_INLINE uint32_t LCD_IntGet(void)
Get pending LCD interrupt flags.
#define LCD_DISPCTRL_VBLEV_LEVEL5
LCD_ConConf_TypeDef contrast
#define _LCD_BACTRL_AREGASC_SHIFTLEFT
#define LCD_DISPCTRL_VBLEV_LEVEL7
#define LCD_FREEZE_REGFREEZE_UPDATE
__STATIC_INLINE uint32_t LCD_SyncBusyGet(void)
Returns SYNCBUSY bits, indicating which registers have pending updates.
#define _LCD_BACTRL_AREGASC_SHIFTRIGHT
void LCD_VBoostSet(LCD_VBoostLevel_TypeDef vboost)
Configure voltage booster.
#define LCD_DISPCTRL_MUX_TRIPLEX
#define LCD_DISPCTRL_VBLEV_LEVEL3
#define _LCD_STATUS_ASTATE_MASK
void LCD_SegmentSetLow(int com, uint32_t mask, uint32_t bits)
Updates the 0-31 lowest segments on a given COM-line in one operation, according to bit mask...
void LCD_SegmentRangeEnable(LCD_SegmentRange_TypeDef segment, bool enable)
Enables update of this range of LCD segment lines.
#define LCD_DISPCTRL_BIAS_STATIC
#define LCD_DISPCTRL_CONCONF_VLCD
#define LCD_DISPCTRL_VLCDSEL_VDD
LCD_AnimShift_TypeDef BShift
CMSIS Cortex-M Peripheral Access Layer for Silicon Laboratories microcontroller devices.
void LCD_FrameCountInit(const LCD_FrameCountInit_TypeDef *fcInit)
Initialize LCD Frame Counter.
void LCD_SegmentSet(int com, int bit, bool enable)
Turn on or clear a segment.
#define LCD_BACTRL_FCPRESC_DIV2
void LCD_VLCDSelect(LCD_VLCDSel_TypeDef vlcd)
Select source for VLCD.
__STATIC_INLINE void LCD_FrameCountEnable(bool enable)
Enables or disables LCD Frame Control.
void LCD_UpdateCtrl(LCD_UpdateCtrl_TypeDef ud)
Configure Update Control.
LCD_FCPreScale_TypeDef prescale
#define LCD_DISPCTRL_VBLEV_LEVEL1
__STATIC_INLINE void LCD_IntSet(uint32_t flags)
Set one or more pending LCD interrupts from SW.
#define LCD_DISPCTRL_VLCDSEL_VEXTBOOST
#define LCD_CTRL_UDCTRL_REGULAR
__STATIC_INLINE int LCD_BlinkState(void)
Returns current blink state.
#define LCD_DISPCTRL_MUX_STATIC
void LCD_SegmentSetHigh(int com, uint32_t mask, uint32_t bits)
Updated the high (32-39) segments on a given COM-line in one operation.
#define LCD_DISPCTRL_MUX_DUPLEX
#define LCD_CTRL_UDCTRL_FRAMESTART
#define _LCD_STATUS_ASTATE_SHIFT
#define LCD_BACTRL_BLINKEN
__STATIC_INLINE void LCD_IntClear(uint32_t flags)
Clear one or more interrupt flags.
__STATIC_INLINE int LCD_AnimState(void)
Returns current animation state.
#define LCD_DISPCTRL_BIAS_ONETHIRD
#define _LCD_STATUS_BLINK_MASK
#define LCD_DISPCTRL_MUX_QUADRUPLEX
#define _LCD_BACTRL_AREGASC_NOSHIFT
LCD_AnimShift_TypeDef AShift
#define LCD_DISPCTRL_VBLEV_LEVEL4
#define LCD_BACTRL_FCPRESC_DIV8
void LCD_ContrastSet(int level)
Configure contrast level on LCD panel.
__STATIC_INLINE void LCD_FreezeEnable(bool enable)
When set, LCD registers will not be updated until cleared,.
__STATIC_INLINE void LCD_IntEnable(uint32_t flags)
Enable LCD interrupts.
LCD_AnimLogic_TypeDef animLogic
#define LCD_CTRL_UDCTRL_FCEVENT
#define LCD_DISPCTRL_BIAS_ONEHALF
#define LCD_BACTRL_ALOGSEL_AND
#define LCD_DISPCTRL_VBLEV_LEVEL6
__STATIC_INLINE void LCD_BlankEnable(bool enable)
Disables all segments, while keeping segment state.
#define LCD_BACTRL_FCPRESC_DIV1
#define LCD_DISPCTRL_VBLEV_LEVEL2
#define LCD_DISPCTRL_WAVE_LOWPOWER
#define LCD_BACTRL_FCPRESC_DIV4
#define LCD_DISPCTRL_CONCONF_GND
#define LCD_FREEZE_REGFREEZE_FREEZE
__STATIC_INLINE void LCD_SyncBusyDelay(uint32_t flags)
Polls LCD SYNCBUSY flags, until flag has been cleared.
#define _LCD_STATUS_BLINK_SHIFT
__STATIC_INLINE void LCD_BlinkEnable(bool enable)
Enables or disables LCD blink.
__STATIC_INLINE void LCD_IntDisable(uint32_t flags)
Disable LCD interrupts.
void LCD_AnimInit(const LCD_AnimInit_TypeDef *animInit)
Configures LCD controller Animation feature.
__STATIC_INLINE void LCD_Enable(bool enable)
Enable or disable LCD controller.
void LCD_Init(const LCD_Init_TypeDef *lcdInit)
Initalize Liquid Crystal Display (LCD) controller.
__STATIC_INLINE uint32_t LCD_IntGetEnabled(void)
Get enabled and pending LCD interrupt flags.
#define LCD_BACTRL_ALOGSEL_OR
#define LCD_DISPCTRL_WAVE_NORMAL
__STATIC_INLINE void LCD_AnimEnable(bool enable)
Enables or disables LCD Animation feature.
#define LCD_DISPCTRL_VBLEV_LEVEL0