Using direct C code to control SAM3X8E

The register names are defined as addresses so just use them like a variable, use the bit read or write or the logic operations to manapulate bits in them.
Some bits in registers also have names you can use them with logic operations as well.