implement macro with parameter to set bitfield value (macro will shift and mask)
fix error with FrfMid register