IS_SFR - An identifier is a valid SFR

Language reference ›› Built-in functions ›› Conditional compilation ››
Parent Previous Next

is-sfr-function = IS_SFR "(" identifier [ "." subfield ] ")" .

NEW! (V2.0): Returns true if the given identifier and optional subfield exist and are SFR / SFR for the current processor.


Useful for conditional compilation, it will replace the use of DEFINED on SFRs where it was ambiguous (e.g.: it may conflict with user identifiers).


{$IF IS_SFR(TMR0L) AND IS_SFR(OPTION_REG.PSA)}
 
{$ENDIF}