Functions | |
void | LCD_C_init (uint16_t baseAddress, LCD_C_initParam *initParams) |
Initializes the LCD Module. More... | |
void | LCD_C_on (uint16_t baseAddress) |
Turns on the LCD module. More... | |
void | LCD_C_off (uint16_t baseAddress) |
Turns off the LCD module. More... | |
void | LCD_C_clearInterrupt (uint16_t baseAddress, uint16_t mask) |
Clears the LCD interrupt flags. More... | |
uint16_t | LCD_C_getInterruptStatus (uint16_t baseAddress, uint16_t mask) |
Gets the LCD interrupt status. More... | |
void | LCD_C_enableInterrupt (uint16_t baseAddress, uint16_t mask) |
Enables LCD interrupt sources. More... | |
void | LCD_C_disableInterrupt (uint16_t baseAddress, uint16_t mask) |
Disables LCD interrupt sources. More... | |
void | LCD_C_clearMemory (uint16_t baseAddress) |
Clears all LCD memory registers. More... | |
void | LCD_C_clearBlinkingMemory (uint16_t baseAddress) |
Clears all LCD blinking memory registers. More... | |
void | LCD_C_selectDisplayMemory (uint16_t baseAddress, uint16_t displayMemory) |
Selects display memory. More... | |
void | LCD_C_setBlinkingControl (uint16_t baseAddress, uint8_t clockDivider, uint8_t clockPrescalar, uint8_t mode) |
Sets the blink settings. More... | |
void | LCD_C_enableChargePump (uint16_t baseAddress) |
Enables the charge pump. More... | |
void | LCD_C_disableChargePump (uint16_t baseAddress) |
Disables the charge pump. More... | |
void | LCD_C_selectBias (uint16_t baseAddress, uint16_t bias) |
Selects the bias level. More... | |
void | LCD_C_selectChargePumpReference (uint16_t baseAddress, uint16_t reference) |
Selects the charge pump reference. More... | |
void | LCD_C_setVLCDSource (uint16_t baseAddress, uint16_t vlcdSource, uint16_t v2v3v4Source, uint16_t v5Source) |
Sets the voltage source for V2/V3/V4 and V5. More... | |
void | LCD_C_setVLCDVoltage (uint16_t baseAddress, uint16_t voltage) |
Selects the charge pump reference. More... | |
void | LCD_C_setPinAsLCDFunction (uint16_t baseAddress, uint8_t pin) |
Sets the LCD Pin as LCD functions. More... | |
void | LCD_C_setPinAsPortFunction (uint16_t baseAddress, uint8_t pin) |
Sets the LCD Pin as Port functions. More... | |
void | LCD_C_setPinAsLCDFunctionEx (uint16_t baseAddress, uint8_t startPin, uint8_t endPin) |
Sets the LCD pins as LCD function pin. More... | |
void | LCD_C_setMemory (uint16_t baseAddress, uint8_t pin, uint8_t value) |
Sets the LCD memory register. More... | |
void | LCD_C_setBlinkingMemory (uint16_t baseAddress, uint8_t pin, uint8_t value) |
Sets the LCD blink memory register. More... | |
void | LCD_C_configChargePump (uint16_t baseAddress, uint16_t syncToClock, uint16_t functionControl) |
Configs the charge pump for synchronization and disabled capability. More... | |
Variables | |
const LCD_C_initParam | LCD_C_INIT_PARAM |
void LCD_C_clearBlinkingMemory | ( | uint16_t | baseAddress | ) |
Clears all LCD blinking memory registers.
baseAddress | is the base address of the LCD_C module. |
Modified bits are LCDCLRBM of LCDMEMCTL register.
void LCD_C_clearInterrupt | ( | uint16_t | baseAddress, |
uint16_t | mask | ||
) |
Clears the LCD interrupt flags.
baseAddress | is the base address of the LCD_C module. |
mask | is the masked interrupt flag to be cleared. Valid values are:
|
void LCD_C_clearMemory | ( | uint16_t | baseAddress | ) |
Clears all LCD memory registers.
baseAddress | is the base address of the LCD_C module. |
Modified bits are LCDCLRM of LCDMEMCTL register.
void LCD_C_configChargePump | ( | uint16_t | baseAddress, |
uint16_t | syncToClock, | ||
uint16_t | functionControl | ||
) |
Configs the charge pump for synchronization and disabled capability.
This function is device-specific. The charge pump clock can be synchronized to a device-specific clock, and also can be disabled by connected function.
baseAddress | is the base address of the LCD_C module. |
syncToClock | is the synchronization select. Valid values are:
|
functionControl | is the connected function control select. Setting 0 to make connected function not disable charge pump. |
Modified bits are MBITx of LCDBMx register.
void LCD_C_disableChargePump | ( | uint16_t | baseAddress | ) |
Disables the charge pump.
baseAddress | is the base address of the LCD_C module. |
Modified bits are LCDCPEN of LCDVCTL register; bits LCDON of LCDCTL0 register.
void LCD_C_disableInterrupt | ( | uint16_t | baseAddress, |
uint16_t | mask | ||
) |
Disables LCD interrupt sources.
baseAddress | is the base address of the LCD_C module. |
mask | is the interrupts to be disabled. Valid values are:
|
void LCD_C_enableChargePump | ( | uint16_t | baseAddress | ) |
Enables the charge pump.
baseAddress | is the base address of the LCD_C module. |
Modified bits are LCDCPEN of LCDVCTL register; bits LCDON of LCDCTL0 register.
void LCD_C_enableInterrupt | ( | uint16_t | baseAddress, |
uint16_t | mask | ||
) |
Enables LCD interrupt sources.
baseAddress | is the base address of the LCD_C module. |
mask | is the interrupts to be enabled. Valid values are:
|
uint16_t LCD_C_getInterruptStatus | ( | uint16_t | baseAddress, |
uint16_t | mask | ||
) |
Gets the LCD interrupt status.
baseAddress | is the base address of the LCD_C module. |
mask | is the masked interrupt flags. Valid values are:
|
void LCD_C_init | ( | uint16_t | baseAddress, |
LCD_C_initParam * | initParams | ||
) |
Initializes the LCD Module.
his function initializes the LCD but without turning on. It bascially setup the clock source, clock divider, clock prescalar, mux rate, low-power waveform and segments on/off. After calling this function, user can config charge pump, internal reference voltage and voltage sources.
baseAddress | is the base address of the LCD_C module. |
initParams | is the pointer to LCD_InitParam structure. See the following parameters for each field. |
References LCD_C_initParam::clockDivider, LCD_C_initParam::clockPrescalar, LCD_C_initParam::clockSource, LCD_C_initParam::muxRate, LCD_C_initParam::segments, and LCD_C_initParam::waveforms.
void LCD_C_off | ( | uint16_t | baseAddress | ) |
Turns off the LCD module.
baseAddress | is the base address of the LCD_C module. |
Modified bits are LCDON of LCDCTL0 register.
void LCD_C_on | ( | uint16_t | baseAddress | ) |
Turns on the LCD module.
baseAddress | is the base address of the LCD_C module. |
Modified bits are LCDON of LCDCTL0 register.
void LCD_C_selectBias | ( | uint16_t | baseAddress, |
uint16_t | bias | ||
) |
Selects the bias level.
baseAddress | is the base address of the LCD_C module. |
bias | is the select for bias level. Valid values are:
|
Modified bits are LCD2B of LCDVCTL register; bits LCDON of LCDCTL0 register.
void LCD_C_selectChargePumpReference | ( | uint16_t | baseAddress, |
uint16_t | reference | ||
) |
Selects the charge pump reference.
The charge pump reference does not support LCD_C_EXTERNAL_REFERENCE_VOLTAGE, LCD_C_INTERNAL_REFERENCE_VOLTAGE_SWITCHED_TO_EXTERNAL_PIN when LCD_C_V2V3V4_SOURCED_EXTERNALLY or LCD_C_V2V3V4_GENERATED_INTERNALLY_SWITCHED_TO_PINS is selected.
baseAddress | is the base address of the LCD_C module. |
reference | is the select for charge pump reference. Valid values are:
|
Modified bits are VLCDREFx of LCDVCTL register; bits LCDON of LCDCTL0 register.
void LCD_C_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_BLINKMODE_INDIVIDUALSEGMENTS or LCD_BLINKMODE_ALLSEGMENTS or mux rate >=5, display memory can not be changed. If LCD_BLINKMODE_SWITCHDISPLAYCONTENTS is selected, display memory bit reflects current displayed memory.
baseAddress | is the base address of the LCD_C module. |
displayMemory | is the desired displayed memory. Valid values are:
|
void LCD_C_setBlinkingControl | ( | uint16_t | baseAddress, |
uint8_t | clockDivider, | ||
uint8_t | clockPrescalar, | ||
uint8_t | mode | ||
) |
Sets the blink settings.
baseAddress | is the base address of the LCD_C module. |
clockDivider | is the clock divider for blinking frequency. Valid values are:
|
clockPrescalar | is the clock pre-scalar for blinking frequency. Valid values are:
|
void LCD_C_setBlinkingMemory | ( | uint16_t | baseAddress, |
uint8_t | pin, | ||
uint8_t | value | ||
) |
Sets the LCD blink memory register.
baseAddress | is the base address of the LCD_C module. |
pin | is the select pin for setting value. Valid values are:
|
value | is the designated value for corresponding blink pin. |
Modified bits are MBITx of LCDBMx register.
void LCD_C_setMemory | ( | uint16_t | baseAddress, |
uint8_t | pin, | ||
uint8_t | value | ||
) |
Sets the LCD memory register.
baseAddress | is the base address of the LCD_C module. |
pin | is the select pin for setting value. Valid values are:
|
value | is the designated value for corresponding pin. |
Modified bits are MBITx of LCDMx register.
void LCD_C_setPinAsLCDFunction | ( | uint16_t | baseAddress, |
uint8_t | pin | ||
) |
Sets the LCD Pin as LCD functions.
baseAddress | is the base address of the LCD_C module. |
pin | is the select pin set as LCD function. Valid values are:
|
Modified bits are LCDSx of LCDPCTLx register; bits LCDON of LCDCTL0 register.
void LCD_C_setPinAsLCDFunctionEx | ( | uint16_t | baseAddress, |
uint8_t | startPin, | ||
uint8_t | endPin | ||
) |
Sets the LCD pins as LCD function pin.
This function sets the LCD 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_C 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; bits LCDON of LCDCTL0 register.
void LCD_C_setPinAsPortFunction | ( | uint16_t | baseAddress, |
uint8_t | pin | ||
) |
Sets the LCD Pin as Port functions.
baseAddress | is the base address of the LCD_C module. |
pin | is the select pin set as Port function. Valid values are:
|
Modified bits are LCDSx of LCDPCTLx register; bits LCDON of LCDCTL0 register.
void LCD_C_setVLCDSource | ( | uint16_t | baseAddress, |
uint16_t | vlcdSource, | ||
uint16_t | v2v3v4Source, | ||
uint16_t | v5Source | ||
) |
Sets the voltage source for V2/V3/V4 and V5.
The charge pump reference does not support LCD_C_EXTERNAL_REFERENCE_VOLTAGE, LCD_C_INTERNAL_REFERENCE_VOLTAGE_SWITCHED_TO_EXTERNAL_PIN when LCD_C_V2V3V4_SOURCED_EXTERNALLY or LCD_C_V2V3V4_GENERATED_INTERNALLY_SWITCHED_TO_PINS is selected.
baseAddress | is the base address of the LCD_C module. |
vlcdSource | is the V(LCD) source select. Valid values are:
|
v2v3v4Source | is the V2/V3/V4 source select. Valid values are:
|
v5Source | is the V5 source select. Valid values are:
|
Modified bits are VLCDEXT, LCDREXT, LCDEXTBIAS and R03EXT of LCDVCTL register; bits LCDON of LCDCTL0 register.
void LCD_C_setVLCDVoltage | ( | uint16_t | baseAddress, |
uint16_t | voltage | ||
) |
Selects the charge pump reference.
Sets LCD charge pump voltage.
baseAddress | is the base address of the LCD_C module. |
voltage | is the charge pump select. Valid values are:
|
Modified bits are VLCDx of LCDVCTL register; bits LCDON of LCDCTL0 register.
const LCD_C_initParam LCD_C_INIT_PARAM |