Periphbittest - Test Selected Bits; Periphbittest Arguments - Freescale Semiconductor DSP56800E User Manual

Hide thumbs Also See for DSP56800E:
Table of Contents

Advertisement

Core System Infrastructure
Example 2-28. periphBitChange macro usage
periphBitChange(0xC000, &ArchIO.PortB.dr);
This code complements bits 15 and 14 in the Port B Data Register (DR).
2.4.2.12

periphBitTest - test selected bits

Call(s):
UWord16 periphBitTest(UWord16 Mask, UWord16 *pAddr);
Arguments:
Mask
pAddr
Description: The periphBitTest macro tests the selected bits if they are set in a memory location
addressed by parameter pAddr.
Example 2-29. periphBitTest macro usage
if (periphBitTest(0x8000, &ArchIO.TimerD.ch0.scr))
{
periphBitClear(0x8000, &ArchIO.TimerD.ch0.scr);
};
This code checks if Timer Compare Flag (Bit 15) in the timer/counter D0 Status and Control
Register (SCR) is set.
2-20
Table 2-14. periphBitTest arguments
in
Bit mask.
in
The memory address.
Targeting 56F8xxx Platform
FREESCALE SEMICONDUCTOR

Advertisement

Table of Contents
loading

Table of Contents