hal: peripheral in- and output classes: const added to getter methods