# InputController ## **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. |