gtpc2m4q | C/C++ Language Support User's Guide |
This function modifies indicators in the program status word (PSW) to enable or disable selected interrupts.
Format
#include <sysapi.h> void maskc(enum t_maskc_opt maskc_opt, enum t_mask mask);
Normal Return
Void.
Error Return
None.
Programming Considerations
Only one type of interrupt may be enabled or disabled per function call. Modifying combinations of interrupts is not allowed.
Examples
The following example enables I/O interrupts.
#include <sysapi.h>
·
·
·
maskc(MASKC_ENABLE, MASKC_IO);
Related Information