10 TMCField(uint32_t _address, uint32_t _mask, uint32_t _shift, uint32_t _valueAddress)
14 , valueAddr(_valueAddress)
19 inline uint32_t
setField(uint32_t fieldValue, uint32_t registerValue)
21 return (registerValue & (~mask)) | ((fieldValue << shift) & mask);
25 inline uint32_t
getField(uint32_t registerValue)
27 return (registerValue & mask) >> shift;
41 const uint32_t mask, addr;
43 const uint32_t valueAddr;
TMCField(uint32_t _address, uint32_t _mask, uint32_t _shift, uint32_t _valueAddress)
Definition TMC_Field.h:10
uint32_t address()
Definition TMC_Field.h:31
uint32_t getField(uint32_t registerValue)
Definition TMC_Field.h:25
uint32_t setField(uint32_t fieldValue, uint32_t registerValue)
Definition TMC_Field.h:19
uint32_t valueAddress()
Definition TMC_Field.h:35