1.22.1.16 ADCHS_EOSCallbackRegister Function

C

void ADCHS_EOSCallbackRegister (uintptr_t context)

Summary

Registers the function to be called from end of scan interrupt

Description

This function registers the callback function to be called from end of scan interrupt

Precondition

ADCHS_Initialize() must have been called first for the associated instance.

Parameters

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

Returns

None.

Example

void ADCHS_Callback_Fn(uintptr_t context)
{
}

ADCHS_Initialize();
ADCHS_EOSCallbackRegister(ADCHS_Callback_Fn, NULL);

Remarks

Context value can be set to NULL if not required. To disable callback function, pass NULL for the callback parameter.