# InputController - [Overview](#section38728142165631) - [Summary](#section1909951786165631) - [Data Fields](#pub-attribs) - [Details](#section1347173943165631) - [Field](#section1364095562165631) - [GetChipInfo](#aa02ce599f0383c88e6efc301e31901b8) - [GetChipName](#aaa131995539b4c0b783cdcbdd67b9687) - [GetDeviceType](#aec8d8a22b37f572a9df8ef7ce988a6d3) - [GetPowerStatus](#afd9ffc4a180609ad970df6fd79806372) - [GetVendorName](#ab011f8433b9c5aa8493320dac9c4a683) - [RunCapacitanceTest](#afc470fb6e33a07aaa179980a4ded39db) - [RunExtraCommand](#a19c15b3b535f63fbc4e17bbad24492c9) - [SetGestureMode](#a2a5b24dfc129b58ae4663ca44ab2ad91) - [SetPowerStatus](#a38da915fec2698dff480ed686503f692) ## **Overview** **Related Modules:** [Input](Input.md) **Description:** Provides interfaces for controlling the business process of input devices. The interfaces can be called to control the power status, enable or disable a feature, get driver chip information, and control the production test. ## **Summary** ## Data Fields
SetPowerStatus )(uint32_t devIndex, uint32_t status) |
|
GetPowerStatus )(uint32_t devIndex, uint32_t *status) |
|
GetDeviceType )(uint32_t devIndex, uint32_t *deviceType) |
Gets the type of the input device based on the specified device index. |
GetChipInfo )(uint32_t devIndex, char *chipInfo, uint32_t length) |
|
GetVendorName )(uint32_t devIndex, char *vendorName, uint32_t length) |
|
GetChipName )(uint32_t devIndex, char *chipName, uint32_t length) |
|
SetGestureMode )(uint32_t devIndex, uint32_t gestureMode) |
|
RunCapacitanceTest )(uint32_t devIndex, uint32_t testType, char *result, uint32_t length) |
|
RunExtraCommand )(uint32_t devIndex, InputExtraCmd *cmd) |
| devIndex | Indicates the index of an input device. A maximum of 32 input devices are supported. The value ranges from 0 to 31, and value 0 represents the first input device. |
| deviceType | Indicates the pointer to the device type. For details, see InputDevType. |
| devIndex | Indicates the index of an input device. A maximum of 32 input devices are supported. The value ranges from 0 to 31, and value 0 represents the first input device. |
| status | Indicates the pointer to the power status of the device. For details, see PowerStatus. |
| devIndex | Indicates the index of an input device. A maximum of 32 input devices are supported. The value ranges from 0 to 31, and value 0 represents the first input device. |
| testType | Indicates the capacitance test type. For details, see CapacitanceTest. |
| result | Indicates the pointer to the capacitance test result. The value is SUCC for a successful operation and is an error code for a failed operation. |
| length | Indicates the length of the test result. |
| devIndex | Indicates the index of an input device. A maximum of 32 input devices are supported. The value ranges from 0 to 31, and value 0 represents the first input device. |
| cmd | Indicates the pointer to the extra command data packet, including the command codes and parameters. For details, see InputExtraCmd. |
| devIndex | Indicates the index of an input device. A maximum of 32 input devices are supported. The value ranges from 0 to 31, and value 0 represents the first input device. |
| status | Indicates the power status to set. The input service will notify the input device of entering the Resume or Suspend state specified by PowerStatus. |