Some units will allow electronics. Other times you might be able to work something out with the treatment team, however most places do not allow it. They may have access via unit computers though.
Most places look for you to engage in treatment on the unit, and be social with other patients. I hope you will get some benefit from this. It can be a really good "bump" to get you out of a rut. I'm glad you are able to have that opportunity.