code: def SetMaxPowerUpCurrent(self, i):
          
          if i < 0 or i > 8:
              raise MonsoonError(("Target max current %sA, is out of acceptable "
                                  "range [0, 8].") % i)
          val = 1023 - int((i / 8) * 1023)
          self._SendStruct("BBB", 0x01, 0x08, val & 0xff)
          self._SendStruct("BBB", 0x01, 0x09, val >> 8)
docs: Set the max power up current.