Add comment explaining getField macro in decode w/ S

This commit is contained in:
Themis Demetriades 2024-06-12 19:15:33 +01:00
parent 5013abfe00
commit 98a5c8a93c

View File

@ -13,6 +13,8 @@
#include "decode.h" #include "decode.h"
#include "../shared/binary_util.h" #include "../shared/binary_util.h"
// Macro that calls getBit() for a bitfield whose constants follow the format
// FIELDNAME_LSB and FIELDNAME_MSB, storing the result in the variable wrd
#define getField(fieldname) getBits(wrd, fieldname##_LSB, fieldname##_MSB) #define getField(fieldname) getBits(wrd, fieldname##_LSB, fieldname##_MSB)
/************************************ /************************************