|
PebbleOS
|
Awinic AW8623X Vibration motor driver, driving an LRA in continuous mode. More...
Data Structures | |
| struct | pbl_aw8623x_state |
| AW8623X driver state, owned by the driver. More... | |
| struct | pbl_aw8623x |
| AW8623X haptic driver. More... | |
Macros | |
| #define | PBL_AW8623X_DEFINE(sym, _bus, _addr, _reset) |
| Define an AW8623X. | |
Awinic AW8623X Vibration motor driver, driving an LRA in continuous mode.
| struct pbl_aw8623x_state |
AW8623X driver state, owned by the driver.
| Data Fields | ||
|---|---|---|
| uint8_t | strength | Drive strength, 0 to VIBE_STRENGTH_MAX. |
| struct pbl_aw8623x |
AW8623X haptic driver.
| Data Fields | ||
|---|---|---|
| struct pbl_i2c_dev | i2c | I2C device. |
| struct pbl_gpio | reset | Reset line, active while the chip is held in reset. |
| struct pbl_aw8623x_state * | state | Driver state. |
| struct pbl_vibe | vibe | Vibration motor, child of the I2C bus. |
| #define PBL_AW8623X_DEFINE | ( | sym, | |
| _bus, | |||
| _addr, | |||
| _reset | |||
| ) |
Define an AW8623X.
| sym | Symbol of the instance; the motor is sym.vibe. |
| _bus | I2C bus. |
| _addr | 7-bit I2C address. |
| _reset | Reset line (struct pbl_gpio). |