Loading…

方法名称: sensor_reset_method

方法ID: 0x40DE

方法标签: Hardware Reset

方法描述: Hardware Reset will restart the CPU without loosing data.


  • {
  • char status[3];
  • int i_result;
  • int i_choice;
  • SET_NUMBER_OF_RETRIES(7);
  • _set_no_device(2);
  • _set_all_resp_code(0);
  • _set_device_status(0xFF,0);
  • _set_xmtr_all_resp_code(0);
  • _set_xmtr_device_status(0xFF,0);
  • _add_abort_method(16737);
  • ACKNOWLEDGE(literal_string(613));
  • DELAY(4,literal_string(614));
  • DELAY(2,literal_string(615));
  • send(42,status);
  • if (status[0] != 0)
  • {
  • if (status[0] == 3 || status[0] == 4 || status[0] == 2 || status[0] == 65 || status[0] == 113 || status[0] == 114)
  • {


请登录以获得完整内容