Changes between Version 1 and Version 2 of IPBusUserNotes


Ignore:
Timestamp:
Jul 3, 2019, 11:28:28 AM (5 months ago)
Author:
hazen
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • IPBusUserNotes

    v1 v2  
    4545To access an offset from a named register, one must resort to some slightly more intricate code:
    4646{{{
    47   val = hw.getClient().read( addr + offset);
     47  val = hw.getClient().read( hw.getNode("rx_buffer").getAddress() + offset);
    4848}}}
     49
     50To write a single bit to e.g. a reset register as shown in the address table above, one can use the following:
     51{{{
     52  mask = hw.getNode( "RST_ALL"). getMask();
     53  hw.getClient().write( hw.getNode("RST_ALL").getAddress(), mask);
     54}}}
     55