Code for digital and wireless subsystems for ROC Clinic