RK: RK3288 遥控器调试
作者:互联网
一.usercode 用户码
device\rockchip\common\rkxx-remotectl.kl
case RMC_USERCODE: { ddata->scanData <<= 1; ddata->count ++; // printk("RMC_USERCODE,period=%d,count=%d\n",ddata->period,ddata->count ); if ((TIME_BIT1_MIN < ddata->period) && (ddata->period < TIME_BIT1_MAX)){ ddata->scanData |= 0x01; } if (ddata->count == 0x10){//16 bit user code // printk("u=0x%x\n",((ddata->scanData)&0xFFFF)); if (remotectl_keybdNum_lookup(ddata)){ ddata->state = RMC_GETDATA; ddata->scanData = 0; ddata->count = 0; }else{ //user code error ddata->state = RMC_PRELOAD; } } } break;
标签:count,code,period,RMC,遥控器,RK3288,ddata,scanData,RK 来源: https://www.cnblogs.com/crushgirl/p/14190330.html