pub const SPINEL_PROP_GPIO_STATE: _bindgen_ty_24 = 4098;
Expand description

GPIO State Bitmask ** Format: D

  • Type: Read-Write
  • Contains a bit field identifying the state of the GPIOs. The length of
  • the data associated with these properties depends on the number of
  • GPIOs. If you have 10 GPIOs, you’d have two bytes. GPIOs are numbered
  • from most significant bit to least significant bit, so 0x80 is GPIO 0,
  • 0x40 is GPIO 1, etc.
  • For GPIOs configured as inputs:
    • CMD_PROP_VALUE_GET: The value of the associated bit describes the
  • logic level read from the pin.
    • CMD_PROP_VALUE_SET: The value of the associated bit is ignored
  • for these pins.
  • For GPIOs configured as outputs:
    • CMD_PROP_VALUE_GET: The value of the associated bit is
  • implementation specific.
    • CMD_PROP_VALUE_SET: The value of the associated bit determines
  • the new logic level of the output. If this pin is configured as an
  • open-drain, setting the associated bit to 1 will cause the pin to
  • enter a Hi-Z state.
  • For GPIOs which are not specified in PROP_GPIO_CONFIG:
    • CMD_PROP_VALUE_GET: The value of the associated bit is
  • implementation specific.
    • CMD_PROP_VALUE_SET: The value of the associated bit MUST be
  • ignored by the NCP.
  • When writing, unspecified bits are assumed to be zero. */