Pin Idle Function

Describes the pin idle functions involved in implementing the GPIO interface class.

When a pin is in Idle mode, it is in a third electrical state, different from High and Low. This state is called DefaultIdleState and does not correspond to the logical state of the pin. A pin should never be in this state when its direction is input because input pins are always in Enabled or Disabled mode. (A pin might theoretically be in DefaultIdleState because it has never been enabled, but that would be a programming error.) However, when a module enters the Idle state so do its pins. There are also circumstances when it is necessary to know the electrical state of an output pin because it cannot be deduced from the logical state. For this reason the GPIO interface class specifies functions to get and set the electrical state of a pin for three values and not two.

Implement the pin idle functions

  • Implement SetPinIdleConfigurationAndState() with return value KErrNone.

    Return KErrNone

  • Implement SetPinIdleConfigurationAndState() with return value KErrNotSupported.

    Return KErrNotSupported if the pin does not support the idle state.

  • Implement GetPinIdleConfigurationAndState() with return value KErrNone.

    Return KErrNone

  • Implement GetPinIdleConfigurationAndState() with return value KErrNone.

    Return KErrNotSupported if the pin does not support the idle state.