lcd_f.h
Go to the documentation of this file.
1 #ifndef LCD_F_H_
2 #define LCD_F_H_
3 
4 #include <stdbool.h>
5 #include <stdint.h>
6 #include <msp.h>
7 
8 //*****************************************************************************
9 //
12 //
13 //*****************************************************************************
14 
15 //*****************************************************************************
16 //
17 // If building with a C++ compiler, make all of the definitions in this header
18 // have a C binding.
19 //
20 //*****************************************************************************
21 #ifdef __cplusplus
22 extern "C"
23 {
24 #endif
25 
26 typedef struct LCD_F_initParam
27 {
34  uint32_t clockSource;
69  uint32_t clockDivider;
78  uint32_t clockPrescaler;
89  uint32_t muxRate;
94  uint32_t waveforms;
99  uint32_t segments;
100 } LCD_F_Config;
101 
102 //*****************************************************************************
103 //
104 // The following are values that can be passed to the initParams parameter for
105 // functions: LCD_F_initModule().
106 //
107 //*****************************************************************************
108 #define LCD_F_CLOCKSOURCE_ACLK (LCD_F_CTL_SSEL_0)
109 #define LCD_F_CLOCKSOURCE_VLOCLK (LCD_F_CTL_SSEL_1)
110 #define LCD_F_CLOCKSOURCE_REFOCLK (LCD_F_CTL_SSEL_2)
111 #define LCD_F_CLOCKSOURCE_LFXT (LCD_F_CTL_SSEL_3)
112 
113 
114 //*****************************************************************************
115 //
116 // The following are values that can be passed to the initParams parameter for
117 // functions: LCD_F_initModule().
118 //
119 //*****************************************************************************
120 #define LCD_F_CLOCKDIVIDER_1 0x0
121 #define LCD_F_CLOCKDIVIDER_2 0x800
122 #define LCD_F_CLOCKDIVIDER_3 0x1000
123 #define LCD_F_CLOCKDIVIDER_4 0x1800
124 #define LCD_F_CLOCKDIVIDER_5 0x2000
125 #define LCD_F_CLOCKDIVIDER_6 0x2800
126 #define LCD_F_CLOCKDIVIDER_7 0x3000
127 #define LCD_F_CLOCKDIVIDER_8 0x3800
128 #define LCD_F_CLOCKDIVIDER_9 0x4000
129 #define LCD_F_CLOCKDIVIDER_10 0x4800
130 #define LCD_F_CLOCKDIVIDER_11 0x5000
131 #define LCD_F_CLOCKDIVIDER_12 0x5800
132 #define LCD_F_CLOCKDIVIDER_13 0x6000
133 #define LCD_F_CLOCKDIVIDER_14 0x6800
134 #define LCD_F_CLOCKDIVIDER_15 0x7000
135 #define LCD_F_CLOCKDIVIDER_16 0x7800
136 #define LCD_F_CLOCKDIVIDER_17 0x8000
137 #define LCD_F_CLOCKDIVIDER_18 0x8800
138 #define LCD_F_CLOCKDIVIDER_19 0x9000
139 #define LCD_F_CLOCKDIVIDER_20 0x9800
140 #define LCD_F_CLOCKDIVIDER_21 0xa000
141 #define LCD_F_CLOCKDIVIDER_22 0xa800
142 #define LCD_F_CLOCKDIVIDER_23 0xb000
143 #define LCD_F_CLOCKDIVIDER_24 0xb800
144 #define LCD_F_CLOCKDIVIDER_25 0xc000
145 #define LCD_F_CLOCKDIVIDER_26 0xc800
146 #define LCD_F_CLOCKDIVIDER_27 0xd000
147 #define LCD_F_CLOCKDIVIDER_28 0xd800
148 #define LCD_F_CLOCKDIVIDER_29 0xe000
149 #define LCD_F_CLOCKDIVIDER_30 0xe800
150 #define LCD_F_CLOCKDIVIDER_31 0xf000
151 #define LCD_F_CLOCKDIVIDER_32 0xf800
152 
153 //*****************************************************************************
154 //
155 // The following are values that can be passed to the initParams parameter for
156 // functions: LCD_F_initModule().
157 //
158 //*****************************************************************************
159 #define LCD_F_CLOCKPRESCALER_1 (LCD_F_CTL_PRE_0)
160 #define LCD_F_CLOCKPRESCALER_2 (LCD_F_CTL_PRE_1)
161 #define LCD_F_CLOCKPRESCALER_4 (LCD_F_CTL_PRE_2)
162 #define LCD_F_CLOCKPRESCALER_8 (LCD_F_CTL_PRE_3)
163 #define LCD_F_CLOCKPRESCALER_16 (LCD_F_CTL_PRE_4)
164 #define LCD_F_CLOCKPRESCALER_32 (LCD_F_CTL_PRE_5)
165 
166 //*****************************************************************************
167 //
168 // The following are values that can be passed to the initParams parameter for
169 // functions: LCD_F_initModule().
170 //
171 //*****************************************************************************
172 #define LCD_F_STATIC (LCD_F_CTL_MX_0)
173 #define LCD_F_2_MUX (LCD_F_CTL_MX_1)
174 #define LCD_F_3_MUX (LCD_F_CTL_MX_2)
175 #define LCD_F_4_MUX (LCD_F_CTL_MX_3)
176 #define LCD_F_5_MUX (LCD_F_CTL_MX_4)
177 #define LCD_F_6_MUX (LCD_F_CTL_MX_5)
178 #define LCD_F_7_MUX (LCD_F_CTL_MX_6)
179 #define LCD_F_8_MUX (LCD_F_CTL_MX_7)
180 
181 //*****************************************************************************
182 //
183 // The following are values that can be passed to the v2v3v4Source parameter
184 // for functions: LCD_F_setVLCDSource().
185 //
186 //*****************************************************************************
187 #define LCD_F_V2V3V4_GENERATED_INTERNALLY_NOT_SWITCHED_TO_PINS (0x0)
188 #define LCD_F_V2V3V4_GENERATED_INTERNALLY_SWITCHED_TO_PINS (LCD_F_VCPCTL_REXT)
189 #define LCD_F_V2V3V4_SOURCED_EXTERNALLY (LCD_F_VCPCTL_EXTBIAS)
190 
191 //*****************************************************************************
192 //
193 // The following are values that can be passed to the v5Source parameter for
194 // functions: LCD_F_setVLCDSource().
195 //
196 //*****************************************************************************
197 #define LCD_F_V5_VSS (0x0)
198 #define LCD_F_V5_SOURCED_FROM_R03 (LCD_F_VCPCTL_R03EXT)
199 
200 //*****************************************************************************
201 //
202 // The following are values that can be passed to the initParams parameter for
203 // functions: LCD_F_initModule().
204 //
205 //*****************************************************************************
206 #define LCD_F_STANDARD_WAVEFORMS (0x0)
207 #define LCD_F_LOW_POWER_WAVEFORMS (LCD_F_CTL_LP)
208 
209 //*****************************************************************************
210 //
211 // The following are values that can be passed to the initParams parameter for
212 // functions: LCD_F_initModule().
213 //
214 //*****************************************************************************
215 #define LCD_F_SEGMENTS_DISABLED (0x0)
216 #define LCD_F_SEGMENTS_ENABLED (LCD_F_CTL_SON)
217 
218 //*****************************************************************************
219 //
220 // The following are values that can be passed to the mask parameter for
221 // functions: LCD_F_clearInterrupt(), LCD_F_getInterruptStatus(),
222 // LCD_F_enableInterrupt(), and LCD_F_disableInterrupt() as well as returned by
223 // the LCD_F_getInterruptStatus() function.
224 //
225 //*****************************************************************************
226 #define LCD_F_BLINKING_SEGMENTS_ON_INTERRUPT (LCD_F_IE_BLKONIE)
227 #define LCD_F_BLINKING_SEGMENTS_OFF_INTERRUPT (LCD_F_IE_BLKOFFIE)
228 #define LCD_F_FRAME_INTERRUPT (LCD_F_IE_FRMIE)
229 #define LCD_F_ANIMATION_LOOP_INTERRUPT (LCD_F_IE_ANMLOOPIE)
230 #define LCD_F_ANIMATION_STEP_INTERRUPT (LCD_F_IE_ANMSTPIE)
231 
232 //*****************************************************************************
233 //
234 // The following are values that can be passed to the displayMemory parameter
235 // for functions: LCD_F_selectDisplayMemory().
236 //
237 //*****************************************************************************
238 #define LCD_F_DISPLAYSOURCE_MEMORY (0x0)
239 #define LCD_F_DISPLAYSOURCE_BLINKINGMEMORY (LCD_F_BMCTL_DISP)
240 
241 //*****************************************************************************
242 //
243 // The following are values that can be passed to the clockPrescalar parameter
244 // for functions: LCD_F_setBlinkingControl().
245 //
246 //*****************************************************************************
247 #define LCD_F_BLINK_FREQ_CLOCK_PRESCALAR_512 LCD_F_BMCTL_BLKPRE_0
248 #define LCD_F_BLINK_FREQ_CLOCK_PRESCALAR_1024 LCD_F_BMCTL_BLKPRE_1
249 #define LCD_F_BLINK_FREQ_CLOCK_PRESCALAR_2048 LCD_F_BMCTL_BLKPRE_2
250 #define LCD_F_BLINK_FREQ_CLOCK_PRESCALAR_4096 LCD_F_BMCTL_BLKPRE_3
251 #define LCD_F_BLINK_FREQ_CLOCK_PRESCALAR_8162 LCD_F_BMCTL_BLKPRE_4
252 #define LCD_F_BLINK_FREQ_CLOCK_PRESCALAR_16384 LCD_F_BMCTL_BLKPRE_5
253 #define LCD_F_BLINK_FREQ_CLOCK_PRESCALAR_32768 LCD_F_BMCTL_BLKPRE_6
254 #define LCD_F_BLINK_FREQ_CLOCK_PRESCALAR_65536 LCD_F_BMCTL_BLKPRE_7
255 
256 //*****************************************************************************
257 //
258 // The following are values that can be passed to the clockPrescalar parameter
259 // for functions: LCD_F_setBlinkingControl().
260 //
261 //*****************************************************************************
262 #define LCD_F_BLINK_FREQ_CLOCK_DIVIDER_1 LCD_F_BMCTL_BLKDIV_0
263 #define LCD_F_BLINK_FREQ_CLOCK_DIVIDER_2 LCD_F_BMCTL_BLKDIV_1
264 #define LCD_F_BLINK_FREQ_CLOCK_DIVIDER_3 LCD_F_BMCTL_BLKDIV_2
265 #define LCD_F_BLINK_FREQ_CLOCK_DIVIDER_4 LCD_F_BMCTL_BLKDIV_3
266 #define LCD_F_BLINK_FREQ_CLOCK_DIVIDER_5 LCD_F_BMCTL_BLKDIV_4
267 #define LCD_F_BLINK_FREQ_CLOCK_DIVIDER_6 LCD_F_BMCTL_BLKDIV_5
268 #define LCD_F_BLINK_FREQ_CLOCK_DIVIDER_7 LCD_F_BMCTL_BLKDIV_6
269 #define LCD_F_BLINK_FREQ_CLOCK_DIVIDER_8 LCD_F_BMCTL_BLKDIV_7
270 
271 //*****************************************************************************
272 //
273 // The following are values that can be passed to the mode parameter for
274 // functions: LCD_F_setBlinkingControl().
275 //
276 //*****************************************************************************
277 #define LCD_F_BLINK_MODE_DISABLED (LCD_F_BMCTL_BLKMOD_0)
278 #define LCD_F_BLINK_MODE_INDIVIDUAL_SEGMENTS (LCD_F_BMCTL_BLKMOD_1)
279 #define LCD_F_BLINK_MODE_ALL_SEGMENTS (LCD_F_BMCTL_BLKMOD_2)
280 #define LCD_F_BLINK_MODE_SWITCHING_BETWEEN_DISPLAY_CONTENTS \
281  (LCD_F_BMCTL_BLKMOD_3)
282 
283 //*****************************************************************************
284 //
285 // The following are values that can be passed to the clockPrescalar parameter
286 // for functions: LCD_F_setAnimationControl().
287 //
288 //*****************************************************************************
289 #define LCD_F_ANIMATION_FREQ_CLOCK_PRESCALAR_512 LCD_F_ANMCTL_ANMPRE_0
290 #define LCD_F_ANIMATION_FREQ_CLOCK_PRESCALAR_1024 LCD_F_ANMCTL_ANMPRE_1
291 #define LCD_F_ANIMATION_FREQ_CLOCK_PRESCALAR_2048 LCD_F_ANMCTL_ANMPRE_2
292 #define LCD_F_ANIMATION_FREQ_CLOCK_PRESCALAR_4096 LCD_F_ANMCTL_ANMPRE_3
293 #define LCD_F_ANIMATION_FREQ_CLOCK_PRESCALAR_8162 LCD_F_ANMCTL_ANMPRE_4
294 #define LCD_F_ANIMATION_FREQ_CLOCK_PRESCALAR_16384 LCD_F_ANMCTL_ANMPRE_5
295 #define LCD_F_ANIMATION_FREQ_CLOCK_PRESCALAR_32768 LCD_F_ANMCTL_ANMPRE_6
296 #define LCD_F_ANIMATION_FREQ_CLOCK_PRESCALAR_65536 LCD_F_ANMCTL_ANMPRE_7
297 
298 //*****************************************************************************
299 //
300 // The following are values that can be passed to the clockPrescalar parameter
301 // for functions: LCD_F_setAnimationControl().
302 //
303 //*****************************************************************************
304 #define LCD_F_ANIMATION_FREQ_CLOCK_DIVIDER_1 LCD_F_ANMCTL_ANMDIV_0
305 #define LCD_F_ANIMATION_FREQ_CLOCK_DIVIDER_2 LCD_F_ANMCTL_ANMDIV_1
306 #define LCD_F_ANIMATION_FREQ_CLOCK_DIVIDER_3 LCD_F_ANMCTL_ANMDIV_2
307 #define LCD_F_ANIMATION_FREQ_CLOCK_DIVIDER_4 LCD_F_ANMCTL_ANMDIV_3
308 #define LCD_F_ANIMATION_FREQ_CLOCK_DIVIDER_5 LCD_F_ANMCTL_ANMDIV_4
309 #define LCD_F_ANIMATION_FREQ_CLOCK_DIVIDER_6 LCD_F_ANMCTL_ANMDIV_5
310 #define LCD_F_ANIMATION_FREQ_CLOCK_DIVIDER_7 LCD_F_ANMCTL_ANMDIV_6
311 #define LCD_F_ANIMATION_FREQ_CLOCK_DIVIDER_8 LCD_F_ANMCTL_ANMDIV_7
312 
313 //*****************************************************************************
314 //
315 // The following are values that can be passed to the mode parameter for
316 // functions: LCD_F_setAnimationControl().
317 //
318 //*****************************************************************************
319 #define LCD_F_ANIMATION_FRAMES_T0_TO_T7 LCD_F_ANMCTL_ANMSTP_7
320 #define LCD_F_ANIMATION_FRAMES_T0_TO_T6 LCD_F_ANMCTL_ANMSTP_6
321 #define LCD_F_ANIMATION_FRAMES_T0_TO_T5 LCD_F_ANMCTL_ANMSTP_5
322 #define LCD_F_ANIMATION_FRAMES_T0_TO_T4 LCD_F_ANMCTL_ANMSTP_4
323 #define LCD_F_ANIMATION_FRAMES_T0_TO_T3 LCD_F_ANMCTL_ANMSTP_3
324 #define LCD_F_ANIMATION_FRAMES_T0_TO_T2 LCD_F_ANMCTL_ANMSTP_2
325 #define LCD_F_ANIMATION_FRAMES_T0_TO_T1 LCD_F_ANMCTL_ANMSTP_1
326 #define LCD_F_ANIMATION_FRAMES_T0 LCD_F_ANMCTL_ANMSTP_0
327 
328 //*****************************************************************************
329 //
330 // The following are values that can be passed to the startPin parameter for
331 // functions: LCD_F_setPinsAsLCDFunction(); the endPin parameter for
332 // functions: LCD_F_setPinsAsLCDFunction(); the pin parameter for functions:
333 // LCD_F_setPinAsLCDFunction(), LCD_F_setPinAsPortFunction(),
334 // LCD_F_setPinAsCOM(), and LCD_F_setPinAsSEG().
335 //
336 //*****************************************************************************
337 #define LCD_F_SEGMENT_LINE_0 (0)
338 #define LCD_F_SEGMENT_LINE_1 (1)
339 #define LCD_F_SEGMENT_LINE_2 (2)
340 #define LCD_F_SEGMENT_LINE_3 (3)
341 #define LCD_F_SEGMENT_LINE_4 (4)
342 #define LCD_F_SEGMENT_LINE_5 (5)
343 #define LCD_F_SEGMENT_LINE_6 (6)
344 #define LCD_F_SEGMENT_LINE_7 (7)
345 #define LCD_F_SEGMENT_LINE_8 (8)
346 #define LCD_F_SEGMENT_LINE_9 (9)
347 #define LCD_F_SEGMENT_LINE_10 (10)
348 #define LCD_F_SEGMENT_LINE_11 (11)
349 #define LCD_F_SEGMENT_LINE_12 (12)
350 #define LCD_F_SEGMENT_LINE_13 (13)
351 #define LCD_F_SEGMENT_LINE_14 (14)
352 #define LCD_F_SEGMENT_LINE_15 (15)
353 #define LCD_F_SEGMENT_LINE_16 (16)
354 #define LCD_F_SEGMENT_LINE_17 (17)
355 #define LCD_F_SEGMENT_LINE_18 (18)
356 #define LCD_F_SEGMENT_LINE_19 (19)
357 #define LCD_F_SEGMENT_LINE_20 (20)
358 #define LCD_F_SEGMENT_LINE_21 (21)
359 #define LCD_F_SEGMENT_LINE_22 (22)
360 #define LCD_F_SEGMENT_LINE_23 (23)
361 #define LCD_F_SEGMENT_LINE_24 (24)
362 #define LCD_F_SEGMENT_LINE_25 (25)
363 #define LCD_F_SEGMENT_LINE_26 (26)
364 #define LCD_F_SEGMENT_LINE_27 (27)
365 #define LCD_F_SEGMENT_LINE_28 (28)
366 #define LCD_F_SEGMENT_LINE_29 (29)
367 #define LCD_F_SEGMENT_LINE_30 (30)
368 #define LCD_F_SEGMENT_LINE_31 (31)
369 #define LCD_F_SEGMENT_LINE_32 (32)
370 #define LCD_F_SEGMENT_LINE_33 (33)
371 #define LCD_F_SEGMENT_LINE_34 (34)
372 #define LCD_F_SEGMENT_LINE_35 (35)
373 #define LCD_F_SEGMENT_LINE_36 (36)
374 #define LCD_F_SEGMENT_LINE_37 (37)
375 #define LCD_F_SEGMENT_LINE_38 (38)
376 #define LCD_F_SEGMENT_LINE_39 (39)
377 #define LCD_F_SEGMENT_LINE_40 (40)
378 #define LCD_F_SEGMENT_LINE_41 (41)
379 #define LCD_F_SEGMENT_LINE_42 (42)
380 #define LCD_F_SEGMENT_LINE_43 (43)
381 #define LCD_F_SEGMENT_LINE_44 (44)
382 #define LCD_F_SEGMENT_LINE_45 (45)
383 #define LCD_F_SEGMENT_LINE_46 (46)
384 #define LCD_F_SEGMENT_LINE_47 (47)
385 
386 
387 //*****************************************************************************
388 //
389 // The following are values that can be passed to the com parameter for
390 // functions: LCD_F_setPinAsCOM().
391 //
392 //*****************************************************************************
393 #define LCD_F_MEMORY_COM0 (0x01)
394 #define LCD_F_MEMORY_COM1 (0x02)
395 #define LCD_F_MEMORY_COM2 (0x04)
396 #define LCD_F_MEMORY_COM3 (0x08)
397 #define LCD_F_MEMORY_COM4 (0x10)
398 #define LCD_F_MEMORY_COM5 (0x20)
399 #define LCD_F_MEMORY_COM6 (0x40)
400 #define LCD_F_MEMORY_COM7 (0x80)
401 
402 //*****************************************************************************
403 //
404 // The following are values that can be passed to the bias parameter for
405 // functions: LCD_F_selectBias().
406 //
407 //*****************************************************************************
408 #define LCD_F_BIAS_1_3 (0x0)
409 #define LCD_F_BIAS_1_2 (LCD_F_VCPCTL_LCD2B)
410 #define LCD_F_BIAS_1_4 (LCD_F_VCPCTL_LCD2B)
411 
412 /* Internal Macros for indexing */
413 #define OFS_LCDM0W 0x120
414 #define OFS_LCDBM0W 0x160
415 
416 //*****************************************************************************
417 //
428 //
429 //*****************************************************************************
430 extern void LCD_F_initModule(LCD_F_Config *initParams);
431 
432 //*****************************************************************************
433 //
439 //
440 //*****************************************************************************
441 extern void LCD_F_turnOn(void);
442 
443 //*****************************************************************************
444 //
450 //
451 //*****************************************************************************
452 extern void LCD_F_turnOff(void);
453 
454 /* Memory management functions */
455 
456 //*****************************************************************************
457 //
463 //
464 //*****************************************************************************
465 extern void LCD_F_clearAllMemory(void);
466 
467 //*****************************************************************************
468 //
474 //
475 //*****************************************************************************
476 extern void LCD_F_clearAllBlinkingMemory(void);
477 
478 //*****************************************************************************
479 //
495 //
496 //*****************************************************************************
497 extern void LCD_F_selectDisplayMemory(uint_fast16_t displayMemory);
498 
499 //*****************************************************************************
500 //
534 //
535 //*****************************************************************************
536 extern void LCD_F_setBlinkingControl(uint_fast16_t clockPrescalar,
537  uint_fast16_t divider, uint_fast16_t mode);
538 
539 //*****************************************************************************
540 //
578 //
579 //*****************************************************************************
580 extern void LCD_F_setAnimationControl(uint_fast16_t clockPrescalar,
581  uint_fast16_t divider,
582  uint_fast16_t frames);
583 
584 //*****************************************************************************
585 //
591 //
592 //*****************************************************************************
593 extern void LCD_F_enableAnimation(void);
594 
595 
596 //*****************************************************************************
597 //
603 //
604 //*****************************************************************************
605 extern void LCD_F_disableAnimation(void);
606 
607 //*****************************************************************************
608 //
614 //
615 //*****************************************************************************
616 extern void LCD_F_clearAllAnimationMemory(void);
617 
618 //*****************************************************************************
619 //
676 //
677 //*****************************************************************************
678 extern void LCD_F_setPinAsLCDFunction(uint_fast8_t pin);
679 
680 //*****************************************************************************
681 //
737 //
738 //*****************************************************************************
739 extern void LCD_F_setPinAsPortFunction(uint_fast8_t pin);
740 
741 //*****************************************************************************
742 //
850 //
851 //*****************************************************************************
852 extern void LCD_F_setPinsAsLCDFunction(uint_fast8_t startPin, uint8_t endPin);
853 
854 //*****************************************************************************
855 //
923 //
924 //*****************************************************************************
925 extern void LCD_F_setPinAsCOM(uint8_t pin, uint_fast8_t com);
926 
927 //*****************************************************************************
928 //
985 //
986 //*****************************************************************************
987 extern void LCD_F_setPinAsSEG(uint_fast8_t pin);
988 
989 //*****************************************************************************
990 //
1003 //
1004 //*****************************************************************************
1005 extern void LCD_F_selectBias(uint_fast16_t bias);
1006 
1007 //*****************************************************************************
1008 //
1023 //
1024 //*****************************************************************************
1025 extern void LCD_F_setVLCDSource(uint_fast16_t v2v3v4Source,
1026  uint_fast16_t v5Source);
1027 
1028 //*****************************************************************************
1029 //
1043 //
1044 //*****************************************************************************
1045 extern void LCD_F_clearInterrupt(uint32_t mask);
1046 
1047 //*****************************************************************************
1048 //
1059 //
1060 //*****************************************************************************
1061 extern uint32_t LCD_F_getInterruptStatus(void);
1062 
1063 //*****************************************************************************
1064 //
1074 //
1075 //*****************************************************************************
1076 extern uint32_t LCD_F_getEnabledInterruptStatus(void);
1077 
1078 //*****************************************************************************
1079 //
1093 //
1094 //*****************************************************************************
1095 extern void LCD_F_enableInterrupt(uint32_t mask);
1096 
1097 //*****************************************************************************
1098 //
1112 //
1113 //*****************************************************************************
1114 extern void LCD_F_disableInterrupt(uint32_t mask);
1115 
1116 //*****************************************************************************
1117 //
1130 //
1131 //*****************************************************************************
1132 extern void LCD_F_registerInterrupt(void (*intHandler)(void));
1133 
1134 //*****************************************************************************
1135 //
1146 //
1147 //*****************************************************************************
1148 extern void LCD_F_unregisterInterrupt(void);
1149 
1150 //*****************************************************************************
1151 //
1152 // Mark the end of the C bindings section for C++ compilers.
1153 //
1154 //*****************************************************************************
1155 #ifdef __cplusplus
1156 }
1157 #endif
1158 
1159 //*****************************************************************************
1160 //
1161 // Close the Doxygen group.
1163 //
1164 //*****************************************************************************
1165 
1166 #endif /* LCD_F_H_ */
void LCD_F_setAnimationControl(uint_fast16_t clockPrescalar, uint_fast16_t divider, uint_fast16_t frames)
Sets the animation control register.
Definition: lcd_f.c:53
void LCD_F_setPinsAsLCDFunction(uint_fast8_t startPin, uint8_t endPin)
Sets the LCD_F pins as LCD function pin.
Definition: lcd_f.c:110
void LCD_F_clearAllAnimationMemory(void)
Clears all LCD_F animation memory registers.
Definition: lcd_f.c:72
void LCD_F_setPinAsSEG(uint_fast8_t pin)
Sets the LCD_F pin as a segment line.
Definition: lcd_f.c:175
void LCD_F_clearInterrupt(uint32_t mask)
Clears the LCD_F selected interrupt flags.
Definition: lcd_f.c:207
void LCD_F_setPinAsPortFunction(uint_fast8_t pin)
Sets the LCD_F pins as port function pin.
Definition: lcd_f.c:94
void LCD_F_setBlinkingControl(uint_fast16_t clockPrescalar, uint_fast16_t divider, uint_fast16_t mode)
Sets the blinking control register.
Definition: lcd_f.c:44
void LCD_F_enableAnimation(void)
Enables animation on the LCD_F controller.
Definition: lcd_f.c:62
uint32_t clockPrescaler
Definition: lcd_f.h:78
void LCD_F_disableInterrupt(uint32_t mask)
Disables the LCD_F selected interrupts.
Definition: lcd_f.c:227
struct LCD_F_initParam LCD_F_Config
uint32_t muxRate
Definition: lcd_f.h:89
void LCD_F_unregisterInterrupt(void)
Definition: lcd_f.c:238
void LCD_F_setPinAsCOM(uint8_t pin, uint_fast8_t com)
Sets the LCD_F pin as a common line.
Definition: lcd_f.c:137
void LCD_F_initModule(LCD_F_Config *initParams)
Initializes the LCD_F Module.
Definition: lcd_f.c:5
void LCD_F_setPinAsLCDFunction(uint_fast8_t pin)
Sets the LCD_F pins as LCD function pin.
Definition: lcd_f.c:78
uint32_t clockDivider
Definition: lcd_f.h:69
void LCD_F_selectBias(uint_fast16_t bias)
Selects the bias level.
Definition: lcd_f.c:192
void LCD_F_disableAnimation(void)
Enables animation on the LCD_F controller.
Definition: lcd_f.c:67
void LCD_F_selectDisplayMemory(uint_fast16_t displayMemory)
Selects display memory.
Definition: lcd_f.c:39
uint32_t clockSource
Definition: lcd_f.h:34
uint32_t LCD_F_getEnabledInterruptStatus(void)
Returns the status of the selected interrupt flags masked with the currently enabled interrupts...
Definition: lcd_f.c:217
void LCD_F_enableInterrupt(uint32_t mask)
Enables the LCD_F selected interrupts.
Definition: lcd_f.c:222
void LCD_F_turnOff(void)
Turns the LCD_F off.
Definition: lcd_f.c:23
void LCD_F_clearAllBlinkingMemory(void)
Clears all LCD_F blinking memory registers.
Definition: lcd_f.c:34
Definition: lcd_f.h:26
void LCD_F_turnOn(void)
Turns on the LCD_F module.
Definition: lcd_f.c:18
void LCD_F_registerInterrupt(void(*intHandler)(void))
Definition: lcd_f.c:232
uint32_t LCD_F_getInterruptStatus(void)
Returns the status of the selected interrupt flags.
Definition: lcd_f.c:212
void LCD_F_setVLCDSource(uint_fast16_t v2v3v4Source, uint_fast16_t v5Source)
Sets the voltage source for V2/V3/V4 and V5.
Definition: lcd_f.c:198
uint32_t waveforms
Definition: lcd_f.h:94
void LCD_F_clearAllMemory(void)
Clears all LCD_F memory registers.
Definition: lcd_f.c:29
uint32_t segments
Definition: lcd_f.h:99

Copyright 2016, Texas Instruments Incorporated