Fix macros for setting and extracting the context field in ttes and add macros for the fields in sfsr.
Fix macros for setting and extracting the context field in ttes and
add macros for the fields in sfsr.

jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase