Download JN51xx Integrated Peripherals API User Guide

Transcript
Chapter 30
Intelligent Peripheral (SPI Slave) Functions
vAHI_IpRegisterCallback (JN5148/JN5139 Only)
void vAHI_IpRegisterCallback(
PR_HWINT_APPCALLBACK prIpCallback);
Description
This function registers an application callback that will be called when the SPI
interrupt is triggered. The interrupt is generated when either a transmit or receive
transaction has completed.
The registered callback function is only preserved during sleep modes in which RAM
remains powered. If RAM is powered off during sleep and interrupts are required, the
callback function must be re-registered before calling u32AHI_Init() on waking.
Interrupt handling is described in Appendix A.
Parameters
prIpCallback
Pointer to callback function to be registered
Returns
None
366
© NXP Laboratories UK 2011
JN-UG-3066 v3.0