50 #ifndef ti_dl_dl_lcd__include 51 #define ti_dl_dl_lcd__include 56 #include <ti/devices/msp/msp.h> 59 #ifdef __MSPM0_HAS_LCD__ 73 #define DL_LCD_INTERRUPT_FRAME_START (LCD_IMASK_FRMSTART_SET) 78 #define DL_LCD_INTERRUPT_BLINKING_SEGMENTS_OFF (LCD_IMASK_BLKOFF_SET) 83 #define DL_LCD_INTERRUPT_BLINKING_SEGMENTS_ON (LCD_IMASK_BLKON_SET) 93 #define DL_LCD_SEGMENT_LINE_0 (0) 97 #define DL_LCD_SEGMENT_LINE_1 (1) 101 #define DL_LCD_SEGMENT_LINE_2 (2) 105 #define DL_LCD_SEGMENT_LINE_3 (3) 109 #define DL_LCD_SEGMENT_LINE_4 (4) 113 #define DL_LCD_SEGMENT_LINE_5 (5) 117 #define DL_LCD_SEGMENT_LINE_6 (6) 121 #define DL_LCD_SEGMENT_LINE_7 (7) 125 #define DL_LCD_SEGMENT_LINE_8 (8) 129 #define DL_LCD_SEGMENT_LINE_9 (9) 133 #define DL_LCD_SEGMENT_LINE_10 (10) 137 #define DL_LCD_SEGMENT_LINE_11 (11) 141 #define DL_LCD_SEGMENT_LINE_12 (12) 145 #define DL_LCD_SEGMENT_LINE_13 (13) 149 #define DL_LCD_SEGMENT_LINE_14 (14) 153 #define DL_LCD_SEGMENT_LINE_15 (15) 157 #define DL_LCD_SEGMENT_LINE_16 (16) 161 #define DL_LCD_SEGMENT_LINE_17 (17) 165 #define DL_LCD_SEGMENT_LINE_18 (18) 169 #define DL_LCD_SEGMENT_LINE_19 (19) 173 #define DL_LCD_SEGMENT_LINE_20 (20) 177 #define DL_LCD_SEGMENT_LINE_21 (21) 181 #define DL_LCD_SEGMENT_LINE_22 (22) 185 #define DL_LCD_SEGMENT_LINE_23 (23) 189 #define DL_LCD_SEGMENT_LINE_24 (24) 193 #define DL_LCD_SEGMENT_LINE_25 (25) 197 #define DL_LCD_SEGMENT_LINE_26 (26) 201 #define DL_LCD_SEGMENT_LINE_27 (27) 205 #define DL_LCD_SEGMENT_LINE_28 (28) 209 #define DL_LCD_SEGMENT_LINE_29 (29) 213 #define DL_LCD_SEGMENT_LINE_30 (30) 217 #define DL_LCD_SEGMENT_LINE_31 (31) 221 #define DL_LCD_SEGMENT_LINE_32 (32) 225 #define DL_LCD_SEGMENT_LINE_33 (33) 229 #define DL_LCD_SEGMENT_LINE_34 (34) 233 #define DL_LCD_SEGMENT_LINE_35 (35) 237 #define DL_LCD_SEGMENT_LINE_36 (36) 241 #define DL_LCD_SEGMENT_LINE_37 (37) 245 #define DL_LCD_SEGMENT_LINE_38 (38) 249 #define DL_LCD_SEGMENT_LINE_39 (39) 253 #define DL_LCD_SEGMENT_LINE_40 (40) 257 #define DL_LCD_SEGMENT_LINE_41 (41) 261 #define DL_LCD_SEGMENT_LINE_42 (42) 265 #define DL_LCD_SEGMENT_LINE_43 (43) 269 #define DL_LCD_SEGMENT_LINE_44 (44) 273 #define DL_LCD_SEGMENT_LINE_45 (45) 277 #define DL_LCD_SEGMENT_LINE_46 (46) 281 #define DL_LCD_SEGMENT_LINE_47 (47) 285 #define DL_LCD_SEGMENT_LINE_48 (48) 289 #define DL_LCD_SEGMENT_LINE_49 (49) 293 #define DL_LCD_SEGMENT_LINE_50 (50) 297 #define DL_LCD_SEGMENT_LINE_51 (51) 301 #define DL_LCD_SEGMENT_LINE_52 (52) 305 #define DL_LCD_SEGMENT_LINE_53 (53) 309 #define DL_LCD_SEGMENT_LINE_54 (54) 313 #define DL_LCD_SEGMENT_LINE_55 (55) 317 #define DL_LCD_SEGMENT_LINE_56 (56) 321 #define DL_LCD_SEGMENT_LINE_57 (57) 325 #define DL_LCD_SEGMENT_LINE_58 (58) 329 #define DL_LCD_SEGMENT_LINE_59 (59) 333 #define DL_LCD_SEGMENT_LINE_60 (60) 337 #define DL_LCD_SEGMENT_LINE_61 (61) 341 #define DL_LCD_SEGMENT_LINE_62 (62) 345 #define DL_LCD_SEGMENT_LINE_63 (63) 358 #define DL_LCD_MEMORY_BIT_0 (LCD_LCDM_MBIT0_MASK) 367 #define DL_LCD_MEMORY_BIT_1 (LCD_LCDM_MBIT1_MASK) 376 #define DL_LCD_MEMORY_BIT_2 (LCD_LCDM_MBIT2_MASK) 385 #define DL_LCD_MEMORY_BIT_3 (LCD_LCDM_MBIT3_MASK) 394 #define DL_LCD_MEMORY_BIT_4 (LCD_LCDM_MBIT4_MASK) 403 #define DL_LCD_MEMORY_BIT_5 (LCD_LCDM_MBIT5_MASK) 412 #define DL_LCD_MEMORY_BIT_6 (LCD_LCDM_MBIT6_MASK) 421 #define DL_LCD_MEMORY_BIT_7 (LCD_LCDM_MBIT7_MASK) 435 #define DL_LCD_BLINK_MEMORY_BIT_0 (LCD_LCDBM_MBIT0_MASK) 444 #define DL_LCD_BLINK_MEMORY_BIT_1 (LCD_LCDBM_MBIT1_MASK) 453 #define DL_LCD_BLINK_MEMORY_BIT_2 (LCD_LCDBM_MBIT2_MASK) 462 #define DL_LCD_BLINK_MEMORY_BIT_3 (LCD_LCDBM_MBIT3_MASK) 471 #define DL_LCD_BLINK_MEMORY_BIT_4 (LCD_LCDBM_MBIT4_MASK) 480 #define DL_LCD_BLINK_MEMORY_BIT_5 (LCD_LCDBM_MBIT5_MASK) 489 #define DL_LCD_BLINK_MEMORY_BIT_6 (LCD_LCDBM_MBIT6_MASK) 498 #define DL_LCD_BLINK_MEMORY_BIT_7 (LCD_LCDBM_MBIT7_MASK) 624 LCD_LCDBLKCTL_LCDBLKMODX_BLINK_SELECED,
749 LCD_LCDMEMCTL_LCDDISP_SEL_BLNK_MEM_REGS,
1089 lcd->PWREN |= (LCD_PWREN_KEY_UNLOCK_W | LCD_PWREN_ENABLE_ENABLE);
1105 lcd->PWREN = (LCD_PWREN_KEY_UNLOCK_W | LCD_PWREN_ENABLE_DISABLE);
1128 return ((lcd->PWREN & LCD_PWREN_ENABLE_MASK) ==
1129 LCD_PWREN_ENABLE_ENABLE);
1140 lcd->RSTCTL = (LCD_RSTCTL_KEY_UNLOCK_W | LCD_RSTCTL_RESETSTKYCLR_CLR |
1141 LCD_RSTCTL_RESETASSERT_ASSERT);
1157 return ((lcd->STAT & LCD_STAT_RESETSTKY_MASK) ==
1158 LCD_STAT_RESETSTKY_RESET);
1172 uint32_t eventLineMode = (lcd->EVT_MODE & LCD_EVT_MODE_INT0_CFG_MASK);
1174 return (DL_LCD_EVENT_LINE_MODE)(eventLineMode);
1192 return ((DL_LCD_IIDX) lcd->INT_EVENT0.IIDX);
1204 LCD_Regs *lcd, uint32_t interruptMask)
1206 lcd->INT_EVENT0.IMASK |= interruptMask;
1218 LCD_Regs *lcd, uint32_t interruptMask)
1220 lcd->INT_EVENT0.IMASK &= ~(interruptMask);
1236 const LCD_Regs *lcd, uint32_t interruptMask)
1238 return (lcd->INT_EVENT0.IMASK & interruptMask);
1257 const LCD_Regs *lcd, uint32_t interruptMask)
1259 return (lcd->INT_EVENT0.RIS & interruptMask);
1280 const LCD_Regs *lcd, uint32_t interruptMask)
1282 return (lcd->INT_EVENT0.MIS & interruptMask);
1294 LCD_Regs *lcd, uint32_t interruptMask)
1296 lcd->INT_EVENT0.ISET = interruptMask;
1308 LCD_Regs *lcd, uint32_t interruptMask)
1310 lcd->INT_EVENT0.ICLR = interruptMask;
1320 lcd->LCDCTL0 |= LCD_LCDCTL0_LCDSYNCEXT_LCD_EXT_SYNC_ON;
1330 lcd->LCDCTL0 &= ~(LCD_LCDCTL0_LCDSYNCEXT_MASK);
1345 return ((lcd->LCDCTL0 & LCD_LCDCTL0_LCDSYNCEXT_MASK) ==
1346 LCD_LCDCTL0_LCDSYNCEXT_LCD_EXT_SYNC_ON);
1362 LCD_Regs *lcd, DL_LCD_FREQ_DIVIDE fDiv)
1365 &lcd->LCDCTL0, (uint32_t) fDiv, LCD_LCDCTL0_LCDDIVX_MASK);
1379 uint32_t fDiv = (lcd->LCDCTL0 & LCD_LCDCTL0_LCDDIVX_MASK);
1381 return (DL_LCD_FREQ_DIVIDE)(fDiv);
1397 LCD_Regs *lcd, DL_LCD_MUX_RATE muxRate)
1400 &lcd->LCDCTL0, (uint32_t) muxRate, LCD_LCDCTL0_LCDMXX_MASK);
1414 uint32_t muxRate = (lcd->LCDCTL0 & LCD_LCDCTL0_LCDMXX_MASK);
1416 return (DL_LCD_MUX_RATE)(muxRate);
1426 lcd->LCDCTL0 |= LCD_LCDCTL0_LCDSON_LCD_SEG_ON;
1439 lcd->LCDCTL0 &= ~(LCD_LCDCTL0_LCDSON_MASK);
1454 LCD_Regs *lcd, DL_LCD_WAVEFORM_POWERMODE waveformPowerMode)
1457 &lcd->LCDCTL0, (uint32_t) waveformPowerMode, LCD_LCDCTL0_LCDLP_MASK);
1470 const LCD_Regs *lcd)
1472 uint32_t waveformPowerMode = (lcd->LCDCTL0 & LCD_LCDCTL0_LCDLP_MASK);
1474 return (DL_LCD_WAVEFORM_POWERMODE)(waveformPowerMode);
1484 lcd->LCDCTL0 |= LCD_LCDCTL0_LCDON_LCD_MOD_ENABLE;
1494 lcd->LCDCTL0 &= ~(LCD_LCDCTL0_LCDON_MASK);
1507 LCD_Regs *lcd, DL_LCD_BLINKING_DIVIDE blinkFreqDiv,
1508 DL_LCD_BLINKING_MODE blinkMode)
1511 (uint32_t) blinkMode, LCD_LCDBLKCTL_LCDBLKPREX_MASK |
1512 LCD_LCDBLKCTL_LCDBLKMODX_MASK);
1526 uint32_t blinkFreqDiv = (lcd->LCDBLKCTL & LCD_LCDBLKCTL_LCDBLKPREX_MASK);
1528 return (DL_LCD_BLINKING_DIVIDE)(blinkFreqDiv);
1542 uint32_t blinkMode = (lcd->LCDBLKCTL & LCD_LCDBLKCTL_LCDBLKMODX_MASK);
1544 return (DL_LCD_BLINKING_MODE)(blinkMode);
1558 LCD_LCDMEMCTL_LCDCLRBM_CLR_BLNK_MEM_REGS, LCD_LCDMEMCTL_LCDCLRBM_MASK);
1572 LCD_LCDMEMCTL_LCDCLRM_MASK);
1587 LCD_Regs *lcd, DL_LCD_DISP dispSel)
1590 LCD_LCDMEMCTL_LCDDISP_MASK);
1608 uint32_t dispSel = (lcd->LCDMEMCTL & LCD_LCDMEMCTL_LCDDISP_MASK);
1610 return (DL_LCD_DISP)(dispSel);
1620 lcd->LCDVCTL |= LCD_LCDVCTL_LCDVBSTEN_ENABLE;
1630 lcd->LCDVCTL &= ~(LCD_LCDVCTL_LCDVBSTEN_MASK);
1643 LCD_Regs *lcd, DL_LCD_CHARGE_PUMP_FREQUENCY chargePumpFreq)
1646 LCD_LCDVCTL_LCDCPFSELX_MASK);
1659 const LCD_Regs *lcd)
1661 uint32_t chargePumpFreq = (lcd->LCDVCTL & LCD_LCDVCTL_LCDCPFSELX_MASK);
1663 return (DL_LCD_CHARGE_PUMP_FREQUENCY)(chargePumpFreq);
1675 LCD_Regs *lcd, DL_LCD_VREF_INTERNAL vrefInternal)
1678 LCD_LCDVCTL_VLCDX_MASK);
1692 uint32_t vrefInternal = (lcd->LCDVCTL & LCD_LCDVCTL_VLCDX_MASK);
1694 return (DL_LCD_VREF_INTERNAL)(vrefInternal);
1707 lcd->LCDVCTL |= LCD_LCDVCTL_LCDCPEN_CP_ENABLE;
1717 lcd->LCDVCTL &= ~(LCD_LCDVCTL_LCDCPEN_MASK);
1728 lcd->LCDVCTL |= LCD_LCDVCTL_LCDREFEN_INT_REF_ENABLE;
1738 lcd->LCDVCTL &= ~(LCD_LCDVCTL_LCDREFEN_MASK);
1750 LCD_Regs *lcd, DL_LCD_R33_SOURCE r33Source)
1753 LCD_LCDVCTL_LCDSELVDD_MASK);
1767 uint32_t r33Source = (lcd->LCDVCTL & LCD_LCDVCTL_LCDSELVDD_MASK);
1769 return (DL_LCD_R33_SOURCE)(r33Source);
1783 LCD_Regs *lcd, DL_LCD_POWER_MODE powerMode)
1786 LCD_LCDVCTL_LCD_HP_LP_MASK);
1800 uint32_t powerMode = (lcd->LCDVCTL & LCD_LCDVCTL_LCDSELVDD_MASK);
1802 return (DL_LCD_POWER_MODE)(powerMode);
1817 LCD_Regs *lcd, DL_LCD_BIAS_VOLTAGE_SOURCE biasVoltageSource)
1820 LCD_LCDVCTL_VLCDSEL_VDD_R33_MASK);
1833 const LCD_Regs *lcd)
1835 uint32_t biasVoltageSource = (
1836 lcd->LCDVCTL & LCD_LCDVCTL_VLCDSEL_VDD_R33_MASK);
1838 return (DL_LCD_BIAS_VOLTAGE_SOURCE)(biasVoltageSource);
1849 lcd->LCDVCTL |= LCD_LCDVCTL_LCDINTBIASEN_INT_BIAS_ENABLE;
1859 lcd->LCDVCTL &= ~(LCD_LCDVCTL_LCDINTBIASEN_MASK);
1872 LCD_Regs *lcd, DL_LCD_BIAS biasSel)
1875 &lcd->LCDVCTL, (uint32_t) biasSel, LCD_LCDVCTL_LCDBIASSEL_MASK);
1889 uint32_t biasSel = (lcd->LCDVCTL & LCD_LCDVCTL_LCDBIASSEL_MASK);
1891 return (DL_LCD_BIAS)(biasSel);
1902 LCD_Regs *lcd, DL_LCD_REFERENCE_MODE refMode)
1905 &lcd->LCDVCTL, (uint32_t) refMode, LCD_LCDVCTL_LCDREFMODE_MASK);
1919 uint32_t refMode = (lcd->LCDVCTL & LCD_LCDVCTL_LCDREFMODE_MASK);
1921 return (DL_LCD_REFERENCE_MODE)(refMode);
1936 lcd -> LCDM[(uint32_t) memIndex] = mask;
1951 lcd -> LCDM[(uint32_t) memIndex] |= mask;
1966 lcd -> LCDM[(uint32_t) memIndex] ^= mask;
1981 lcd -> LCDM[(uint32_t) memIndex] &= ~(mask);
1997 return lcd -> LCDM[(uint32_t) memIndex];
2012 lcd -> LCDBM[(uint32_t) memIndex] = mask;
2027 lcd -> LCDBM[(uint32_t) memIndex] |= mask;
2042 lcd -> LCDBM[(uint32_t) memIndex] ^= mask;
2057 lcd -> LCDBM[(uint32_t) memIndex] &= ~(mask);
2073 return lcd -> LCDBM[(uint32_t) memIndex];
2084 LCD_Regs *lcd, DL_LCD_VREFGEN_CYCLES cycles)
2087 LCD_LCDVREFCFG_ONTIME_MASK);
2101 uint32_t cycles = (lcd->LCDVREFCFG & LCD_LCDVREFCFG_ONTIME_MASK);
2103 return (DL_LCD_VREFGEN_CYCLES)(cycles);
__STATIC_INLINE void DL_LCD_setBias(LCD_Regs *lcd, DL_LCD_BIAS biasSel)
Select LCD bias.
Definition: dl_lcd.h:1871
DL_LCD_POWER_MODE
Definition: dl_lcd.h:712
__STATIC_INLINE void DL_Common_updateReg(volatile uint32_t *reg, uint32_t val, uint32_t mask)
Writes value to specified register - retaining bits unaffected by mask.
Definition: dl_common.h:63
__STATIC_INLINE DL_LCD_REFERENCE_MODE DL_LCD_getRefMode(const LCD_Regs *lcd)
Get reference mode for R13 voltage.
Definition: dl_lcd.h:1917
__STATIC_INLINE void DL_LCD_setVREFInternal(LCD_Regs *lcd, DL_LCD_VREF_INTERNAL vrefInternal)
Set internal reference voltage.
Definition: dl_lcd.h:1674
__STATIC_INLINE void DL_LCD_enableInternalBias(LCD_Regs *lcd)
Enables internal bias voltage resistor divider.
Definition: dl_lcd.h:1847
__STATIC_INLINE bool DL_LCD_isPowerEnabled(const LCD_Regs *lcd)
Returns if the Peripheral Write Enable (PWREN) register for the LCD is enabled.
Definition: dl_lcd.h:1126
__STATIC_INLINE void DL_LCD_setBlinkingMemory(LCD_Regs *lcd, DL_LCD_BLINKING_MEMORY memIndex, uint32_t mask)
Set bits in LCD blinking memory index register.
Definition: dl_lcd.h:2024
__STATIC_INLINE void DL_LCD_enableChargePump(LCD_Regs *lcd)
Enables charge pump.
Definition: dl_lcd.h:1705
DL_LCD_FREQ_DIVIDE
Definition: dl_lcd.h:503
__STATIC_INLINE DL_LCD_VREFGEN_CYCLES DL_LCD_getVrefOnTimeCycles(const LCD_Regs *lcd)
Get the number of cycles set to enable voltage generation circuitry.
Definition: dl_lcd.h:2099
__STATIC_INLINE void DL_LCD_enableVREFInternal(LCD_Regs *lcd)
Enables internal reference voltage.
Definition: dl_lcd.h:1726
__STATIC_INLINE void DL_LCD_disableInternalBias(LCD_Regs *lcd)
Disables internal bias voltage resistor divider.
Definition: dl_lcd.h:1857
__STATIC_INLINE void DL_LCD_setChargePumpFreq(LCD_Regs *lcd, DL_LCD_CHARGE_PUMP_FREQUENCY chargePumpFreq)
Set charge pump frequency.
Definition: dl_lcd.h:1642
__STATIC_INLINE void DL_LCD_disableExternalSync(LCD_Regs *lcd)
Disable external synchronization.
Definition: dl_lcd.h:1328
DL_LCD_IIDX
Definition: dl_lcd.h:763
__STATIC_INLINE void DL_LCD_toggleMemory(LCD_Regs *lcd, DL_LCD_MEMORY memIndex, uint32_t mask)
Toggle bits in LCD memory index register.
Definition: dl_lcd.h:1963
DL_LCD_BLINKING_MEMORY
Definition: dl_lcd.h:907
__STATIC_INLINE void DL_LCD_selectMemRegsForDisplay(LCD_Regs *lcd, DL_LCD_DISP dispSel)
Select LCD memory registers for display.
Definition: dl_lcd.h:1586
DL_LCD_BLINKING_MODE
Definition: dl_lcd.h:619
__STATIC_INLINE void DL_LCD_setMuxRate(LCD_Regs *lcd, DL_LCD_MUX_RATE muxRate)
Set the LCD mux rate.
Definition: dl_lcd.h:1396
DL_LCD_WAVEFORM_POWERMODE
Definition: dl_lcd.h:591
DL_LCD_VREF_INTERNAL
Definition: dl_lcd.h:668
__STATIC_INLINE DL_LCD_VREF_INTERNAL DL_LCD_getVREFInternal(const LCD_Regs *lcd)
Get the internal reference voltage.
Definition: dl_lcd.h:1690
__STATIC_INLINE DL_LCD_EVENT_LINE_MODE DL_LCD_getEventLineMode(const LCD_Regs *lcd)
Get the event line mode.
Definition: dl_lcd.h:1170
__STATIC_INLINE void DL_LCD_setVrefOnTimeCycles(LCD_Regs *lcd, DL_LCD_VREFGEN_CYCLES cycles)
Set number of cycles to enable voltage generation circuitry.
Definition: dl_lcd.h:2083
__STATIC_INLINE void DL_LCD_disableInterrupt(LCD_Regs *lcd, uint32_t interruptMask)
Disable LCD interrupts.
Definition: dl_lcd.h:1217
__STATIC_INLINE void DL_LCD_enableExternalSync(LCD_Regs *lcd)
Enable external synchronization.
Definition: dl_lcd.h:1318
__STATIC_INLINE void DL_LCD_disableChargePump(LCD_Regs *lcd)
Disables charge pump.
Definition: dl_lcd.h:1715
__STATIC_INLINE DL_LCD_MUX_RATE DL_LCD_getMuxRate(const LCD_Regs *lcd)
Get the LCD mux rate.
Definition: dl_lcd.h:1412
__STATIC_INLINE void DL_LCD_disablePower(LCD_Regs *lcd)
Disables the Peripheral Write Enable (PWREN) register for the LCD.
Definition: dl_lcd.h:1103
__STATIC_INLINE void DL_LCD_disableVBOOST(LCD_Regs *lcd)
Disables VBOOST on LCD module.
Definition: dl_lcd.h:1628
__STATIC_INLINE void DL_LCD_disable(LCD_Regs *lcd)
Disables the LCD module.
Definition: dl_lcd.h:1492
DL_LCD_R33_SOURCE
Definition: dl_lcd.h:704
__STATIC_INLINE DL_LCD_DISP DL_LCD_getSelectedMemRegsForDisplay(const LCD_Regs *lcd)
Get the LCD memory registers selected for display.
Definition: dl_lcd.h:1606
__STATIC_INLINE DL_LCD_FREQ_DIVIDE DL_LCD_getFreqDiv(const LCD_Regs *lcd)
Get the LCD frequency divider.
Definition: dl_lcd.h:1377
Configuration struct for DL_LCD_init.
Definition: dl_lcd.h:1009
__STATIC_INLINE uint32_t DL_LCD_getEnabledInterruptStatus(const LCD_Regs *lcd, uint32_t interruptMask)
Check interrupt flag of enabled LCD interrupts.
Definition: dl_lcd.h:1279
__STATIC_INLINE void DL_LCD_turnSegmentsOff(LCD_Regs *lcd)
Turns LCD segments off.
Definition: dl_lcd.h:1437
__STATIC_INLINE void DL_LCD_setR33source(LCD_Regs *lcd, DL_LCD_R33_SOURCE r33Source)
Set source for R33.
Definition: dl_lcd.h:1749
DL_LCD_WAVEFORM_POWERMODE lowPowerWaveform
Definition: dl_lcd.h:1015
__STATIC_INLINE void DL_LCD_writeBlinkingMemory(LCD_Regs *lcd, DL_LCD_BLINKING_MEMORY memIndex, uint32_t mask)
Write to bits in LCD blinking memory index register.
Definition: dl_lcd.h:2009
__STATIC_INLINE DL_LCD_CHARGE_PUMP_FREQUENCY DL_LCD_getChargePumpFreq(const LCD_Regs *lcd)
Get the charge pump frequency.
Definition: dl_lcd.h:1658
__STATIC_INLINE void DL_LCD_clearAllBlinkingMemoryRegs(LCD_Regs *lcd)
Clear LCD blinking memory.
Definition: dl_lcd.h:1555
__STATIC_INLINE void DL_LCD_clearBlinkingMemory(LCD_Regs *lcd, DL_LCD_BLINKING_MEMORY memIndex, uint32_t mask)
Clear bits in LCD blinking memory index register.
Definition: dl_lcd.h:2054
DL_LCD_BIAS_VOLTAGE_SOURCE
Definition: dl_lcd.h:720
DL_LCD_MEMORY
Definition: dl_lcd.h:775
void DL_LCD_setPinAsSegment(LCD_Regs *lcd, uint8_t pin)
Enable an LCD function pin as Segment.
__STATIC_INLINE DL_LCD_R33_SOURCE DL_LCD_getR33Source(const LCD_Regs *lcd)
Get the source for R33.
Definition: dl_lcd.h:1765
void DL_LCD_setPinAsCommon(LCD_Regs *lcd, uint8_t pin, uint32_t com)
Enable an LCD function pin as COM.
__STATIC_INLINE void DL_LCD_setMemory(LCD_Regs *lcd, DL_LCD_MEMORY memIndex, uint32_t mask)
Set bits in LCD memory index register.
Definition: dl_lcd.h:1948
Definition: dl_lcd.h:1001
__STATIC_INLINE uint32_t DL_LCD_getRawInterruptStatus(const LCD_Regs *lcd, uint32_t interruptMask)
Check interrupt flag of any LCD interrupt.
Definition: dl_lcd.h:1256
__STATIC_INLINE void DL_LCD_clearInterruptStatus(LCD_Regs *lcd, uint32_t interruptMask)
Clear pending LCD interrupts.
Definition: dl_lcd.h:1307
__STATIC_INLINE void DL_LCD_disableVREFInternal(LCD_Regs *lcd)
Disables internal reference voltage.
Definition: dl_lcd.h:1736
__STATIC_INLINE DL_LCD_POWER_MODE DL_LCD_getPowerMode(const LCD_Regs *lcd)
Get power mode.
Definition: dl_lcd.h:1798
__STATIC_INLINE void DL_LCD_setInterrupts(LCD_Regs *lcd, uint32_t interruptMask)
Set LCD interrupts.
Definition: dl_lcd.h:1293
__STATIC_INLINE void DL_LCD_enableVBOOST(LCD_Regs *lcd)
Enables VBOOST on LCD module.
Definition: dl_lcd.h:1618
DL_LCD_BLINKING_DIVIDE
Definition: dl_lcd.h:599
__STATIC_INLINE void DL_LCD_setRefMode(LCD_Regs *lcd, DL_LCD_REFERENCE_MODE refMode)
Set reference mode for R13 voltage.
Definition: dl_lcd.h:1901
DL_LCD_DISP
Definition: dl_lcd.h:744
DL_LCD_CHARGE_PUMP_FREQUENCY
Definition: dl_lcd.h:632
DL_LCD_COM
Definition: dl_lcd.h:975
Definition: dl_lcd.h:1003
__STATIC_INLINE uint32_t DL_LCD_getEnabledInterrupts(const LCD_Regs *lcd, uint32_t interruptMask)
Check which LCD interrupts are enabled.
Definition: dl_lcd.h:1235
__STATIC_INLINE void DL_LCD_turnSegmentsOn(LCD_Regs *lcd)
Turns LCD segments on.
Definition: dl_lcd.h:1424
__STATIC_INLINE void DL_LCD_setBlinkingControl(LCD_Regs *lcd, DL_LCD_BLINKING_DIVIDE blinkFreqDiv, DL_LCD_BLINKING_MODE blinkMode)
Set the blinking frequency divider and blinking mode.
Definition: dl_lcd.h:1506
__STATIC_INLINE void DL_LCD_setFreqDiv(LCD_Regs *lcd, DL_LCD_FREQ_DIVIDE fDiv)
Set the LCD frequency divider.
Definition: dl_lcd.h:1361
void DL_LCD_setPinAsPortFunction(LCD_Regs *lcd, uint8_t pin)
Enable a pin as port function.
DL_LCD_MUX_RATE
Definition: dl_lcd.h:571
DL_LCD_FREQ_DIVIDE frequencyDivider
Definition: dl_lcd.h:1011
__STATIC_INLINE void DL_LCD_clearMemory(LCD_Regs *lcd, DL_LCD_MEMORY memIndex, uint32_t mask)
Clear bits in LCD memory index register.
Definition: dl_lcd.h:1978
__STATIC_INLINE void DL_LCD_setWaveformPowerMode(LCD_Regs *lcd, DL_LCD_WAVEFORM_POWERMODE waveformPowerMode)
Set the waveform power mode.
Definition: dl_lcd.h:1453
__STATIC_INLINE void DL_LCD_writeMemory(LCD_Regs *lcd, DL_LCD_MEMORY memIndex, uint32_t mask)
Write to bits in LCD memory index register.
Definition: dl_lcd.h:1933
__STATIC_INLINE uint32_t DL_LCD_getBlinkingMemory(const LCD_Regs *lcd, DL_LCD_BLINKING_MEMORY memIndex)
Get bits in LCD blinking memory index register.
Definition: dl_lcd.h:2070
__STATIC_INLINE bool DL_LCD_isExternalSyncEnabled(const LCD_Regs *lcd)
Checks if external synchronization is enabled.
Definition: dl_lcd.h:1343
__STATIC_INLINE DL_LCD_BLINKING_MODE DL_LCD_getBlinkingMode(const LCD_Regs *lcd)
Get the blinking mode.
Definition: dl_lcd.h:1540
DL_LCD_MUX_RATE muxRate
Definition: dl_lcd.h:1013
__STATIC_INLINE DL_LCD_WAVEFORM_POWERMODE DL_LCD_getWaveformPowerMode(const LCD_Regs *lcd)
Get the waveform power mode.
Definition: dl_lcd.h:1469
__STATIC_INLINE DL_LCD_IIDX DL_LCD_getPendingInterrupt(const LCD_Regs *lcd)
Gets the highest priority pending interrupt.
Definition: dl_lcd.h:1190
__STATIC_INLINE void DL_LCD_toggleBlinkingMemory(LCD_Regs *lcd, DL_LCD_BLINKING_MEMORY memIndex, uint32_t mask)
Toggle bits in LCD blinking memory index register.
Definition: dl_lcd.h:2039
void DL_LCD_setPinAsLCDFunction(LCD_Regs *lcd, uint32_t pin)
Enable a pin as LCD function.
__STATIC_INLINE void DL_LCD_enable(LCD_Regs *lcd)
Enables the LCD module.
Definition: dl_lcd.h:1482
DL_LCD_REFERENCE_MODE
Definition: dl_lcd.h:736
DL_LCD_BIAS
Definition: dl_lcd.h:728
__STATIC_INLINE DL_LCD_BLINKING_DIVIDE DL_LCD_getBlinkingFreqDiv(const LCD_Regs *lcd)
Get the blinking frequency divider.
Definition: dl_lcd.h:1524
__STATIC_INLINE void DL_LCD_clearAllMemoryRegs(LCD_Regs *lcd)
Clear LCD memory.
Definition: dl_lcd.h:1569
void DL_LCD_init(LCD_Regs *lcd, const DL_LCD_Config *config)
Initialize the LCD peripheral.
__STATIC_INLINE void DL_LCD_setBiasVoltageSource(LCD_Regs *lcd, DL_LCD_BIAS_VOLTAGE_SOURCE biasVoltageSource)
Set bias voltage source.
Definition: dl_lcd.h:1816
__STATIC_INLINE DL_LCD_BIAS_VOLTAGE_SOURCE DL_LCD_getBiasVoltageSource(const LCD_Regs *lcd)
Get bias voltage source.
Definition: dl_lcd.h:1832
DL_LCD_VREFGEN_CYCLES
Definition: dl_lcd.h:995
DL_LCD_EVENT_LINE_MODE
Definition: dl_lcd.h:753
__STATIC_INLINE uint32_t DL_LCD_getMemory(const LCD_Regs *lcd, DL_LCD_MEMORY memIndex)
Get bits in LCD memory index register.
Definition: dl_lcd.h:1994
__STATIC_INLINE void DL_LCD_enableInterrupt(LCD_Regs *lcd, uint32_t interruptMask)
Enable LCD interrupts.
Definition: dl_lcd.h:1203
__STATIC_INLINE void DL_LCD_setInternalBiasPowerMode(LCD_Regs *lcd, DL_LCD_POWER_MODE powerMode)
Select internal bias power mode.
Definition: dl_lcd.h:1782
__STATIC_INLINE DL_LCD_BIAS DL_LCD_getBias(const LCD_Regs *lcd)
Get bias for LCD.
Definition: dl_lcd.h:1887
__STATIC_INLINE void DL_LCD_enablePower(LCD_Regs *lcd)
Enables the Peripheral Write Enable (PWREN) register for the LCD.
Definition: dl_lcd.h:1087
__STATIC_INLINE bool DL_LCD_isReset(const LCD_Regs *lcd)
Checks if LCD peripheral was reset.
Definition: dl_lcd.h:1155
__STATIC_INLINE void DL_LCD_reset(LCD_Regs *lcd)
Resets LCD peripheral.
Definition: dl_lcd.h:1138