class RPicSim::Mplab::MplabNmmrInfo

Attributes

id[R]

Public Class Methods

new(id, register) click to toggle source

@param id The id of the register. This is like an address. @param register [com.microchip.crownking.edc.Register]

# File lib/rpicsim/mplab/mplab_nmmr_info.rb, line 7
def initialize(id, register)
  @id = id
  @register = register
end

Public Instance Methods

name() click to toggle source
# File lib/rpicsim/mplab/mplab_nmmr_info.rb, line 17
def name
  @register.name
end
width() click to toggle source

Returns how many bits the register has.

# File lib/rpicsim/mplab/mplab_nmmr_info.rb, line 13
def width
  @register.width
end