|
I2C_Drivers (ARM) 1.1
SMFSW collection of HAL I2C Drivers for ARM
|
DRV2605L Driver extensions. More...
#include "DRV2605L.h"
Data Structures | |
| union | uDRV_CFG |
| DRV2605L Config registers union. More... | |
Functions | |
| FctERR | DRV2605L_Set_ActType (const DRV2605L_act act) |
| Set haptic actuator type. | |
| FctERR | DRV2605L_Set_OperatingMode (const DRV2605L_mode mode) |
| Set haptic operating mode. | |
| FctERR | DRV2605L_Set_Standby (const bool stdby) |
| Set haptic device to standby. | |
| FctERR | DRV2605L_Set_InputMode (const DRV2605L_input input) |
| Set haptic device input pin type. | |
| FctERR | DRV2605L_Set_LoopMode (const DRV2605L_loop loop) |
| Set haptic device input pin type. | |
| FctERR | DRV2605L_Set_Library (const DRV2605L_lib lib) |
| Set haptic device library. | |
| FctERR | DRV2605L_Set_Waveform (const uint16_t chan, const DRV2605L_eff effect, const bool wait) |
| Set haptic device channel in the waveform sequencer. | |
| FctERR | DRV2605L_Set_RTPDataFormat (const DRV2605L_rtp_format format) |
| Set RTP format. | |
| FctERR | DRV2605L_Set_ATVPeakTime (const DRV2605L_peak peak) |
| Set Audio To Vibe Peak time. | |
| FctERR | DRV2605L_Set_ATVLowPassFilter (const DRV2605L_filter filt) |
| Set Audio To Vibe Low pass filter. | |
| FctERR | DRV2605L_Set_ATVInput_Volt (const float volt, const bool maxi) |
| Set Audio To Vibe min/max input voltage. | |
| FctERR | DRV2605L_Set_ATVDrive_Percent (const uint16_t perc, const bool maxi) |
| Set Audio To Vibe min/max Drive. | |
| FctERR | DRV2605L_Set_BlankingTime (const uint16_t time) |
| Set haptic Blanking time. | |
| FctERR | DRV2605L_Set_CurrentDissipationTime (const uint16_t time) |
| Set haptic Current dissipation time. | |
| FctERR | DRV2605L_Set_LRAOpenLoopPeriod_us (const uint16_t per) |
| Set haptic LRA Open loop period. | |
| FctERR | DRV2605L_Get_BlankingTime (uint16_t *const time) |
| Get haptic Blanking time. | |
| FctERR | DRV2605L_Get_ATVInput_Volt (float *const volt, const bool maxi) |
| Get min/max Audio To Vibe Input voltage. | |
| FctERR | DRV2605L_Get_ATVDrive_Percent (float *const perc, const bool maxi) |
| Get min/max Audio To Vibe Drive. | |
| FctERR | DRV2605L_Get_CurrentDissipationTime (uint16_t *const time) |
| Get haptic Current dissipation time. | |
| FctERR | DRV2605L_Get_Voltage (uint16_t *const vbat) |
| Get haptic Voltage. | |
| FctERR | DRV2605L_Get_LRAOpenLoopPeriod (uint16_t *const per) |
| Get haptic LRA Open loop period. | |
| FctERR | DRV2605L_Get_ResonancePeriod (uint16_t *const per) |
| Get haptic LRA Resonance period. | |
| FctERR | DRV2605L_Get_ChipID (uint8_t *const id) |
| Get DRV260x chip ID. | |
| void | DRV2605L_EN_GPIO_Init (GPIO_TypeDef *const GPIOx, const uint16_t GPIO_Pin, const GPIO_PinState GPIO_Active) |
| Enable GPIO pin init for DRV2605L. | |
| void | DRV2605L_EN_GPIO_Set (const bool state) |
| Enable GPIO pin setter for DRV2605L. | |
| void | DRV2605L_TRIG_GPIO_Init (GPIO_TypeDef *const GPIOx, const uint16_t GPIO_Pin, const GPIO_PinState GPIO_Active) |
| Trigger GPIO pin init for DRV2605L. | |
| void | DRV2605L_TRIG_GPIO_Set (const bool state) |
| Trigger GPIO pin setter for DRV2605L. | |
DRV2605L Driver extensions.
DRV2605L: 2 to 5.2V Haptic Driver for LRA and ERM With Effect Library and Smart-Loop Architecture
| void DRV2605L_EN_GPIO_Init | ( | GPIO_TypeDef *const | GPIOx, |
| const uint16_t | GPIO_Pin, | ||
| const GPIO_PinState | GPIO_Active ) |
Enable GPIO pin init for DRV2605L.
| [in] | GPIOx | - EN port |
| [in] | GPIO_Pin | - EN pin |
| [in] | GPIO_Active | EN pin active state |

| void DRV2605L_EN_GPIO_Set | ( | const bool | state | ) |
Enable GPIO pin setter for DRV2605L.
| [in] | state | - state to write on EN pin (0: inactive, 1: active) |

| FctERR DRV2605L_Get_ATVDrive_Percent | ( | float *const | perc, |
| const bool | maxi ) |
Get min/max Audio To Vibe Drive.
| [in,out] | perc | - pointer to Audio To Vibe Drive result |
| [in] | maxi | - 0 Min, 1 Max |

| FctERR DRV2605L_Get_ATVInput_Volt | ( | float *const | volt, |
| const bool | maxi ) |
Get min/max Audio To Vibe Input voltage.
| [in,out] | volt | - pointer to Audio To Vibe Input voltage result |
| [in] | maxi | - 0 Min, 1 Max |

| FctERR DRV2605L_Get_BlankingTime | ( | uint16_t *const | time | ) |
Get haptic Blanking time.
| [in,out] | time | - pointer to Blanking time value result |
| FctERR DRV2605L_Get_ChipID | ( | uint8_t *const | id | ) |
Get DRV260x chip ID.
| [in,out] | id | - pointer to chip ID result |


| FctERR DRV2605L_Get_CurrentDissipationTime | ( | uint16_t *const | time | ) |
Get haptic Current dissipation time.
| [in,out] | time | - pointer to Blanking time value result |
| FctERR DRV2605L_Get_LRAOpenLoopPeriod | ( | uint16_t *const | per | ) |
Get haptic LRA Open loop period.
| [in,out] | per | - pointer to LRA open loop period result |

| FctERR DRV2605L_Get_ResonancePeriod | ( | uint16_t *const | per | ) |
Get haptic LRA Resonance period.
| [in,out] | per | - pointer to LRA Resonance period result |

| FctERR DRV2605L_Get_Voltage | ( | uint16_t *const | vbat | ) |
Get haptic Voltage.
| [in,out] | vbat | - pointer to Battery voltage result |

| FctERR DRV2605L_Set_ActType | ( | const DRV2605L_act | act | ) |
Set haptic actuator type.
| [in] | act | - 0 ERM, 1 LRA |


| FctERR DRV2605L_Set_ATVDrive_Percent | ( | const uint16_t | perc, |
| const bool | maxi ) |
Set Audio To Vibe min/max Drive.
| [in] | perc | - Audio To Vibe drive value (in percent) |
| [in] | maxi | - 0 Min, 1 Max |

| FctERR DRV2605L_Set_ATVInput_Volt | ( | const float | volt, |
| const bool | maxi ) |
Set Audio To Vibe min/max input voltage.
| [in] | volt | - Audio To Vibe Input voltage value |
| [in] | maxi | - 0 Min, 1 Max |

| FctERR DRV2605L_Set_ATVLowPassFilter | ( | const DRV2605L_filter | filt | ) |
Set Audio To Vibe Low pass filter.
| [in] | filt | - Audio To Vibe Low pass filter value |

| FctERR DRV2605L_Set_ATVPeakTime | ( | const DRV2605L_peak | peak | ) |
Set Audio To Vibe Peak time.
| [in] | peak | - Audio To Vibe Peak time value |

| FctERR DRV2605L_Set_BlankingTime | ( | const uint16_t | time | ) |
Set haptic Blanking time.
| [in] | time | - Blanking time value |
| FctERR DRV2605L_Set_CurrentDissipationTime | ( | const uint16_t | time | ) |
Set haptic Current dissipation time.
| [in] | time | - Current dissipation time value |
| FctERR DRV2605L_Set_InputMode | ( | const DRV2605L_input | input | ) |
Set haptic device input pin type.
| [in] | input | - 0: PWM, 1: Analog |

| FctERR DRV2605L_Set_Library | ( | const DRV2605L_lib | lib | ) |
Set haptic device library.
| [in] | lib | - Internal library used |

| FctERR DRV2605L_Set_LoopMode | ( | const DRV2605L_loop | loop | ) |
Set haptic device input pin type.
| [in] | loop | - 0: ERM Closed Loop, LRA Auto Resonance, 1: Open Loop |


| FctERR DRV2605L_Set_LRAOpenLoopPeriod_us | ( | const uint16_t | per | ) |
Set haptic LRA Open loop period.
| [in] | per | - LRA Open loop period (in us) |

| FctERR DRV2605L_Set_OperatingMode | ( | const DRV2605L_mode | mode | ) |
Set haptic operating mode.
| [in] | mode | - haptic input operating mode |


| FctERR DRV2605L_Set_RTPDataFormat | ( | const DRV2605L_rtp_format | format | ) |
Set RTP format.
| [in] | format | - 0: Signed, 1: Unsigned |

| FctERR DRV2605L_Set_Standby | ( | const bool | stdby | ) |
Set haptic device to standby.
| [in] | stdby | - 0: Normal operation, 1: standby |


| FctERR DRV2605L_Set_Waveform | ( | const uint16_t | chan, |
| const DRV2605L_eff | effect, | ||
| const bool | wait ) |
Set haptic device channel in the waveform sequencer.
| [in] | chan | - Waveform sequencer channel |
| [in] | effect | - Effect number for haptic feedback |
| [in] | wait | - Wait between patterns |

| void DRV2605L_TRIG_GPIO_Init | ( | GPIO_TypeDef *const | GPIOx, |
| const uint16_t | GPIO_Pin, | ||
| const GPIO_PinState | GPIO_Active ) |
Trigger GPIO pin init for DRV2605L.
| [in] | GPIOx | - TRIG port |
| [in] | GPIO_Pin | - TRIG pin |
| [in] | GPIO_Active | TRIG pin active state |

| void DRV2605L_TRIG_GPIO_Set | ( | const bool | state | ) |
Trigger GPIO pin setter for DRV2605L.
| [in] | state | - state to write on TRIG pin (0: inactive, 1: active) |
