2.4.2.1 Short Bit Names
Short bit names are an abbreviation for the bit function. For example, some peripherals are enabled with the EN bit. The bit names shown in the registers are the short name variant.
Short bit names are useful when accessing bits in C programs. The
general format for accessing bits by the short name is RegisterNamebits.ShortName. For
example, the enable bit, EN, in the CM1CON0 register can be set in C programs with the
instruction CM1CON0bits.EN = 1
.
Short names are generally not useful in assembly programs because the same name may be used by different peripherals in different bit positions. When this occurs, during the include file generation, all instances of that short bit name are appended with an underscore plus the name of the register in which the bit resides to avoid naming contentions.