Loading…

方法名称: self_test

方法ID: 0x4007

方法标签: Status

方法描述:


  • {
  • char status[3];
  • char xmtr_status[25];
  • long x;
  • _set_all_resp_code(0);
  • _set_device_status(0xFF,0);
  • _set_xmtr_all_resp_code(0);
  • _set_xmtr_device_status(0xFF,0);
  • get_more_status(status,xmtr_status);
  • if (xmtr_status[0] || xmtr_status[1] || xmtr_status[2] || xmtr_status[3])
  • {
  • for (x = 1; x < 0x100; x <<= 1)
  • {
  • if (xmtr_status[0] & x)
  • _display_xmtr_status(4021,x);
  • }
  • for (x = 1; x < 0x100; x <<= 1)
  • {
  • if (xmtr_status[1] & x)
  • _display_xmtr_status(4022,x);
  • }


请登录以获得完整内容