Microchip® Advanced Software Framework

event.h File Reference

Event Manager.

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

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "ast.h"
#include "bpm.h"
#include "eic.h"
#include "sleepmgr.h"
#include "sysclk.h"
#include "touch_api_sam4l.h"

Functions

void event_button_init (void)
 Event Button Init. More...
 
bool event_is_push_button_pressed (void)
 Check if push button is pressed or not. More...
 
bool event_qtouch_get_button_state (void)
 Return QTouch Button State. More...
 
bool event_qtouch_get_slider_state (uint8_t *event_qtouch_position)
 Return QTouch Slider State. More...
 
void event_qtouch_init (void)
 Event Manager QTouch Init. More...
 

bool event_is_push_button_pressed ( void  )

Check if push button is pressed or not.

References event_pbEvent.

Referenced by main().

bool event_qtouch_get_button_state ( void  )

Return QTouch Button State.

References event_qTouchButtonPressed, and GET_QT_SENSOR_STATE.

Referenced by main().

bool event_qtouch_get_slider_state ( uint8_t *  event_qtouch_position)

Return QTouch Slider State.

Parameters
event_qtouch_positionreturned slider position.

References GET_QT_ROTOR_SLIDER_POSITION, and GET_QT_SENSOR_STATE.

Referenced by main().