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.
Precondition
DRV_PLC_PHY_Initialize must have been called before calling this function.
Parameters
Param | Description |
---|---|
pin | PIO pin where interrupt source is connected |
context | Pointer 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.