code: def get_gpio_pin(self, pin_number, dest_addr_long=None):
          
          frame = self._send_and_wait(
              command=const.IO_PIN_COMMANDS[pin_number],
              dest_addr_long=dest_addr_long
          )
          value = frame["parameter"]
          return const.GPIO_SETTINGS[value]
docs: Get a gpio pin setting.