ModusToolbox Safety Test Library
Loading...
Searching...
No Matches

General Description

Functions

uint8_t SelfTest_PWM_GateKill (TCPWM_Type *base, uint32_t cntNum)
 The TCPWM base and CntNum is passed to check whether the counter is stopped or not.

Function Documentation

◆ SelfTest_PWM_GateKill()

uint8_t SelfTest_PWM_GateKill ( TCPWM_Type * base,
uint32_t cntNum )

The TCPWM base and CntNum is passed to check whether the counter is stopped or not.

If the counter is not incrementing/decrementing, the PWM output is inactive.

Note
This test only verifies that the TCPWM counter stopped between the two reads. It does not directly evaluate the actual pin or output state. Functional verification of the pin state is tracked separately.
Parameters
baseThe pointer to a TCPWM instance.
cntNumThe Counter instance number in the selected TCPWM.
Returns
OK_STATUS (0) - Test passed
ERROR_STATUS (1) - Test failed