uint8 *pSpeedTab; //指向打印头走纸电机加速表指针变量
uint8 gP3Buf; //P3口输出缓冲
uint8 gExciteSetp; //走纸电机激励计数
uint8 gCntSetp; //走纸电机步计数器
bit bNextSetp; // 1 走纸电机输出下一步
bit bMotorMode; //走纸电机运行方式 1 加速 0 匀速
static uint8 MotorControl[ ] = { 0x20,0x00,0x40,0x60 }; //步进电机输出控制字
问题:
gP3Buf = ( gP3Buf & 0x9F )|MotorControl[ gExciteSetp++ ];
这句是给gP3Buf 赋值,
( gP3Buf & 0x9F )|MotorControl[ gExciteSetp++ ]是什么意思我不懂