Atmel Software Framework

sensor_demo.h File Reference

XMEGA-A3BU Xplained Sensor Demo Common Definitions.

Copyright (c) 2011-2015 Atmel Corporation. All rights reserved.

#include <stdio.h>
#include <asf.h>
#include <led.h>
#include <sensor.h>

Macros

#define ALL_LEDS   (LED0 | LED1 | LED2 | LED3)
 
#define CHARS_PER_LINE   (LCD_WIDTH_PIXELS / SYSFONT_WIDTH)
 
#define clear_screen()
 
#define hz_to_ms(hz)   ((unsigned long)((1000 / (hz)) + 0.5))
 
#define LINES_PER_SCREEN   (LCD_HEIGHT_PIXELS / SYSFONT_LINESPACING)
 
#define PROMPT_LED   (LED0)
 
#define radians(a)   (DEG_TO_RAD * (a))
 
#define REFRESH_PERIOD   (2 /* Hertz */)
 
#define screen_border()
 
#define SW1   (GPIO_PUSH_BUTTON_1)
 
#define switch_pressed(sw)   (ioport_get_value(sw) == false)
 

#define ALL_LEDS   (LED0 | LED1 | LED2 | LED3)
#define CHARS_PER_LINE   (LCD_WIDTH_PIXELS / SYSFONT_WIDTH)
#define clear_screen ( )
Value:
(0, 0, LCD_WIDTH_PIXELS, LCD_HEIGHT_PIXELS, GFX_PIXEL_CLR)
#define gfx_mono_draw_filled_rect(x, y, width, height, color)
Definition: gfx_mono_c12832_a1z.h:91
Pixel is cleared.
Definition: gfx_mono.h:94

Referenced by main(), and prompt_user().

#define hz_to_ms (   hz)    ((unsigned long)((1000 / (hz)) + 0.5))

Referenced by draw_formatted_data(), and main().

#define LINES_PER_SCREEN   (LCD_HEIGHT_PIXELS / SYSFONT_LINESPACING)
#define PROMPT_LED   (LED0)
#define radians (   a)    (DEG_TO_RAD * (a))

Referenced by main().

#define REFRESH_PERIOD   (2 /* Hertz */)

Referenced by draw_formatted_data(), and main().

#define screen_border ( )
Value:
(0, 0, LCD_WIDTH_PIXELS, LCD_HEIGHT_PIXELS, GFX_PIXEL_SET)
Pixel is set on screen (OR)
Definition: gfx_mono.h:96
#define gfx_mono_draw_rect(x, y, width, height, color)
Definition: gfx_mono_c12832_a1z.h:88

Referenced by main().

#define SW1   (GPIO_PUSH_BUTTON_1)

Referenced by main(), and prompt_user().

#define switch_pressed (   sw)    (ioport_get_value(sw) == false)

Referenced by main(), and prompt_user().