Loading…
Loading…
Method Name: MthSetSimulationBits
Method ID: 0x422C
Method Label: Set Simulation Bits
Method Help: (De)activates the selected Simulation bits
- {
- char status[3];
- _set_device_status(0xFF,0);
- _set_all_resp_code(0);
- _set_xmtr_device_status(0xFF,0);
- _set_xmtr_all_resp_code(0);
- if ((device_specific_status_3Simulation & 0x10) != 0)
- {
- simulate_bit_value = 1;
- }
- else
- {
- simulate_bit_value = 0;
- }
- simulate_bit_index = 36;
- send(527,status);
- if ((device_specific_status_3Simulation & 0x20) != 0)
- {
- simulate_bit_value = 1;
- }
- else
- {
- simulate_bit_value = 0;
- }
- simulate_bit_index = 37;
- send(527,status);
- if ((device_specific_status_3Simulation & 0x40) != 0)
- {
- simulate_bit_value = 1;
- }
- else
- {
- simulate_bit_value = 0;
- }
- simulate_bit_index = 38;
- send(527,status);
- if ((device_specific_status_3Simulation & 0x80) != 0)
- {
- simulate_bit_value = 1;
- }
- else
- {
- simulate_bit_value = 0;
- }
- simulate_bit_index = 39;
- send(527,status);
- if ((device_specific_status_3Simulation & 0x01) != 0)
- {
- simulate_bit_value = 1;
- }
- else
- {
- simulate_bit_value = 0;
- }
- simulate_bit_index = 32;
- send(527,status);
- if ((device_specific_status_3Simulation & 0x02) != 0)
- {
- simulate_bit_value = 1;
- }
- else
- {
- simulate_bit_value = 0;
- }
Please login for more