5.1.105. SPI communication fault count (psp_FaultCount)

Interface to read the number of SPI transmit errors on a given device since initialisation.

5.1.105.1. Supported targets

M670-000

5.1.105.2. Required license

None (Main library). (See Section 2.3, “Licensed Features”.)

5.1.105.3. Description

Certain SPI devices support the ability to validate their communication with the main processor. If a fault occurs in the communication, the platform will track the error. This block allows the number of detected errors to be reported to the application.

5.1.105.4. Inports

  • sim_count

    Only used under simulation when the parameter Provide simulation input? is ticked. The outport count is written using the value of this inport.

    Range: [0, 255] counts.

    Value type:Real
    Calibratable:No

5.1.105.5. Outports

  • count

    The number of SPI faults reported for the specified device.

    Range: [0, 255] counts.

    Value type:Real
    Calibratable:No

5.1.105.6. Mask parameters

  • Device

    The SPI device for which to read the fault count.

    Value type:List
    Calibratable:No
  • Sample time

    The periodicity of the block execution.

    Range: [0.001, 3600] seconds

    Value type:Real
    Calibratable:No
  • Provide simulation input?

    Tick to enable inport sim_count.

    Value type:Boolean
    Calibratable:No

5.1.105.7. Notes

The counter Value will saturate at 255. This value is only cleared by resetting the ECU.