Download AN10918

Transcript
AN10918
NXP Semiconductors
IEC60335 Class B library
If the interrupt that needs to be checked is a burst interrupt, the routine will check if the
time to wait for all interrupts has elapsed. If the time has passed, it will check the interrupt
count to be within the boundaries. If not, the check function will return directly, without
setting any Result.
If the interrupt to check is not a burst interrupt, the routine will check the interrupt counter
to be within the bound directly.
4.4.2 Test usage
4.4.2.1 IEC60335_B_Interrupts.h
File name
Type definition
IEC60335_B_Interrupts.h
type_InterruptTest
[1]
Function prototyping
void IEC60335_InitInterruptTest
(
type_InterruptTest *pIRQ,
UINT32 lowerBound,
UINT32 upperBound,
UINT32 individualValue
);
void IEC60335_InterruptOcurred
(
type_InterruptTest *pIRQ
);
type_testResult IEC60335_InterruptCheck
(
type_InterruptTest *pIRQ
);
[1]
See the detailed type description in Table 6
The IEC60335_B_Interrupts header file contains the function prototypes of the interrupt
testing. A type defined structure contains all variables needed for interrupt testing.
AN10918_1
Application note
All information provided in this document is subject to legal disclaimers.
Rev. 01 — 1 March 2010
© NXP B.V. 2010. All rights reserved.
21 of 68