3.8.9 mcHalI_DirectionButtonState

C


/* Get direction button state */
bool mcHalI_DirectionButtonState( void )	

Summary

Retrieve the state of the direction button.

Description

This function is used to read the status of the direction button configured for motor control in the Harmony QSpin GUI.

Precondition

None.

Parameters

ParamDescription
voidNone.

Returns

  • True: Returns true if the button is pressed.
  • False: Returns false if the button is not pressed.

Example


/* Get direction button state */
mcHalI_DirectionButtonState();
    

Remarks

None.