ATM_andu
2-4
C Interface
Syntax
uval = ATM_andu(udst, usrc);
Parameters
volatile Uns
*udst;
/* pointer to unsigned */
Uns
usrc;
/* unsigned mask */
Return Value
Uns
uval;
/* previous value of *udst */
Description
ATM_andu atomically ANDs the mask contained in usrc with a
destination memory location and overwrites the destination value *udst
with the result as follows:
`interrupt disable`
uval = *udst;
*udst = uval & usrc;
`interrupt enable`
return(uval);
ATM_andu is written in assembly language, efficiently disabling
interrupts on the target processor during the call.
See Also
ATM_andu
Atomically AND Uns memory location and return previous value