ieee1394CSR module

ieee1394CSR.testBit(value, bitno)

returns bool whether bitno is set

ieee1394CSR.setBit(value, bitno)

returns value where bitno is set

ieee1394CSR.clearBit(value, bitno)

returns value where bitno is cleared

ieee1394CSR.toggleBit(value, bitno)

returns value where bitno is toggled

ieee1394CSR.getBits(value, first, last)

returns value of bits [first..last]

ieee1394CSR.setBits(value, first, last, bits)

returns value where bits [first..last] in value is set to bits

class ieee1394CSR.CSR(addr, value=0)

class for maintaining CSR value

testBit(bitno)

returns bool whether bitno is set

setBit(bitno)

returns value where bitno is set

clearBit(bitno)

returns value where bitno is cleared

toggleBit(bitno)

returns value where bitno is toggled

getBits(first, last)

returns value of bits [first..last]

setBits(first, last, bits)

returns value where bits [first..last] in value is set to bits