Functions | |
void | LCD_E_init (uint16_t baseAddress, LCD_E_initParam *initParams) |
Initializes the LCD_E Module. More... | |
void | LCD_E_on (uint16_t baseAddress) |
Turns on the LCD_E module. More... | |
void | LCD_E_off (uint16_t baseAddress) |
Turns the LCD_E off. More... | |
void | LCD_E_clearInterrupt (uint16_t baseAddress, uint16_t mask) |
Clears the LCD_E selected interrupt flags. More... | |
uint16_t | LCD_E_getInterruptStatus (uint16_t baseAddress, uint16_t mask) |
Returns the status of the selected interrupt flags. More... | |
void | LCD_E_enableInterrupt (uint16_t baseAddress, uint16_t mask) |
Enables selected LCD_E interrupt sources. More... | |
void | LCD_E_disableInterrupt (uint16_t baseAddress, uint16_t mask) |
Disables selected LCD_E interrupt sources. More... | |
void | LCD_E_clearAllMemory (uint16_t baseAddress) |
Clears all LCD_E memory registers. More... | |
void | LCD_E_clearAllBlinkingMemory (uint16_t baseAddress) |
Clears all LCD_E blinking memory registers. More... | |
void | LCD_E_selectDisplayMemory (uint16_t baseAddress, uint16_t displayMemory) |
Selects display memory. More... | |
void | LCD_E_setBlinkingControl (uint16_t baseAddress, uint16_t clockPrescalar, uint16_t mode) |
Sets the blinking control register. More... | |
void | LCD_E_enableChargePump (uint16_t baseAddress) |
Enables the charge pump. More... | |
void | LCD_E_disableChargePump (uint16_t baseAddress) |
Disables the charge pump. More... | |
void | LCD_E_setChargePumpFreq (uint16_t baseAddress, uint16_t freq) |
Sets the charge pump frequency. More... | |
void | LCD_E_setVLCDSource (uint16_t baseAddress, uint16_t r13Source, uint16_t r33Source) |
Sets LCD_E voltage source. More... | |
void | LCD_E_setVLCDVoltage (uint16_t baseAddress, uint16_t voltage) |
Sets LCD_E internal voltage for R13. More... | |
void | LCD_E_setReferenceMode (uint16_t baseAddress, uint16_t mode) |
Sets the reference mode for R13. More... | |
void | LCD_E_setPinAsLCDFunction (uint16_t baseAddress, uint8_t pin) |
Sets the LCD_E pins as LCD function pin. More... | |
void | LCD_E_setPinAsPortFunction (uint16_t baseAddress, uint8_t pin) |
Sets the LCD_E pins as port function pin. More... | |
void | LCD_E_setPinAsLCDFunctionEx (uint16_t baseAddress, uint8_t startPin, uint8_t endPin) |
Sets the LCD_E pins as LCD function pin. More... | |
void | LCD_E_setPinAsCOM (uint16_t baseAddress, uint8_t pin, uint8_t com) |
Sets the LCD_E pin as a common line. More... | |
void | LCD_E_setPinAsSEG (uint16_t baseAddress, uint8_t pin) |
Sets the LCD_E pin as a segment line. More... | |
void | LCD_E_setMemory (uint16_t baseAddress, uint8_t memory, uint8_t mask) |
Sets the LCD_E memory register. More... | |
void | LCD_E_updateMemory (uint16_t baseAddress, uint8_t memory, uint8_t mask) |
Updates the LCD_E memory register. More... | |
void | LCD_E_toggleMemory (uint16_t baseAddress, uint8_t memory, uint8_t mask) |
Toggles the LCD_E memory register. More... | |
void | LCD_E_clearMemory (uint16_t baseAddress, uint8_t memory, uint8_t mask) |
Clears the LCD_E memory register. More... | |
void | LCD_E_setBlinkingMemory (uint16_t baseAddress, uint8_t memory, uint8_t mask) |
Sets the LCD_E blinking memory register. More... | |
void | LCD_E_updateBlinkingMemory (uint16_t baseAddress, uint8_t memory, uint8_t mask) |
Updates the LCD_E blinking memory register. More... | |
void | LCD_E_toggleBlinkingMemory (uint16_t baseAddress, uint8_t memory, uint8_t mask) |
Toggles the LCD_E blinking memory register. More... | |
void | LCD_E_clearBlinkingMemory (uint16_t baseAddress, uint8_t memory, uint8_t mask) |
Clears the LCD_E blinking memory register. More... | |
Variables | |
const LCD_E_initParam | LCD_E_INIT_PARAM |
void LCD_E_clearAllBlinkingMemory | ( | uint16_t | baseAddress | ) |
Clears all LCD_E blinking memory registers.
This function clears all LCD_E blinking memory registers.
baseAddress | is the base address of the LCD_E module. |
Modified bits are LCDCLRBM of LCDMEMCTL register.
void LCD_E_clearAllMemory | ( | uint16_t | baseAddress | ) |
Clears all LCD_E memory registers.
This function clears all LCD_E memory registers.
baseAddress | is the base address of the LCD_E module. |
Modified bits are LCDCLRM of LCDMEMCTL register.
void LCD_E_clearBlinkingMemory | ( | uint16_t | baseAddress, |
uint8_t | memory, | ||
uint8_t | mask | ||
) |
Clears the LCD_E blinking memory register.
This function clears the specific bits in the LCD_E blinking memory register according to the mask.
baseAddress | is the base address of the LCD_E module. |
memory | is the select blinking memory for setting value. Valid values are:
|
mask | is the designated value for the corresponding blinking memory. |
Modified bits are MBITx of LCDBMx register.
void LCD_E_clearInterrupt | ( | uint16_t | baseAddress, |
uint16_t | mask | ||
) |
Clears the LCD_E selected interrupt flags.
This function clears the specified interrupt flags.
baseAddress | is the base address of the LCD_E module. |
mask | is the masked interrupt flag to be cleared. Mask value is the logical OR of any of the following:
|
void LCD_E_clearMemory | ( | uint16_t | baseAddress, |
uint8_t | memory, | ||
uint8_t | mask | ||
) |
Clears the LCD_E memory register.
This function clears the specific bits in the LCD_E memory register according to the mask.
baseAddress | is the base address of the LCD_E module. |
memory | is the select memory for setting value. Valid values are:
|
mask | is the designated value for the corresponding memory. |
Modified bits are MBITx of LCDMx register.
void LCD_E_disableChargePump | ( | uint16_t | baseAddress | ) |
Disables the charge pump.
This function disables the charge pump.
baseAddress | is the base address of the LCD_E module. |
Modified bits are LCDCPEN of LCDVCTL register.
void LCD_E_disableInterrupt | ( | uint16_t | baseAddress, |
uint16_t | mask | ||
) |
Disables selected LCD_E interrupt sources.
This function disables the indicated LCD_E interrupt sources.
baseAddress | is the base address of the LCD_E module. |
mask | is the interrupts to be disabled. Mask value is the logical OR of any of the following:
|
void LCD_E_enableChargePump | ( | uint16_t | baseAddress | ) |
Enables the charge pump.
This function enables the charge pump and config the charge pump frequency.
baseAddress | is the base address of the LCD_E module. |
Modified bits are LCDCPEN of LCDVCTL register.
void LCD_E_enableInterrupt | ( | uint16_t | baseAddress, |
uint16_t | mask | ||
) |
Enables selected LCD_E interrupt sources.
This function enables the indicated LCD_E interrupt sources.
baseAddress | is the base address of the LCD_E module. |
mask | is the interrupts to be enabled. Mask value is the logical OR of any of the following:
|
uint16_t LCD_E_getInterruptStatus | ( | uint16_t | baseAddress, |
uint16_t | mask | ||
) |
Returns the status of the selected interrupt flags.
This function returns the status of the selected interrupt flags.
baseAddress | is the base address of the LCD_E module. |
mask | is the masked interrupt flags. Mask value is the logical OR of any of the following:
|
void LCD_E_init | ( | uint16_t | baseAddress, |
LCD_E_initParam * | initParams | ||
) |
Initializes the LCD_E Module.
This function initializes the LCD_E but without turning on. It bascially setup the clock source, clock divider, mux rate, low-power waveform and segments on/off. After calling this function, user can enable/disable charge pump, internal reference voltage, or pin SEG/COM configurations.
baseAddress | is the base address of the LCD_E module. |
initParams | is the pointer to LCD_InitParam structure. See the following parameters for each field. |
References LCD_E_initParam::clockDivider, LCD_E_initParam::clockSource, LCD_E_initParam::muxRate, LCD_E_initParam::segments, and LCD_E_initParam::waveforms.
void LCD_E_off | ( | uint16_t | baseAddress | ) |
Turns the LCD_E off.
This function turns the LCD_E off.
baseAddress | is the base address of the LCD_E module. |
Modified bits are LCDPCTL of SYSCFG2 register; bits LCDON of LCDCTL0 register.
void LCD_E_on | ( | uint16_t | baseAddress | ) |
Turns on the LCD_E module.
This function turns the LCD_E on.
baseAddress | is the base address of the LCD_E module. |
Modified bits are LCDPCTL of SYSCFG2 register; bits LCDON of LCDCTL0 register.
void LCD_E_selectDisplayMemory | ( | uint16_t | baseAddress, |
uint16_t | displayMemory | ||
) |
Selects display memory.
This function selects display memory either from memory or blinking memory. Please note if the blinking mode is selected as LCD_E_BLINKMODE_INDIVIDUALSEGMENTS or LCD_E_BLINKMODE_ALLSEGMENTS or mux rate >=5, display memory can not be changed. If LCD_E_BLINKMODE_SWITCHDISPLAYCONTENTS is selected, display memory bit reflects current displayed memory.
baseAddress | is the base address of the LCD_E module. |
displayMemory | is the desired displayed memory. Valid values are:
|
void LCD_E_setBlinkingControl | ( | uint16_t | baseAddress, |
uint16_t | clockPrescalar, | ||
uint16_t | mode | ||
) |
Sets the blinking control register.
This function sets the blink control related parameter, including blink clock frequency prescalar and blink mode.
baseAddress | is the base address of the LCD_E module. |
clockPrescalar | is the clock pre-scalar for blinking frequency. Valid values are:
|
mode | is the select for blinking mode. Valid values are:
|
void LCD_E_setBlinkingMemory | ( | uint16_t | baseAddress, |
uint8_t | memory, | ||
uint8_t | mask | ||
) |
Sets the LCD_E blinking memory register.
This function sets the entire one LCD_E blinking memory register.
baseAddress | is the base address of the LCD_E module. |
memory | is the select blinking memory for setting value. Valid values are:
|
mask | is the designated value for the corresponding blinking memory. |
Modified bits are MBITx of LCDBMx register.
void LCD_E_setChargePumpFreq | ( | uint16_t | baseAddress, |
uint16_t | freq | ||
) |
Sets the charge pump frequency.
This function sets the charge pump frequency. It takes effect once charge pump is enabled by LCD_E_enableChargePump().
baseAddress | is the base address of the LCD_E module. |
freq | is the charge pump frequency to select. Valid values are:
|
void LCD_E_setMemory | ( | uint16_t | baseAddress, |
uint8_t | memory, | ||
uint8_t | mask | ||
) |
Sets the LCD_E memory register.
This function sets the entire one LCD_E memory register.
baseAddress | is the base address of the LCD_E module. |
memory | is the select memory for setting value. Valid values are:
|
mask | is the designated value for the corresponding memory. |
Modified bits are MBITx of LCDMx register.
void LCD_E_setPinAsCOM | ( | uint16_t | baseAddress, |
uint8_t | pin, | ||
uint8_t | com | ||
) |
Sets the LCD_E pin as a common line.
This function sets the LCD_E pin as a common line and assigns the corresponding memory pin to a specific COM line.
baseAddress | is the base address of the LCD_E module. |
pin | is the selected pin to be configed as common line. Valid values are:
|
com | is the selected COM number for the common line. Valid values are:
|
Modified bits are LCDCSSx of LCDSSELx register; bits MBITx of LCDBMx register; bits MBITx of LCDMx register.
void LCD_E_setPinAsLCDFunction | ( | uint16_t | baseAddress, |
uint8_t | pin | ||
) |
Sets the LCD_E pins as LCD function pin.
This function sets the LCD_E pins as LCD function pin.
baseAddress | is the base address of the LCD_E module. |
pin | is the select pin set as LCD function. Valid values are:
|
Modified bits are LCDSx of LCDPCTLx register.
void LCD_E_setPinAsLCDFunctionEx | ( | uint16_t | baseAddress, |
uint8_t | startPin, | ||
uint8_t | endPin | ||
) |
Sets the LCD_E pins as LCD function pin.
This function sets the LCD_E pins as LCD function pin. Instead of passing the all the possible pins, it just requires the start pin and the end pin.
baseAddress | is the base address of the LCD_E module. |
startPin | is the starting pin to be configed as LCD function pin. Valid values are:
|
endPin | is the ending pin to be configed as LCD function pin. Valid values are:
|
Modified bits are LCDSx of LCDPCTLx register.
void LCD_E_setPinAsPortFunction | ( | uint16_t | baseAddress, |
uint8_t | pin | ||
) |
Sets the LCD_E pins as port function pin.
This function sets the LCD_E pins as port function pin.
baseAddress | is the base address of the LCD_E module. |
pin | is the select pin set as Port function. Valid values are:
|
Modified bits are LCDSx of LCDPCTLx register.
void LCD_E_setPinAsSEG | ( | uint16_t | baseAddress, |
uint8_t | pin | ||
) |
Sets the LCD_E pin as a segment line.
This function sets the LCD_E pin as segment line.
baseAddress | is the base address of the LCD_E module. |
pin | is the selected pin to be configed as segment line. Valid values are:
|
Modified bits are LCDCSSx of LCDSSELx register.
void LCD_E_setReferenceMode | ( | uint16_t | baseAddress, |
uint16_t | mode | ||
) |
Sets the reference mode for R13.
This function sets the reference mode for R13. In the switch mode, the Bias Voltage Generator is on for 1 clock and off for 256 clock cycles to save power. In the static mode, the Bias Voltage Generator is able to drive larger LCD panels.
baseAddress | is the base address of the LCD_E module. |
mode | is the reference mode on R13. Valid values are:
|
void LCD_E_setVLCDSource | ( | uint16_t | baseAddress, |
uint16_t | r13Source, | ||
uint16_t | r33Source | ||
) |
Sets LCD_E voltage source.
Two voltage sources are set in this function: R13 and R33. For the R13, the voltage source can be either internal reference voltage or non internal reference voltage (Vext or Vdd). For the R33, it can be external supply voltage (Vext) or internal supply voltage (Vdd).
baseAddress | is the base address of the LCD_E module. |
r13Source | is the voltage source for R13. Valid values are:
|
r33Source | is the voltage source for R33. Valid values are:
|
void LCD_E_setVLCDVoltage | ( | uint16_t | baseAddress, |
uint16_t | voltage | ||
) |
Sets LCD_E internal voltage for R13.
This function sets the internal voltage for R13. The voltage is only valuable when R13 voltage source is using internal reference voltage and charge pump is enabled.
baseAddress | is the base address of the LCD_E module. |
voltage | is the charge pump select. Valid values are:
|
void LCD_E_toggleBlinkingMemory | ( | uint16_t | baseAddress, |
uint8_t | memory, | ||
uint8_t | mask | ||
) |
Toggles the LCD_E blinking memory register.
This function toggles the specific bits in the LCD_E blinking memory register according to the mask.
baseAddress | is the base address of the LCD_E module. |
memory | is the select blinking memory for setting value. Valid values are:
|
mask | is the designated value for the corresponding blinking memory. |
Modified bits are MBITx of LCDBMx register.
void LCD_E_toggleMemory | ( | uint16_t | baseAddress, |
uint8_t | memory, | ||
uint8_t | mask | ||
) |
Toggles the LCD_E memory register.
This function toggles the specific bits in the LCD_E memory register according to the mask.
baseAddress | is the base address of the LCD_E module. |
memory | is the select memory for setting value. Valid values are:
|
mask | is the designated value for the corresponding memory. |
Modified bits are MBITx of LCDMx register.
void LCD_E_updateBlinkingMemory | ( | uint16_t | baseAddress, |
uint8_t | memory, | ||
uint8_t | mask | ||
) |
Updates the LCD_E blinking memory register.
This function updates the specific bits in the LCD_E blinking memory register according to the mask.
baseAddress | is the base address of the LCD_E module. |
memory | is the select blinking memory for setting value. Valid values are:
|
mask | is the designated value for the corresponding blinking memory. |
Modified bits are MBITx of LCDBMx register.
void LCD_E_updateMemory | ( | uint16_t | baseAddress, |
uint8_t | memory, | ||
uint8_t | mask | ||
) |
Updates the LCD_E memory register.
This function updates the specific bits in the LCD_E memory register according to the mask.
baseAddress | is the base address of the LCD_E module. |
memory | is the select memory for setting value. Valid values are:
|
mask | is the designated value for the corresponding memory. |
Modified bits are MBITx of LCDMx register.
const LCD_E_initParam LCD_E_INIT_PARAM |
Initialization parameter instance
clockSource | selects the clock that will be used by the LCD_E. Valid values are:
|
clockDivider | selects the divider for LCD_E frequency. Valid values are:
|
muxRate | selects LCD_E mux rate. Valid values are:
|
waveforms | selects LCD_E waveform mode. Valid values are:
|
segments | sets LCD_E segment on/off. Valid values are:
|