Loading…
Loading…
Method Name: show_dev_status_and_xmtr_status_method
Method ID: 0x4A0D
Method Label:
Method Help:
- {
- char status[3];
- char xmtr_status[25];
- char is_found_active_bit;
- int check_bit;
- {
- _set_all_resp_code(0);
- _set_device_status(0xFF,0);
- _set_xmtr_device_status(0xFF,0);
- _set_xmtr_all_resp_code(0);
- }
- ;
- is_found_active_bit = 0;
- send_command_trans(48,0);
- get_more_status(status,xmtr_status);
- {
- if (status[2] != 0x00)
- {
- if (is_found_active_bit != 1)
- {
- is_found_active_bit = 1;
- ACKNOWLEDGE(literal_string(3834));
- }
- for (check_bit = 0x0001; check_bit < 0x0100; check_bit <<= 1)
- {
- if ((status[2] & check_bit) != 0x0000)
- {
- _display_xmtr_status(151,check_bit);
- }
- }
- }
- }
- ;
- {
- if (device_specific_status_0 != 0x00)
- {
- if (is_found_active_bit != 1)
- {
- is_found_active_bit = 1;
- ACKNOWLEDGE(literal_string(3834));
- }
- for (check_bit = 0x0001; check_bit < 0x0100; check_bit <<= 1)
- {
- if ((device_specific_status_0 & check_bit) != 0x0000)
- {
- _display_xmtr_status(4139,check_bit);
- }
- }
- }
- }
- ;
- {
- if (device_specific_status_1 != 0x00)
- {
- if (is_found_active_bit != 1)
- {
- is_found_active_bit = 1;
- ACKNOWLEDGE(literal_string(3834));
- }
- for (check_bit = 0x0001; check_bit < 0x0100; check_bit <<= 1)
- {
- if ((device_specific_status_1 & check_bit) != 0x0000)
- {
- _display_xmtr_status(4140,check_bit);
- }
- }
- }
- }
- ;
- {
- if (device_specific_status_2 != 0x00)
- {
- if (is_found_active_bit != 1)
- {
- is_found_active_bit = 1;
- ACKNOWLEDGE(literal_string(3834));
- }
- for (check_bit = 0x0001; check_bit < 0x0100; check_bit <<= 1)
- {
- if ((device_specific_status_2 & check_bit) != 0x0000)
- {
- _display_xmtr_status(4141,check_bit);
- }
- }
- }
- }
- ;
- {
- if (device_specific_status_3 != 0x00)
- {
- if (is_found_active_bit != 1)
- {
- is_found_active_bit = 1;
- ACKNOWLEDGE(literal_string(3834));
- }
- for (check_bit = 0x0001; check_bit < 0x0100; check_bit <<= 1)
- {
Please login for more