Now let us look at the statements for decoding an FP status response since that illustrates the decoding of bit fields plus two new statement types. It is also another example of the NO_MOVE keyword.
GROUP FIELD rspStatus (Fixed 3 Bits) (Hex) "Status" NO_MOVE
{
RESERVED (Fixed 5 Bits)
FIELD alarm_bit (Fixed 1 Bit) (Binary) "Alarm"
FIELD power_bit (Fixed 1 Bit) (Binary) "Power"
FIELD test_bit (Fixed 1 Bit) (Binary) "Test mode"
}
We have met FIELD and GROUP and here we encounter a GROUP FIELD. This statement combines some of the best features of FIELD and GROUP. In particular it allows us to create a statement group (with braces) and at the same time display some data representative of the group - which is something a plain GROUP cannot do.