Add comment explaining getField macro in decode w/ S
This commit is contained in:
parent
5013abfe00
commit
98a5c8a93c
@ -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)
|
||||||
|
|
||||||
/************************************
|
/************************************
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user