20-101-0732 Rabbit Semiconductor, 20-101-0732 Datasheet - Page 71

no-image

20-101-0732

Manufacturer Part Number
20-101-0732
Description
INTERFACE SMART SCREEN OP7100
Manufacturer
Rabbit Semiconductor
Datasheet

Specifications of 20-101-0732

Module/board Type
Single Board Computer Module
For Use With/related Products
OP7100
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Other names
20-101-732
20-101-732
OP7100
• int kpDefStChgFn( char *curState, char *changed )
• int kpDefGetKey()
• void kpDefInit()
This is the default state change function for the default get key function
kpDefGetKey
there is a change in the keypad state. If the current key is not read by
kpDefGetKey
PARAMETERS:
state of the keypad (bitmapped, 1 indicates key is not currently
pressed).
changed
from the previous scan. (bitmapped, 1 indicates there was a change).
RETURN VALUE: -1 if no key is pressed. Otherwise
returns the normalized key number. The normalized key number is
8*row+col+edge*256
key is pressed.
This is the default get key function. It returns the key previously
pressed (i.e., from the one-keypress buffer). The key pressed is actually
interpreted by
kpDefInit
RETURN VALUE: -1 if no key is pressed. Otherwise,
returns the normalized key number. The normalized key number is
8*row+col+edge*256
key is pressed.
Initializes the library to use the default state change function to inter-
pret key presses when
get the code of the last key pressed.
points to an array that reflects the CHANGE of keypad state
should be used to initialize the module.
kpDefStChgFn
. This function is called back by
, the new key pressed will not be registered.
curState
kpScanState
.
.
edge
edge
points to an array that reflects the current
, which is called back by
is 1 if the key is released, and 0 if the
is 1 if the key is released, and 0 if the
is called. Use
kpScanState
kpDefGetKey
kpScanState
kpDefGetKey
kpScanState
Software
when
to
71
.

Related parts for 20-101-0732