Loading…

方法名称: write_protect_method

方法ID: 0x279B

方法标签: Change SW Write Protect

方法描述: Change Software Write Protect- Can be set to 'Yes' or 'No'.


  • {
  • int result;
  • int write_protect_value;
  • char status[3];
  • _set_all_resp_code(0);
  • _set_device_status(0xFF,0);
  • _set_xmtr_all_resp_code(0);
  • _set_xmtr_device_status(0xFF,0);
  • send(214,status);
  • if(status[0])
  • {
  • display_response_status(214,status[0]);
  • DELAY(3,"|en|Aborting method due to last error.");
  • process_abort();
  • }
  • write_protect_value = _ivar_value(16435);
  • if(write_protect_value == 1)
  • {
  • ACKNOWLEDGE("|en|Hardware Write Protect mode is \"Yes\".\nDo not change Software Write Protect mode.");
  • process_abort();
  • }


请登录以获得完整内容