1.1.1.4.11 DRV_PLC_PHY_ExternalInterruptHandler Function

C

void DRV_PLC_PHY_ExternalInterruptHandler (
    const PIO_PIN pin, 
    const uintptr_t context 
);

Summary

Allows application to register callback for PLC Interrupt pin.

Description

This function allows a client to register a callback function to handle PLC interrupt.

Parameters

ParamDescription
pinPIO pin where interrupt source is connected
contextPointer to parameters to be passed to Handler function

Returns

None.

Example

// Initialize PLC Driver Instance
sysObj.drvPLC = DRV_PLC_PHY_Initialize(DRV_PLC_PHY_INDEX, (SYS_MODULE_INIT *)&drvPlcPhyInitData);
// Register Callback function to handle PLC interruption
PIO_PinInterruptCallbackRegister(DRV_PLC_EXT_INT_PIN, DRV_PLC_PHY_ExternalInterruptHandler, sysObj.drvPLC);

Remarks

See plib_pio.h for more details.