Hi,
Below is the snapshot from "syscon_8xx.h" file of lpcopen library. If you see, everywhere they have used '~'.

For example, take SYSAHBCLKDIV register in LPC812.

Here Bits <31:8> are reserved bits. We could have defined
#define SYSCTL_SYSAHBCLKDIV_RESERVED (0xffffff)
But why did LPCOpen use #define SYSCTL_SYSAHBCLKDIV_RESERVED (~0xff) instead ?