Document API IEC60730 Library
Public Member Functions | Static Public Attributes | List of all members

IEC60730 IRQ Plausibility Verification Tests. More...

Public Member Functions

def setUp (self)
 Set up connect device.
 
def test_irq_execution (self)
 Verify the DUT repeatedly executes the IRQ plausibility test, indicating no erroneous entry into safe state. More...
 
def test_irq_out_of_bounds (self)
 Verifies that the IRQ plausibility test forces entry into safe state when IRQs execute out-of-spec. More...
 
- Public Member Functions inherited from iec60730_test_base.iec60730TestBase
def env_setup (self, adapter_serial_no, chip_name, lst_file_path, library_path, comp="GCC")
 
def init_connect_group (self)
 
def connect_mcu (self, chip_name)
 
def re_connect_mcu (self)
 
def adapter_close (self)
 
def flash_mcu (self)
 
def erase_mcu (self)
 
def scan_adapter (self, serial_number, chip_name)
 
def pre_exec_test (self)
 
def post_exec_test (self)
 
def get_variable_address (self, relative_path, var_name)
 
def get_label (self, address)
 
def set_chip_name (self, chip_name)
 

Static Public Attributes

string TEST_SUITE_NAME = "IRQ"
 Text name of the test suite, used in XML output.
 

Additional Inherited Members

- Public Attributes inherited from iec60730_test_base.iec60730TestBase
 logger
 
 adapter
 

Detailed Description

IEC60730 IRQ Plausibility Verification Tests.

This class runs IEC60730 verification tests for the irq plausibility test.

Hardware setup: Connect DUT to PC. No additional hardware setup required.

Member Function Documentation

◆ test_irq_execution()

def integration_test_iec60730_irq.iec60730_irq.test_irq_execution (   self)

Verify the DUT repeatedly executes the IRQ plausibility test, indicating no erroneous entry into safe state.

Order of execution:

  • Verify code reaches breakpoint at IEC60730_IRQ_BKPT
  • Verify code reaches breakpoint at IEC60730_IRQ_BKPT
    • Test passes, return True
Returns
True

◆ test_irq_out_of_bounds()

def integration_test_iec60730_irq.iec60730_irq.test_irq_out_of_bounds (   self)

Verifies that the IRQ plausibility test forces entry into safe state when IRQs execute out-of-spec.

Order of execution:

  • Verify code reaches breakpoint at IEC60730_IRQ_BKPT
  • Force value of interrupt count to be less than minimum
  • Verify safe state entrance
  • Reset
  • Verify code reaches breakpoint at IEC60730_IRQ_BKPT
  • Force value of interrupt count to be higher than maximum
  • Verify code reaches breakpoint at IEC60730_SAFE_STATE_BKPT
Returns
True

The documentation for this class was generated from the following file: