16.12.2012 Views

OS-9 for the Prospector P1100 Board Guide

OS-9 for the Prospector P1100 Board Guide

OS-9 for the Prospector P1100 Board Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

MAUI Driver Descriptions<br />

Raw Mode<br />

An application can put this protocol module in a "raw" mode where data<br />

points are not filtered, averaged, or converted to screen coordinates. That<br />

is, <strong>the</strong> data from <strong>the</strong> hardware is passed directly up to <strong>the</strong> application.<br />

The application can put this protocol module in a "raw" mode by calling:<br />

inp_set_sim_meth(inpdev,RAW_MODE). After calibration, <strong>the</strong><br />

program will need to put <strong>the</strong> protocol module back in NATIVE mode by<br />

calling: inp_set_sim_meth(inpdev,DEFAULT_SIM_METH). There is a<br />

sample touch screen Calibration Application in <strong>the</strong> TOUCH_CAL directory.<br />

When <strong>the</strong> protocol module is taken out of "raw" mode, it will try to read new<br />

calibration data points from <strong>the</strong> ucb1200.dat data module. After <strong>the</strong> data is<br />

read from <strong>the</strong> module, it is no longer needed.<br />

cdb.touch<br />

The touch screen can be registered with MAUI by loading <strong>the</strong> cdb.touch<br />

module in memory be<strong>for</strong>e any programs using input are started. This will<br />

specify <strong>the</strong> spucb1200 as <strong>the</strong> driver, cdb.touch as <strong>the</strong> descriptor, and<br />

mp_ucb1200 as <strong>the</strong> protocol module.<br />

Compile Time Options<br />

Table B-13 shows compile time options used to control <strong>the</strong> default<br />

calibration settings and also <strong>the</strong> screen size. These options can be<br />

specified with a value in <strong>the</strong> mp_ucb1200 makefile to modify <strong>the</strong> defaults.<br />

Table B-13 Compile Time Options<br />

Name Purpose<br />

SCREEN_WIDTH Screen Width in Pixels<br />

SCREEN_HEIGHT Screen Weight in Pixels<br />

<strong>OS</strong>-9 <strong>for</strong> <strong>the</strong> <strong>Prospector</strong> <strong>P1100</strong> <strong>Board</strong> <strong>Guide</strong> 85<br />

B

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!