/*
 * Copyright (c) 1999-2000 University of California, Riverside.
 * Permission to copy is granted provided that this header remains
 * intact.  This software is provided with no warranties.
 *
 * Version : 1.0
 */

/*--------------------------------------------------------------------------*/

static unsigned char xdata P_STAT_REG_ADDR _at_ 65531;
static unsigned char xdata P_CMND_REG_ADDR _at_ 65532;
static unsigned char xdata P_DATA_REG_ADDR _at_ 65533;

/*--------------------------------------------------------------------------*/

void CcdppInitialize() {
    
    /* no code */
}

/*--------------------------------------------------------------------------*/

void CcdppCapture(void) {
    
    P_CMND_REG_ADDR = 1;
    
    while( P_STAT_REG_ADDR == 1 ) {
        
        /* busy wait */
    }
}

/*--------------------------------------------------------------------------*/

char CcdppPopPixel(void) {
    
    return P_DATA_REG_ADDR;
}

<div align="center"><br /><script type="text/javascript"><!--
google_ad_client = "pub-7293844627074885";
//468x60, Created at 07. 11. 25
google_ad_slot = "8619794253";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br />&nbsp;</div>