Loading…
Loading…
方法名称: MthSetSimulationBits
方法ID: 0x422C
方法标签: Set Simulation Bits
方法描述: (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;
- }
请登录以获得完整内容