Jump to main content

##

# 3.1.4 mcAppI_AdcCalibrationIsr

## C

    /* Motor Control application calibration */

    void mcAppI_AdcCalibrationIsr( uint32_t status,  uintptr_t context );

## Summary

Motor phase current offset calibration ISR.

## Description

This function is intended to be called during the motor phase current offset measurement time. When the ADC end-of-conversion interrupt is triggered, this function will execute to handle the event by sampling the phase current for a user-defined number of samples and calculating the phase current offset.

## Precondition

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

## 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_AdcCalibrationIsr( uint32_t status,  uintptr_t context )
    {
    }

    mcHalI_AdcCallbackRegister( (ADC_CALLBACK)mcAppI_AdcCalibrationIsr, (uintptr_t)dummyForMisra );

## Remarks

None.