EPDC Android Patch Rev 13.4.1.01

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

EPDC Android Patch Rev 13.4.1.01

575 Views
norishinozaki
Contributor V

Hello,

I'm using EPDC Android Patch Rev 13.4.1.01.

There is JavaDoc in the patch like follows.

     /**      * The waveform mode of no wait update

      * @hide     

    */

     public static final int EINK_WAIT_MODE_NOWAIT = 0x00000000;

     /**      * The waveform mode of wait update

      * @hide

      */

     public static final int EINK_WAIT_MODE_WAIT = 0x00000040;

     /**      * The Mask of waveform mode

      * @hide     

    */     public static final int EINK_WAIT_MODE_MASK = 0x00000040;

Could you provide a doc which explains the register functions?

Best regards,

N.Shinozaki

Labels (2)
2 Replies

413 Views
gusarambula
NXP TechSupport
NXP TechSupport

Hello Nori Shinozaki,

Unfortunately we do not have a document explaining the code. The only recommendation we can provide is to review the code in order to understand what each of the definitions represent.

For example, EINK_WAIT_MODE_xxx is used in the followed code, so we can understand it tells the driver to wait for the EINK operation to be complete or not.

+    if((updatemode & EINK_WAIT_MODE_MASK) == EINK_WAIT_MODE_NOWAIT)

+        wait_for_complete = false;

+    else if((updatemode & EINK_WAIT_MODE_MASK) == EINK_WAIT_MODE_WAIT)

+        wait_for_complete = true;

+    else

+        LOGI("wait_for_complete  wrong\n");

+

...

+ if (wait_for_complete) {

+  /* Get unique marker value */

+  upd_data.update_marker = marker_val++;

+ } else {

+  upd_data.update_marker = 0;

+ }

+

+ retval = ioctl(fb_dev, MXCFB_SEND_UPDATE, &upd_data);

+ while (retval < 0) {

+  /* We have limited memory available for updates, so wait and

+   * then try again after some updates have completed */

+  usleep(300000);

+  retval = ioctl(fb_dev, MXCFB_SEND_UPDATE, &upd_data);

+        LOGI("MXCFB_SEND_UPDATE  retval = 0x%x try again maybe", retval);

+ }

I hope this helps!

0 Kudos

413 Views
norishinozaki
Contributor V

Hello All,

Understood, thanks for answers!

Best regards,

Nori Shinozaki

2016-01-29 2:17 GMT+09:00 gusarambula <admin@community.freescale.com>:

<http://jiveon.jivesoftware.com/mpss/c/9AA/PDcDAA/t.1u7/OT8Ig6qiSauH2mDBHGn3jw/h0/eqhG5v9o4WV1pCmWaB03cUjBPgRj-2F3GoJUaXSZ409bQ-3D>

EPDC Android Patch Rev 13.4.1.01

reply from gusarambula

<http://jiveon.jivesoftware.com/mpss/c/9AA/PDcDAA/t.1u7/OT8Ig6qiSauH2mDBHGn3jw/h1/eqhG5v9o4WV1pCmWaB03cUjBPgRj-2F3GoJUaXSZ409bQrOnGQJsdQCfMqIAVL-2FcPb9O0jzzRmeYyNWhSNkDmRjsPCO1Dcvb5Sk-2BGm2eHvtos-3D>

in i.MX Community - View the full discussion

<http://jiveon.jivesoftware.com/mpss/c/9AA/PDcDAA/t.1u7/OT8Ig6qiSauH2mDBHGn3jw/h2/eqhG5v9o4WV1pCmWaB03cUjBPgRj-2F3GoJUaXSZ409bQVd0zoE5aWAxcUJ0Ytx8E5erR0TlgulviAv8P84zYbPtdMZXn2thp3NsxosCoRKM0-3D>