Field
class represents a collection of bits that represent a quantity used by a device. The bits that make up this quantity might be spread over multiple IO registers or mixed up among one IO register. Also, a field might be in different IO registers depending on the microcontroller model. For this reason, the Field
class offers convenience to the device implementer by collecting all of the individual bit updates in different registers into one coherent, contiguous value. Device implementations can simply get a reference to the Field
object (such as a timer mode, prescaler value, etc) by calling getField()
in RegisterSet
.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|