SAM4L LCDCA example.
Copyright (c) 2012-2018 Microchip Technology Inc. and its subsidiaries.
#include <asf.h>
#include <string.h>
#include "conf_example.h"
Macros | |
#define | MAX_NUM_LOWPOWER_STR 4 |
Functions | |
static void | c42364a_write_alpha_packet (const uint8_t *data) |
Write string to C42048A lcd glass alphanumeric field. More... | |
static void | c42364a_write_num_packet (const uint8_t *data) |
Write string to c42048a lcd glass numeric field. More... | |
static void | configure_console (void) |
Configure serial console. More... | |
static void | lcdca_callback (void) |
Callback handler for LCDCA Interrupt. More... | |
int | main (void) |
Application entry point for LCDCA example. More... | |
static void | wait_for_switches (void) |
Wait for push button been pressed. More... | |
#define MAX_NUM_LOWPOWER_STR 4 |
Referenced by main().
|
inlinestatic |
Write string to C42048A lcd glass alphanumeric field.
This function will write the input string to the alphanumeric field of the lcd glass.
data | Pointer to the data input string |
[lcd_example_write_alphanumeric]
[lcd_example_write_alphanumeric]
References LCDCA_TDG_14SEG4COM, and lcdca_write_packet().
Referenced by main().
|
inlinestatic |
Write string to c42048a lcd glass numeric field.
This function will write the input string to the numeric field of the lcd glass.
data | Pointer to the data input string |
[lcd_example_write_numeric]
[lcd_example_write_numeric]
References LCDCA_TDG_7SEG4COM, and lcdca_write_packet().
|
static |
Configure serial console.
References uart_rs232_options::baudrate, and stdio_serial_init().
Referenced by main().
|
static |
Callback handler for LCDCA Interrupt.
Referenced by main().
int main | ( | void | ) |
Application entry point for LCDCA example.
[lcd_example_scroll_config_1]
[lcd_example_scroll_config_1]
[lcd_example_scroll_config_2]
[lcd_example_scroll_config_2]
[lcd_example_init]
[lcd_example_init_clock]
[lcd_example_init_clock]
[lcd_example_set_config]
[lcd_example_set_config] [lcd_example_enable_module]
[lcd_example_enable_module] [lcd_example_enable_timers]
[lcd_example_enable_timers]
[lcd_example_backlight_on]
[lcd_example_backlight_on] [lcd_example_init]
[lcd_example_blink_init]
[lcd_example_blink_init]
[lcd_example_shift_enable]
[lcd_example_shift_enable]
[lcd_example_scrolling_enable]
[lcd_example_scrolling_enable]
References lcdca_automated_char_config::automated_mode, lcdca_automated_char_config::automated_timer, board_init(), BOARD_NAME, c42364a_write_alpha_packet(), c42364a_write_num_packet(), configure_console(), lcdca_config::contrast, lcdca_circular_shift_config::data, lcdca_automated_char_config::dign, lcdca_automated_char_config::dir_reverse, lcdca_config::duty_type, lcdca_config::fc0, lcdca_config::fc1, lcdca_config::fc2, IOPORT_PIN_LEVEL_HIGH, ioport_set_pin_level(), lcdca_blink_config::lcd_blink_mode, lcdca_blink_config::lcd_blink_timer, lcdca_config::lcd_clkdiv, lcdca_circular_shift_config::lcd_csr_dir, lcdca_circular_shift_config::lcd_csr_timer, lcdca_config::lcd_pres, lcdca_automated_char_config::lcd_tdg, lcdca_automated_char_set_config(), lcdca_automated_char_start(), lcdca_automated_char_stop(), LCDCA_AUTOMATED_DIR_REVERSE, LCDCA_AUTOMATED_MODE_SCROLLING, LCDCA_AUTOMATED_MODE_SEQUENTIAL, lcdca_blink_enable(), LCDCA_BLINK_SELECTED, lcdca_blink_set_config(), lcdca_callback(), lcdca_circular_shift_enable(), lcdca_circular_shift_set_config(), lcdca_clk_init(), LCDCA_CSR_RIGHT, lcdca_enable(), lcdca_enable_timer(), lcdca_enable_wakeup(), lcdca_set_blink_pixel(), lcdca_set_callback(), lcdca_set_config(), lcdca_set_pixel(), LCDCA_TDG_14SEG4COM, LCDCA_TIMER_FC0, LCDCA_TIMER_FC1, LCDCA_TIMER_FC2, lcdca_toggle_pixel(), lcdca_config::lp_wave, MAX_NUM_LOWPOWER_STR, lcdca_config::port_mask, lcdca_circular_shift_config::size, sleepmgr_enter_sleep(), sleepmgr_init(), lcdca_automated_char_config::steps, lcdca_automated_char_config::stseg, sysclk_init(), wait_for_switches(), and lcdca_config::x_bias.
|
static |
Wait for push button been pressed.
References delay_ms, and ioport_get_pin_level().
Referenced by main().