Loading…

Method Name: GetHealthStatus

Method ID: 0x0403

Method Label: GetHealthStatus

Method Help:


  • {
  • int set;
  • set = 0;
  • if (device_specific_status_0 & 0x02 || device_specific_status_0 & 0x04 || device_specific_status_0 & 0x08 || device_specific_status_0 & 0x10 || device_specific_status_0 & 0x20 || device_specific_status_0 & 0x40 || device_specific_status_1 & 0x01 || device_specific_status_1 & 0x02 || device_specific_status_1 & 0x04 || device_specific_status_1 & 0x08 || device_specific_status_1 & 0x10 || device_specific_status_1 & 0x20 || device_specific_status_1 & 0x40 || device_specific_status_2 & 0x01 || device_specific_status_2 & 0x02 || device_specific_status_2 & 0x04 || device_specific_status_2 & 0x08 || device_specific_status_2 & 0x10 || device_specific_status_2 & 0x20 || device_specific_status_2 & 0x40 && device_type_core_processor == 40 || device_specific_status_2 & 0x80 && device_type_core_processor == 40 || device_specific_status_3 & 0x01 && device_type_core_processor == 40 || device_specific_status_3 & 0x02 && device_type_core_processor == 40 || device_specific_status_3 & 0x04 || device_specific_status_3 & 0x08 || device_specific_status_3 & 0x10 || device_specific_status_3 & 0x80 && device_type_core_processor == 50 || device_specific_status_4 & 0x01 || device_specific_status_4 & 0x02 || device_specific_status_4 & 0x04 || device_specific_status_4 & 0x08 || device_status & 0x80)
  • {
  • set = 1;
  • return 1;
  • }
  • else
  • {
  • if (device_specific_status_5 & 0x04 || device_specific_status_5 & 0x08 && device_type_core_processor == 40 || device_specific_status_5 & 0x20 || device_specific_status_5 & 0x80 || device_specific_status_14 & 0x01 || device_specific_status_14 & 0x02 || device_specific_status_14 & 0x80 || device_specific_status_15 & 0x01 || device_specific_status_15 & 0x02 || device_specific_status_15 & 0x20 || device_specific_status_16 & 0x80 || device_status & 0x01 || device_status & 0x02 || device_status & 0x04 || device_status & 0x08 || device_status & 0x20)
  • {
  • set = 1;
  • return 4;
  • }
  • else
  • {
  • if (device_specific_status_5 & 0x01 || device_specific_status_5 & 0x02 || device_specific_status_5 & 0x10 || device_specific_status_5 & 0x40 || device_specific_status_14 & 0x04 || device_specific_status_14 & 0x08 || device_specific_status_14 & 0x20 || device_specific_status_14 & 0x40 || device_specific_status_15 & 0x04 || device_specific_status_15 & 0x08 || device_specific_status_15 & 0x10 || device_specific_status_17 & 0x01 && device_type_core_processor == 50 || device_specific_status_19 & 0x01 || device_specific_status_19 & 0x02 || device_specific_status_19 & 0x04 || device_specific_status_19 & 0x08 || device_specific_status_19 & 0x10)
  • {
  • set = 1;


Please login for more