You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For writable registers there should be a way of specifying a reset value which would grant a reset method.
@Register(bitWidth: 16, reset: 0x0)
public struct EEAR {
@ReadWrite(bits: 0..<16, as: UInt16.self)
public var value: VALUE
}
that would add a method onto the register such that you can issue a reset to the contents of the register. This could perhaps be done by conforming the structure (in this case EEAR) to ResettableRegisterValue and Register has a conditional conformance that adds the public func reset() method that asks the static value from the register value type for its reset value.
The text was updated successfully, but these errors were encountered:
For writable registers there should be a way of specifying a reset value which would grant a reset method.
that would add a method onto the register such that you can issue a reset to the contents of the register. This could perhaps be done by conforming the structure (in this case
EEAR
) toResettableRegisterValue
andRegister
has a conditional conformance that adds thepublic func reset()
method that asks the static value from the register value type for its reset value.The text was updated successfully, but these errors were encountered: