Sensor-马达配置

一.基本配置

    1.确定马达类型(qcom,actuator-type):erm/lra(一般DC是erm,AC是lra)

    2.确定马达频率(qcom,play-rate-us)

    3.确定马达电压(qcom,vmax-mv)

二.花样配置

kernel/msm-4.14/Documentation/devicetree/bindings/input/qti-haptics.txt

wf_x {
/* CLICK */
......
};

wf_x为不同的震动方式,对应系统目录里的/d/haptics/effectx


wf-pattern:

116 - qcom,wf-pattern
117   Usage:      required
118   Value type: <prop-encoded-array>
119   Definition: Specifies the waveform pattern in a byte array that will be
120 		played for the effect-id. The bit fields of each byte are:
121 		 [7]: drive direction, 0 - forward; 1 - reverse
122 		 [6]: overdrive, 0 -- 1x dr
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值