Jump to main content

##

# 3.1.9 mcAppI_OverCurrentReactionIsr

## C

    /* Over current reaction ISR */

    void mcAppI_OverCurrentReactionIsr( uint32_t status,  uintptr_t context );

## Summary

Overcurrent Reaction Interrupt Service Routine (ISR).

## Description

This function is intended to be called when an over current condition is detected in a motor control system. Upon triggering the interrupt, this function will execute to handle the event by taking appropriate actions such as resetting the motor control application,disable the PWM, and triggering the fault indication.

## Precondition

The function to be called must be set using mcHalI_PwmCallbackRegister().

## Parameters

Param | Description
--- | ---
status | Interrupt status.
context | Allows the caller to provide a context value (usually a pointer to the callers context for multi-instance clients)

## Returns

None

## Example

    void mcAppI_OverCurrentReactionIsr( uint32_t status,  uintptr_t context )
    {
    }

    mcHalI_PwmCallbackRegister( (PWM_CALLBACK)mcAppI_OverCurrentReactionIsr, (uintptr_t)dummyForMisra );

## Remarks

None.