capi/key.c File Reference

#include "key.h"
#include "type.h"
#include "ad-isr.h"
#include "armVIC.h"
#include "trace.h"
Include dependency graph for key.c:
This graph shows which files directly or indirectly include this file:

Defines

#define AD0_VIC_SLOT   2

Functions

void ADC_Init (UINT8 iChannel)
UINT8 ConvertADValueToVKValue (UINT16 adValue)
void InitKeyState (keyStateType *ks)
UINT8 ProcessKeyPress (keyStateType *ks)

Define Documentation

#define AD0_VIC_SLOT   2

Referenced by ADC_Init().


Function Documentation

void ADC_Init ( UINT8  iChannel  ) 

References _VIC_ADDR, _VIC_CNTL, AD0_VIC_SLOT, AD0CR, adcISR0(), PINSEL1, VIC_AD0, VIC_BIT, VIC_ENABLE, VICIntEnable, and VICIntSelect.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

UINT8 ConvertADValueToVKValue ( UINT16  adValue  ) 

References VK_0_NONE, VK_1, VK_2, VK_3, VK_4, and VK_5.

Referenced by ProcessKeyPress().

Here is the caller graph for this function:

void InitKeyState ( keyStateType ks  ) 
UINT8 ProcessKeyPress ( keyStateType ks  ) 

References ConvertADValueToVKValue(), keyStateType::countOnMin, keyStateType::currentVKey, g_adValue, keyStateType::minSample, keyStateType::newKeyAction, TRACE2, VK_0_NONE, WM_KEY_DOWN, and WM_KEY_UP.

Referenced by Idle().

Here is the call graph for this function:

Here is the caller graph for this function:

Generated on Wed Mar 23 11:08:32 2011 for Omnima LCD by  doxygen 1.6.3