Microchip® Advanced Software Framework

ui.c File Reference

User Interface.

Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.

#include <asf.h>
#include "ui.h"

Macros

#define LED_Off(LED_0_PIN)   port_pin_set_output_level(LED_0_PIN, 1)
 
#define LED_On(LED_0_PIN)   port_pin_set_output_level(LED_0_PIN, 0)
 

Functions

void ui_init (void)
 Initializes the user interface. More...
 
void ui_powerdown (void)
 Enters the user interface in power down mode. More...
 
void ui_process (uint16_t framenumber)
 This process is called each 1ms It is called only if the USB interface is enabled. More...
 
void ui_start_read (void)
 
void ui_start_write (void)
 
void ui_stop_read (void)
 
void ui_stop_write (void)
 
void ui_wakeup (void)
 Exits the user interface of power down mode. More...
 

#define LED_Off (   LED_0_PIN)    port_pin_set_output_level(LED_0_PIN, 1)

Referenced by ui_powerdown(), and ui_process().

#define LED_On (   LED_0_PIN)    port_pin_set_output_level(LED_0_PIN, 0)

Referenced by ui_init(), ui_process(), and ui_wakeup().

void ui_init ( void  )

Initializes the user interface.

References LED_0_PIN, and LED_On.

Referenced by main().

void ui_powerdown ( void  )

Enters the user interface in power down mode.

References LED_0_PIN, and LED_Off.

Referenced by main(), and main_suspend_action().

void ui_process ( uint16_t  framenumber)

This process is called each 1ms It is called only if the USB interface is enabled.

Parameters
framenumberCurrent frame number

References LED_0_PIN, LED_Off, and LED_On.

Referenced by main_sof_action().

void ui_start_read ( void  )
void ui_start_write ( void  )
void ui_stop_read ( void  )
void ui_stop_write ( void  )
void ui_wakeup ( void  )

Exits the user interface of power down mode.

References LED_0_PIN, and LED_On.

Referenced by main_resume_action().